projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b335fb6
)
gdsys: mpc8308: Don't use manual RAM config if RAM driver is active
author
Mario Six
<mario.six@gdsys.cc>
Fri, 29 Mar 2019 09:18:09 +0000
(10:18 +0100)
committer
Mario Six
<mario.six@gdsys.cc>
Tue, 21 May 2019 06:03:38 +0000
(08:03 +0200)
The "manual" RAM configuration should not be used if the DM RAM driver
is active, hence, disable the code if the CONFIG_MPC83XX_SDRAM config
variable is defined.
Signed-off-by: Mario Six <mario.six@gdsys.cc>
board/gdsys/mpc8308/sdram.c
patch
|
blob
|
history
diff --git
a/board/gdsys/mpc8308/sdram.c
b/board/gdsys/mpc8308/sdram.c
index 3eb0e37b7b56944f8b1391ef5ae141ea9ead4614..2a77fed27022d5489d99c30cddebd4a2bba80705 100644
(file)
--- a/
board/gdsys/mpc8308/sdram.c
+++ b/
board/gdsys/mpc8308/sdram.c
@@
-11,6
+11,8
@@
* board\freescale\mpc8315erdb\sdram.c
*/
+#ifndef CONFIG_MPC83XX_SDRAM
+
#include <common.h>
#include <mpc83xx.h>
#include <spd_sdram.h>
@@
-81,3
+83,5
@@
int dram_init(void)
return 0;
}
+
+#endif /* !CONFIG_MPC83XX_SDRAM */