diff options
author | Mario Six | 2019-03-29 10:18:09 +0100 |
---|---|---|
committer | Mario Six | 2019-05-21 08:03:38 +0200 |
commit | edba2b29f57efdff0ee087a0686ef11efbd6f9b8 (patch) | |
tree | 9c9c070eec138dcc7a2117ef3f23d11eb7f1effc /board/gdsys | |
parent | b335fb6d8c7796edce58db5c4743e6de891ec1fe (diff) |
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 <mario.six@gdsys.cc>
Diffstat (limited to 'board/gdsys')
-rw-r--r-- | board/gdsys/mpc8308/sdram.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |