{
int sys_clk_rate, bus_cycle, bus_timing;
- sys_clk_rate = 24;
+ if (get_cpu_type() == MESON_CPU_MAJOR_ID_G12A) {
+ sys_clk_rate = 24;
+ bus_cycle = 4;
+ bus_timing = 3;
+ } else {
+ sys_clk_rate = 200;
+ bus_cycle = 6;
+ bus_timing = bus_cycle + 1;
+ }
get_sys_clk_rate_mtd(controller, &sys_clk_rate);
- /* sys_time = (10000 / sys_clk_rate); */
- bus_cycle = 4;
- bus_timing = 3;
-
NFC_SET_CFG(controller, 0);
NFC_SET_TIMING_ASYC(controller, bus_timing, (bus_cycle - 1));
NFC_SEND_CMD(controller, 1<<31);
else
sys_clk_rate = 250;
- sys_clk_rate = 24;
+ if (get_cpu_type() == MESON_CPU_MAJOR_ID_G12A) {
+ sys_clk_rate = 24;
+ bus_cycle = 4;
+ bus_timing = 3;
+ } else {
+ bus_cycle = 6;
+ bus_timing = bus_cycle + 1;
+ }
get_sys_clk_rate_mtd(controller, &sys_clk_rate);
- /* sys_time = (10000 / sys_clk_rate); */
-
- bus_cycle = 4;
- bus_timing = 3;
-
NFC_SET_CFG(controller, 0);
NFC_SET_TIMING_ASYC(controller, bus_timing, (bus_cycle - 1));
0,
0,
(NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
+ {"A revision NAND 2Gib TC58BVG0S3HTA00 ",
+ {NAND_MFR_TOSHIBA, 0xf1, 0x80, 0x15, 0xf2},
+ 2048,
+ 128,
+ 0x20000,
+ 64,
+ 1,
+ 20,
+ 25,
+ 0,
+ 0,
+ (NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
{"A revision NAND 4Gib TH58NVG2S3HTA00 ",
{NAND_MFR_TOSHIBA, 0xdc, 0x91, 0x15, 0x76},
2048,