mmp: add nand support to mmp2
Subsystems (3)
PATCH 1/1 mmp: add nand support to mmp2
Signed-off-by Lei Wen <[email protected]>
Signed-off-by Haojian Zhuang <[email protected]>
--- arch/arm/mach-mmp/include/mach/mmp2.h | 6 ++++ arch/arm/mach-mmp/jasper.c | 53 +++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 0 deletions(-)
(quoted diff) +0 -0
b/arch/arm/mach-mmp/include/mach/mmp2.h
index fec220b..d68890b 100644
arch/arm/mach-mmp/include/mach/mmp2.h +2 -0
@@ -4,6 +4,7 @@#include <linux/i2c.h> #include <mach/devices.h> #include <plat/i2c.h> +#include <plat/pxa3xx_nand.h> extern struct pxa_device_desc mmp2_device_uart1;extern struct pxa_device_desc mmp2_device_uart2;
@@ -15,6 +16,7 @@ extern struct pxa_device_desc mmp2_device_twsi3;extern struct pxa_device_desc mmp2_device_twsi4;extern struct pxa_device_desc mmp2_device_twsi5;extern struct pxa_device_desc mmp2_device_twsi6; +extern struct pxa_device_desc mmp2_device_nand;static inline int mmp2_add_uart (int id) {
@@ -56,5 +58,9 @@ static inline int mmp2_add_twsi(int id, struct
i2c_pxa_platform_data *data,
return pxa_register_device(d, data, sizeof(*data));
}
+static inline int mmp2_add_nand(struct pxa3xx_nand_platform_data *data) +{
+ return pxa_register_device(&mmp2_device_nand, data, sizeof(*data));
+}
#endif /* __ASM_MACH_MMP2_H */
arch/arm/mach-mmp/jasper.c +53 -0
71 lines not on this page · raw message
Signature · 1 line
1.5.6.5