
29 Mar
2019
29 Mar
'19
10:18 a.m.
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 | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/board/gdsys/mpc8308/sdram.c b/board/gdsys/mpc8308/sdram.c index 3eb0e37b7b5..2a77fed2702 100644 --- 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 */
--
2.20.1