mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
nand: improve nfc clock
PD#156734: nand: improve nfc clock base on pad driver strength set level1 Change-Id: I1a9fd710e415a064572063292ef569bf67e527a4 Signed-off-by: Liang Yang <liang.yang@amlogic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user