diff options
author | Mario Six <mario.six@gdsys.cc> | 2019-01-21 09:18:17 +0100 |
---|---|---|
committer | Mario Six <mario.six@gdsys.cc> | 2019-05-21 07:52:33 +0200 |
commit | 42c9a494f1659db6043f980d5f4fdee86fdf9dfb (patch) | |
tree | f4a50f87cb3901f0a26b09caa843b48795419c74 /board/freescale/mpc8313erdb | |
parent | 133ec602846d28a7915a7b3149d05d1c8a270873 (diff) | |
download | u-boot-42c9a494f1659db6043f980d5f4fdee86fdf9dfb.tar.gz |
mpc83xx: Get rid of CONFIG_SYS_LBC_*
Except for one counter example, CONFIG_SYS_LBC_LBCR always has a value
of either 0x00040000 or 0x00000000.
CONFIG_SYS_LBC_MRTPR always has the value 0x20000000.
CONFIG_SYS_LBC_LSDMR_{1,2,4,5} are not set for any mpc83xx board.
CONFIG_SYS_LBC_LSRT is set by one board (to 0x32000000).
To simplify the configuration files, hardcode the setting of these
values for mpc83xx.
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'board/freescale/mpc8313erdb')
-rw-r--r-- | board/freescale/mpc8313erdb/sdram.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/freescale/mpc8313erdb/sdram.c b/board/freescale/mpc8313erdb/sdram.c index 090412d4b6..c8e30a0947 100644 --- a/board/freescale/mpc8313erdb/sdram.c +++ b/board/freescale/mpc8313erdb/sdram.c @@ -109,8 +109,9 @@ int dram_init(void) msize = fixed_sdram(); /* Local Bus setup lbcr and mrtpr */ - lbc->lbcr = CONFIG_SYS_LBC_LBCR; - lbc->mrtpr = CONFIG_SYS_LBC_MRTPR; + lbc->lbcr = (0x00040000 | (0xFF << LBCR_BMT_SHIFT) | 0xF); + /* LB refresh timer prescal, 266MHz/32 */ + lbc->mrtpr = 0x20000000; sync(); #ifndef CONFIG_SYS_8313ERDB_BROKEN_PMC |