]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00179284-2 support ONFI NAND device on mx6q_arm2_pop board
authorAllen Xu <allen.xu@freescale.com>
Tue, 10 Apr 2012 08:56:38 +0000 (16:56 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:25 +0000 (08:34 +0200)
enable ONFI NAND feature by command line parameter "onfi_support"

Signed-off-by: Allen Xu <allen.xu@freescale.com>
arch/arm/mach-mx6/board-mx6q_arm2.c

index f720c87fd3ba11ccf6627812e31387475a04c1f3..2318f76cc5eb6f004ae283eec2b0110ca8224b8e 100644 (file)
@@ -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",