I dumped these out from igepv5 u-boot and they seem to work for pyra-4g. Need to figure out why they work.. I left the original timings ifdeffed out to make it easy to compare.
Note that I also booted LPAE kernel using the igepv5 memory config: mem=2032M@0x80000000 mem=2048M@0x300000000
I think Matthijs was using 0x200000000? --- board/goldelico/letux-cortex15/lc15.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
diff --git a/board/goldelico/letux-cortex15/lc15.c b/board/goldelico/letux-cortex15/lc15.c --- a/board/goldelico/letux-cortex15/lc15.c +++ b/board/goldelico/letux-cortex15/lc15.c @@ -37,6 +37,7 @@ const struct omap_sysinfo sysinfo = { */
const struct emif_regs emif_regs_ddr3_532_mhz_2cs_es2 = { +#if 0 .sdram_config_init = 0x61851B3A, .sdram_config = 0x61851B3A, .sdram_config2 = 0x0, @@ -58,6 +59,29 @@ const struct emif_regs emif_regs_ddr3_532_mhz_2cs_es2 = { .emif_rd_wr_lvl_rmp_ctl = 0x80000000, .emif_rd_wr_lvl_ctl = 0x00000000, .emif_rd_wr_exec_thresh = 0x40000305 +#endif + + .sdram_config_init = 0x61851b32, + .sdram_config = 0x61851b32, + .sdram_config2 = 0x00000000, + .ref_ctrl = 0x00001035, + .sdram_tim1 = 0xcccf36b3, + .sdram_tim2 = 0x308f7fda, + .sdram_tim3 = 0x027f88a8, + .read_idle_ctrl = 0x00050000, + .zq_config = 0x5007190b, + .temp_alert_config = 0x00000000, + .emif_ddr_phy_ctlr_1_init = 0x0030400a, + .emif_ddr_phy_ctlr_1 = 0x0034400a, + .emif_ddr_ext_phy_ctrl_1 = 0x04040100, + .emif_ddr_ext_phy_ctrl_2 = 0x00000000, + .emif_ddr_ext_phy_ctrl_3 = 0x00000000, + .emif_ddr_ext_phy_ctrl_4 = 0x00000000, + .emif_ddr_ext_phy_ctrl_5 = 0x4350d435, + .emif_rd_wr_lvl_rmp_win = 0x00000000, + .emif_rd_wr_lvl_rmp_ctl = 0x80000000, + .emif_rd_wr_lvl_ctl = 0x00000000, + .emif_rd_wr_exec_thresh = 0x40000305, };
void emif_get_reg_dump(u32 emif_nr, const struct emif_regs **regs) @@ -82,8 +106,13 @@ void dram_init_banksize(void) const struct dmm_lisa_map_regs lisa_map_pyra_4g = { .dmm_lisa_map_0 = 0x0, .dmm_lisa_map_1 = 0x0, +#if 0 .dmm_lisa_map_2 = 0x80740300, .dmm_lisa_map_3 = 0xFF020100, +#endif + .dmm_lisa_map_2 = 0x807c0300, + .dmm_lisa_map_3 = 0xff020100, + .is_ma_present = 0x1, .is_ma_hm_interleave = 0x1, };