diff options
author | Baruch Siach <baruch@tkos.co.il> | 2010-01-14 04:24:15 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-01-14 05:15:02 -0500 |
commit | b97235dfa1aba54786b19fc53ba026e47be86ac6 (patch) | |
tree | 57e04bac9f543977411b3e742c93b7a2387d30d5 /arch/arm/mach-mx25 | |
parent | 27f590258954ea0d22b43e33dd356bc76a8dfe7a (diff) |
mx25pdk: add NAND device support
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25')
-rw-r--r-- | arch/arm/mach-mx25/mx25pdk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/mx25pdk.c b/arch/arm/mach-mx25/mx25pdk.c index 921bc99ea231..c8b1d3b9d010 100644 --- a/arch/arm/mach-mx25/mx25pdk.c +++ b/arch/arm/mach-mx25/mx25pdk.c | |||
@@ -77,6 +77,12 @@ static void __init mx25pdk_fec_reset(void) | |||
77 | gpio_set_value(FEC_RESET_B_GPIO, 1); | 77 | gpio_set_value(FEC_RESET_B_GPIO, 1); |
78 | } | 78 | } |
79 | 79 | ||
80 | static struct mxc_nand_platform_data mx25pdk_nand_board_info = { | ||
81 | .width = 1, | ||
82 | .hw_ecc = 1, | ||
83 | .flash_bbt = 1, | ||
84 | }; | ||
85 | |||
80 | static void __init mx25pdk_init(void) | 86 | static void __init mx25pdk_init(void) |
81 | { | 87 | { |
82 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, | 88 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, |
@@ -84,6 +90,7 @@ static void __init mx25pdk_init(void) | |||
84 | 90 | ||
85 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 91 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
86 | mxc_register_device(&mxc_usbh2, NULL); | 92 | mxc_register_device(&mxc_usbh2, NULL); |
93 | mxc_register_device(&mxc_nand_device, &mx25pdk_nand_board_info); | ||
87 | 94 | ||
88 | mx25pdk_fec_reset(); | 95 | mx25pdk_fec_reset(); |
89 | mxc_register_device(&mx25_fec_device, &mx25_fec_pdata); | 96 | mxc_register_device(&mx25_fec_device, &mx25_fec_pdata); |