Lines Matching refs:board
33 struct orion_nand_data *board = nand_get_controller_data(nc); in orion_nand_cmd_ctrl() local
40 offs = (1 << board->cle); in orion_nand_cmd_ctrl()
42 offs = (1 << board->ale); in orion_nand_cmd_ctrl()
104 struct orion_nand_data *board; in orion_nand_probe() local
127 board = devm_kzalloc(&pdev->dev, sizeof(struct orion_nand_data), in orion_nand_probe()
129 if (!board) in orion_nand_probe()
132 board->cle = (u8)val; in orion_nand_probe()
134 board->cle = 0; in orion_nand_probe()
136 board->ale = (u8)val; in orion_nand_probe()
138 board->ale = 1; in orion_nand_probe()
141 board->width = (u8)val * 8; in orion_nand_probe()
143 board->width = 8; in orion_nand_probe()
146 board->chip_delay = (u8)val; in orion_nand_probe()
148 board = dev_get_platdata(&pdev->dev); in orion_nand_probe()
153 nand_set_controller_data(nc, board); in orion_nand_probe()
159 if (board->chip_delay) in orion_nand_probe()
160 nc->legacy.chip_delay = board->chip_delay; in orion_nand_probe()
162 WARN(board->width > 16, in orion_nand_probe()
164 board->width); in orion_nand_probe()
166 if (board->width == 16) in orion_nand_probe()
189 ret = mtd_device_register(mtd, board->parts, board->nr_parts); in orion_nand_probe()