Searched refs:lpc32xx_chip (Results 1 – 2 of 2) sorted by relevance
506 int board_nand_init(struct nand_chip *lpc32xx_chip) in board_nand_init() argument520 lpc32xx_chip->cmd_ctrl = lpc32xx_nand_cmd_ctrl; in board_nand_init()521 lpc32xx_chip->dev_ready = lpc32xx_nand_dev_ready; in board_nand_init()528 lpc32xx_chip->read_byte = lpc32xx_read_byte; in board_nand_init()529 lpc32xx_chip->write_byte = lpc32xx_write_byte; in board_nand_init()533 lpc32xx_chip->ecc.mode = NAND_ECC_HW; in board_nand_init()535 lpc32xx_chip->read_buf = lpc32xx_dma_read_buf; in board_nand_init()536 lpc32xx_chip->write_buf = lpc32xx_dma_write_buf; in board_nand_init()538 lpc32xx_chip->ecc.calculate = lpc32xx_ecc_calculate; in board_nand_init()539 lpc32xx_chip->ecc.correct = lpc32xx_correct_data; in board_nand_init()[all …]
540 static struct nand_chip lpc32xx_chip; variable548 struct mtd_info *mtd = nand_to_mtd(&lpc32xx_chip); in board_nand_init()553 lpc32xx_chip.IO_ADDR_R = &lpc32xx_nand_mlc_registers->buff; in board_nand_init()554 lpc32xx_chip.IO_ADDR_W = &lpc32xx_nand_mlc_registers->buff; in board_nand_init()555 lpc32xx_chip.cmd_ctrl = lpc32xx_cmd_ctrl; in board_nand_init()557 lpc32xx_chip.dev_ready = lpc32xx_dev_ready; in board_nand_init()560 lpc32xx_chip.options |= NAND_NO_SUBPAGE_WRITE; in board_nand_init()564 lpc32xx_chip.ecc.mode = NAND_ECC_HW; in board_nand_init()565 lpc32xx_chip.ecc.layout = &lpc32xx_largepage_ecclayout; in board_nand_init()566 lpc32xx_chip.ecc.size = 512; in board_nand_init()[all …]