28 #include <linux/i2c.h>
38 #include <mach/common.h>
46 #define SFFSDR_PHY_ID "davinci_mdio-0:01"
47 static struct mtd_partition davinci_sffsdr_nandflash_partition[] = {
55 .name =
"Linux Kernel",
69 .parts = davinci_sffsdr_nandflash_partition,
70 .nr_parts =
ARRAY_SIZE(davinci_sffsdr_nandflash_partition),
73 static struct resource davinci_sffsdr_nandflash_resource[] = {
86 .name =
"davinci_nand",
89 .platform_data = &davinci_sffsdr_nandflash_data,
91 .num_resources =
ARRAY_SIZE(davinci_sffsdr_nandflash_resource),
92 .resource = davinci_sffsdr_nandflash_resource,
96 .byte_len = (64*1024) / 8,
104 .platform_data = &eeprom_info,
118 static void __init sffsdr_init_i2c(
void)
125 &davinci_sffsdr_nandflash_device,
132 static void __init davinci_sffsdr_map_io(
void)
137 static __init void davinci_sffsdr_init(
void)
155 .atag_offset = 0x100,
156 .map_io = davinci_sffsdr_map_io,
159 .init_machine = davinci_sffsdr_init,