12 #include <linux/types.h>
13 #include <linux/kernel.h>
24 #include <linux/i2c.h>
28 #include <asm/sizes.h>
45 #define SRC_CR_INIT_MASK 0x00007fff
46 #define SRC_CR_INIT_VAL 0x2aaa8000
49 static struct resource nhk8815_nand_resources[] = {
68 static int nhk8815_nand_init(
void)
88 .name =
"X-Loader(NAND)",
92 .name =
"MemInit(NAND)",
96 .name =
"BootLoader(NAND)",
100 .name =
"Kernel zImage(NAND)",
104 .name =
"Root Filesystem(NAND)",
108 .name =
"User Filesystem(NAND)",
115 .parts = nhk8815_partitions,
118 .init = nhk8815_nand_init,
122 .name =
"nomadik_nand",
124 .platform_data = &nhk8815_nand_data,
126 .resource = nhk8815_nand_resources,
127 .num_resources =
ARRAY_SIZE(nhk8815_nand_resources),
133 .name =
"X-Loader(OneNAND)",
137 .name =
"MemInit(OneNAND)",
141 .name =
"BootLoader(OneNAND)",
145 .name =
"SysImage(OneNAND)",
149 .name =
"Root Filesystem(OneNAND)",
153 .name =
"User Filesystem(OneNAND)",
160 .parts = nhk8815_onenand_partitions,
161 .nr_parts =
ARRAY_SIZE(nhk8815_onenand_partitions),
164 static struct resource nhk8815_onenand_resource[] = {
167 .end = 0x30000000 +
SZ_128K - 1,
173 .name =
"onenand-flash",
176 .platform_data = &nhk8815_onenand_data,
178 .resource = nhk8815_onenand_resource,
179 .num_resources =
ARRAY_SIZE(nhk8815_onenand_resource),
182 static void __init nhk8815_onenand_init(
void)
184 #ifdef CONFIG_MTD_ONENAND
201 static int __init nhk8815_mmcsd_init(
void)
214 static struct resource nhk8815_eth_resources[] = {
216 .name =
"smc91x-regs",
217 .start = 0x34000000 + 0x300,
218 .end = 0x34000000 +
SZ_64K - 1,
229 .resource = nhk8815_eth_resources,
230 .num_resources =
ARRAY_SIZE(nhk8815_eth_resources),
233 static int __init nhk8815_eth_init(
void)
242 pr_err(
"Error %i in %s\n", err, __func__);
248 &nhk8815_nand_device,
249 &nhk8815_onenand_device,
254 static void __init nomadik_timer_init(
void)
267 static struct sys_timer nomadik_timer = {
268 .init = nomadik_timer_init,
271 static struct i2c_board_info __initdata nhk8815_i2c0_devices[] = {
277 static struct i2c_board_info __initdata nhk8815_i2c1_devices[] = {
289 static struct i2c_board_info __initdata nhk8815_i2c2_devices[] = {
300 static struct pinctrl_map __initdata nhk8815_pinmap[] = {
328 static void __init nhk8815_platform_init(
void)
332 nhk8815_onenand_init();
349 .atag_offset = 0x100,
353 .timer = &nomadik_timer,
354 .init_machine = nhk8815_platform_init,