10 #include <linux/kernel.h>
17 #include <linux/i2c.h>
39 #define NAND_BLOCK_SIZE SZ_128K
60 .name =
"filesystem1",
65 .name =
"filesystem2",
74 .mask_chipsel =
BIT(14),
75 .parts = davinci_nand_partitions,
76 .nr_parts =
ARRAY_SIZE(davinci_nand_partitions),
81 static struct resource davinci_nand_resources[] = {
94 .name =
"davinci_nand",
97 .num_resources =
ARRAY_SIZE(davinci_nand_resources),
98 .resource = davinci_nand_resources,
101 .platform_data = &davinci_nand_data,
110 static int leopard_mmc_gpio = -
EINVAL;
112 static void dm355leopard_mmcsd_gpios(
unsigned gpio)
123 leopard_mmc_gpio =
gpio;
128 .platform_data = dm355leopard_mmcsd_gpios,
134 static void __init leopard_init_i2c(
void)
146 static struct resource dm355leopard_dm9000_rsrc[] = {
166 .resource = dm355leopard_dm9000_rsrc,
167 .num_resources =
ARRAY_SIZE(dm355leopard_dm9000_rsrc),
171 &dm355leopard_dm9000,
172 &davinci_nand_device,
179 static void __init dm355_leopard_map_io(
void)
184 static int dm355leopard_mmc_get_cd(
int module)
186 if (!gpio_is_valid(leopard_mmc_gpio))
192 static int dm355leopard_mmc_get_ro(
int module)
194 if (!gpio_is_valid(leopard_mmc_gpio))
201 .get_cd = dm355leopard_mmc_get_cd,
202 .get_ro = dm355leopard_mmc_get_ro,
204 .max_freq = 50000000,
213 #ifdef CONFIG_USB_MUSB_PERIPHERAL
214 #define USB_ID_VALUE 0
216 #define USB_ID_VALUE 1
229 .platform_data = &at25640a,
230 .max_speed_hz = 10 * 1000 * 1000,
237 static __init void dm355_leopard_init(
void)
245 aemif =
clk_get(&dm355leopard_dm9000.
dev,
"aemif");
247 WARN(
"%s: unable to get AEMIF clock\n", __func__);
274 .atag_offset = 0x100,
275 .map_io = dm355_leopard_map_io,
278 .init_machine = dm355_leopard_init,