Lines Matching +full:nand +full:- +full:rb
1 // SPDX-License-Identifier: GPL-2.0+
15 #include <nand.h>
18 * hardware specific access to control-lines
25 #define KB9202_NAND_BUSY (1 << 29) /* RB* on D29 */
33 * Board-specific function to access device control signals
40 ulong IO_ADDR_W = (ulong) this->IO_ADDR_W; in kb9202_nand_hwcontrol()
51 this->IO_ADDR_W = (void *) IO_ADDR_W; in kb9202_nand_hwcontrol()
60 writeb(cmd, this->IO_ADDR_W); in kb9202_nand_hwcontrol()
65 * Board-specific function to access the device ready signal.
74 * Board-specific NAND init. Copied from include/linux/mtd/nand.h for reference.
76 * struct nand_chip - NAND Private Flash Chip Data
79 * @hwcontrol: [BOARDSPECIFIC] hardwarespecific function for accesing control-lines
93 int board_nand_init(struct nand_chip *nand) in board_nand_init() argument
97 nand->ecc.mode = NAND_ECC_SOFT; in board_nand_init()
98 nand->cmd_ctrl = kb9202_nand_hwcontrol; in board_nand_init()
99 nand->dev_ready = kb9202_nand_ready; in board_nand_init()
104 /* setup nand flash access (allow ample margin) */ in board_nand_init()
105 /* 4 wait states, 1 setup, 1 hold, 1 float for 8-bit device */ in board_nand_init()
110 /* enable internal NAND controller */ in board_nand_init()
123 /* disable output on pin connected to the busy line of the NAND */ in board_nand_init()