From: Mario Six Date: Fri, 29 Mar 2019 09:18:09 +0000 (+0100) Subject: gdsys: mpc8308: Don't use manual RAM config if RAM driver is active X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=edba2b29f57efdff0ee087a0686ef11efbd6f9b8;p=u-boot.git gdsys: mpc8308: Don't use manual RAM config if RAM driver is active 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 --- diff --git a/board/gdsys/mpc8308/sdram.c b/board/gdsys/mpc8308/sdram.c index 3eb0e37b7b..2a77fed270 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 #include #include @@ -81,3 +83,5 @@ int dram_init(void) return 0; } + +#endif /* !CONFIG_MPC83XX_SDRAM */