Lines Matching refs:lpc32xx_chip

507 int board_nand_init(struct nand_chip *lpc32xx_chip)  in board_nand_init()  argument
521 lpc32xx_chip->cmd_ctrl = lpc32xx_nand_cmd_ctrl; in board_nand_init()
522 lpc32xx_chip->dev_ready = lpc32xx_nand_dev_ready; in board_nand_init()
529 lpc32xx_chip->read_byte = lpc32xx_read_byte; in board_nand_init()
530 lpc32xx_chip->write_byte = lpc32xx_write_byte; in board_nand_init()
534 lpc32xx_chip->ecc.mode = NAND_ECC_HW; in board_nand_init()
536 lpc32xx_chip->read_buf = lpc32xx_dma_read_buf; in board_nand_init()
537 lpc32xx_chip->write_buf = lpc32xx_dma_write_buf; in board_nand_init()
539 lpc32xx_chip->ecc.calculate = lpc32xx_ecc_calculate; in board_nand_init()
540 lpc32xx_chip->ecc.correct = lpc32xx_correct_data; in board_nand_init()
541 lpc32xx_chip->ecc.hwctl = lpc32xx_hwecc_enable; in board_nand_init()
542 lpc32xx_chip->chip_delay = 2000; in board_nand_init()
544 lpc32xx_chip->ecc.read_page = lpc32xx_read_page_hwecc; in board_nand_init()
545 lpc32xx_chip->ecc.write_page = lpc32xx_write_page_hwecc; in board_nand_init()
546 lpc32xx_chip->options |= NAND_NO_SUBPAGE_WRITE; in board_nand_init()
553 lpc32xx_chip->ecc.mode = NAND_ECC_SOFT; in board_nand_init()
560 lpc32xx_chip->read_buf = lpc32xx_read_buf; in board_nand_init()
561 lpc32xx_chip->write_buf = lpc32xx_write_buf; in board_nand_init()
568 lpc32xx_chip->ecc.size = CONFIG_SYS_NAND_ECCSIZE; in board_nand_init()
569 lpc32xx_chip->ecc.bytes = CONFIG_SYS_NAND_ECCBYTES; in board_nand_init()
570 lpc32xx_chip->ecc.strength = 1; in board_nand_init()
573 lpc32xx_chip->ecc.layout = &lpc32xx_nand_oob_16; in board_nand_init()
576 lpc32xx_chip->bbt_options |= NAND_BBT_USE_FLASH; in board_nand_init()