summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorAllen Xu <allen.xu@freescale.com>2012-04-10 16:56:38 +0800
committerFrank Li <Frank.Li@freescale.com>2012-04-12 15:08:16 +0800
commit262d279aa7a549dbbc46882b889c0f9b6271c4b2 (patch)
tree856501f562a7b07e994e47febe1b3ee7fc3b6e16 /arch/arm
parenta378494ae9d706e6f30d6c020df99198a436c7d7 (diff)
ENGR00179284-2 support ONFI NAND device on mx6q_arm2_pop board
enable ONFI NAND feature by command line parameter "onfi_support" Signed-off-by: Allen Xu <allen.xu@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_arm2.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_arm2.c b/arch/arm/mach-mx6/board-mx6q_arm2.c
index f720c87fd3ba..2318f76cc5eb 100644
--- a/arch/arm/mach-mx6/board-mx6q_arm2.c
+++ b/arch/arm/mach-mx6/board-mx6q_arm2.c
@@ -316,15 +316,24 @@ static int __init gpmi_nand_platform_init(void)
return mxc_iomux_v3_setup_multiple_pads(nand_pads, nand_pads_cnt);
}
-static const struct gpmi_nand_platform_data
-mx6_gpmi_nand_platform_data __initconst = {
+static struct gpmi_nand_platform_data
+mx6_gpmi_nand_platform_data = {
.platform_init = gpmi_nand_platform_init,
.min_prop_delay_in_ns = 5,
.max_prop_delay_in_ns = 9,
.max_chip_count = 1,
.enable_bbt = 1,
+ .enable_ddr = 0,
};
+static int __init board_support_onfi_nand(char *p)
+{
+ mx6_gpmi_nand_platform_data.enable_ddr = 1;
+ return 0;
+}
+
+early_param("onfi_support", board_support_onfi_nand);
+
static const struct anatop_thermal_platform_data
mx6_arm2_anatop_thermal_data __initconst = {
.name = "anatop_thermal",