diff --git a/drivers/amlogic/mtd/m3_nand.c b/drivers/amlogic/mtd/m3_nand.c index 07367c685b3b..47760c108577 100644 --- a/drivers/amlogic/mtd/m3_nand.c +++ b/drivers/amlogic/mtd/m3_nand.c @@ -348,6 +348,7 @@ static void m3_nand_hw_init(struct aml_nand_chip *aml_chip) aml_nfc_clk_init(controller); + /* if (get_cpu_type() == MESON_CPU_MAJOR_ID_G12A) { sys_clk_rate = 24; bus_cycle = 4; @@ -357,6 +358,10 @@ static void m3_nand_hw_init(struct aml_nand_chip *aml_chip) bus_cycle = 6; bus_timing = bus_cycle + 1; } + */ + sys_clk_rate = 200; + bus_cycle = 6; + bus_timing = bus_cycle + 1; get_sys_clk_rate_mtd(controller, &sys_clk_rate); NFC_SET_CFG(controller, 0); @@ -380,6 +385,7 @@ static void m3_nand_adjust_timing(struct aml_nand_chip *aml_chip) else sys_clk_rate = 250; + /* if (get_cpu_type() == MESON_CPU_MAJOR_ID_G12A) { sys_clk_rate = 24; bus_cycle = 4; @@ -388,6 +394,9 @@ static void m3_nand_adjust_timing(struct aml_nand_chip *aml_chip) bus_cycle = 6; bus_timing = bus_cycle + 1; } + */ + bus_cycle = 6; + bus_timing = bus_cycle + 1; get_sys_clk_rate_mtd(controller, &sys_clk_rate); NFC_SET_CFG(controller, 0);