diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-07-18 17:16:36 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-07-18 17:16:36 +0000 |
commit | 85f88ca4beafa8d00a073ab5430f53c891eac0ed (patch) | |
tree | c157fe09cb679b6ab7d06ea7b5fcfaa14310b721 /target/linux/adm5120-2.6/files/include | |
parent | 21259095f999f70f9dd1fb947be00afb56df3da9 (diff) | |
download | master-187ad058-85f88ca4beafa8d00a073ab5430f53c891eac0ed.tar.gz master-187ad058-85f88ca4beafa8d00a073ab5430f53c891eac0ed.tar.bz2 master-187ad058-85f88ca4beafa8d00a073ab5430f53c891eac0ed.zip |
Convert the nand driver to a platform_device, should only allow routerboards to use it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8045 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/files/include')
-rw-r--r-- | target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_platform.h b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_platform.h index b9822983c7..e63611912a 100644 --- a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_platform.h +++ b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_platform.h @@ -32,8 +32,14 @@ struct adm5120_flash_platform_data { void (*set_vpp)(struct map_info *, int); void (*switch_bank)(unsigned); +#ifdef CONFIG_MTD_PARTITIONS unsigned int nr_parts; struct mtd_partition *parts; +#endif +}; + +struct adm5120_nand_platform_data { + /* TODO : not yet implemented */ }; struct adm5120_switch_platform_data { @@ -54,11 +60,13 @@ struct adm5120_pci_platform_data { extern struct adm5120_flash_platform_data adm5120_flash0_data; extern struct adm5120_flash_platform_data adm5120_flash1_data; +extern struct adm5120_nand_platform_data adm5120_nand_data; extern struct adm5120_pci_platform_data adm5120_pci_data; extern struct adm5120_switch_platform_data adm5120_switch_data; extern struct platform_device adm5120_flash0_device; extern struct platform_device adm5120_flash1_device; +extern struct platform_device adm5120_nand_device; extern struct platform_device adm5120_usbc_device; extern struct platform_device adm5120_pci_device; extern struct platform_device adm5120_switch_device; |