Lines Matching +full:nand +full:- +full:int +full:- +full:base
1 // SPDX-License-Identifier: GPL-2.0-or-later
24 #include <asm/mach-rc32434/rc32434.h>
25 #include <asm/mach-rc32434/dma.h>
26 #include <asm/mach-rc32434/dma_v.h>
27 #include <asm/mach-rc32434/eth.h>
28 #include <asm/mach-rc32434/rb.h>
29 #include <asm/mach-rc32434/integ.h>
30 #include <asm/mach-rc32434/gpio.h>
31 #include <asm/mach-rc32434/irq.h>
36 extern unsigned int idt_cpu_freq;
47 writeb(dev3.state, dev3.base); in set_latch_u5()
78 .end = ETH0_RX_DMA_ADDR + DMA_CHAN_OFFSET - 1,
83 .end = ETH0_TX_DMA_ADDR + DMA_CHAN_OFFSET - 1,
94 .id = -1,
116 .dev_id = "pata-rb532-cf",
125 .id = -1,
126 .name = "pata-rb532-cf",
131 /* Resources and device for NAND */
132 static int rb532_dev_ready(struct nand_chip *chip) in rb532_dev_ready()
137 static void rb532_cmd_ctrl(struct nand_chip *chip, int cmd, unsigned int ctrl) in rb532_cmd_ctrl()
151 writeb(cmd, chip->legacy.IO_ADDR_W); in rb532_cmd_ctrl()
168 .id = -1,
176 .name = "Routerboard NAND boot",
187 .name = "rb532-led",
188 .id = -1,
192 .name = "rb532-button",
193 .id = -1,
207 .id = -1,
242 /* NAND definitions */
258 /* Setup NAND specific settings */ in rb532_nand_setup()
266 static int __init plat_setup_devices(void) in plat_setup_devices()
277 /* Read the NAND resources from the device controller */ in plat_setup_devices()
282 dev3.base = ioremap(readl(IDT434_REG_BASE + DEV3BASE), 1); in plat_setup_devices()
284 if (!dev3.base) { in plat_setup_devices()
286 return -ENXIO; in plat_setup_devices()
289 /* Initialise the NAND device */ in plat_setup_devices()
301 static int __init setup_kmac(char *s) in setup_kmac()