Lines Matching refs:lpc32xx_chip
539 static struct nand_chip lpc32xx_chip; variable
547 struct mtd_info *mtd = nand_to_mtd(&lpc32xx_chip); in board_nand_init()
552 lpc32xx_chip.IO_ADDR_R = &lpc32xx_nand_mlc_registers->buff; in board_nand_init()
553 lpc32xx_chip.IO_ADDR_W = &lpc32xx_nand_mlc_registers->buff; in board_nand_init()
554 lpc32xx_chip.cmd_ctrl = lpc32xx_cmd_ctrl; in board_nand_init()
556 lpc32xx_chip.dev_ready = lpc32xx_dev_ready; in board_nand_init()
559 lpc32xx_chip.options |= NAND_NO_SUBPAGE_WRITE; in board_nand_init()
563 lpc32xx_chip.ecc.mode = NAND_ECC_HW; in board_nand_init()
564 lpc32xx_chip.ecc.layout = &lpc32xx_largepage_ecclayout; in board_nand_init()
565 lpc32xx_chip.ecc.size = 512; in board_nand_init()
566 lpc32xx_chip.ecc.bytes = 10; in board_nand_init()
567 lpc32xx_chip.ecc.strength = 4; in board_nand_init()
568 lpc32xx_chip.ecc.read_page = lpc32xx_read_page_hwecc; in board_nand_init()
569 lpc32xx_chip.ecc.read_page_raw = lpc32xx_read_page_raw; in board_nand_init()
570 lpc32xx_chip.ecc.write_page = lpc32xx_write_page_hwecc; in board_nand_init()
571 lpc32xx_chip.ecc.write_page_raw = lpc32xx_write_page_raw; in board_nand_init()
572 lpc32xx_chip.ecc.read_oob = lpc32xx_read_oob; in board_nand_init()
573 lpc32xx_chip.ecc.write_oob = lpc32xx_write_oob; in board_nand_init()
574 lpc32xx_chip.waitfunc = lpc32xx_waitfunc; in board_nand_init()
576 lpc32xx_chip.read_byte = lpc32xx_read_byte; /* FIXME: NEEDED? */ in board_nand_init()
579 lpc32xx_chip.bbt_options |= NAND_BBT_USE_FLASH | NAND_BBT_LASTBLOCK in board_nand_init()