diff options
author | mark.vels@team-embedded.nl <mark.vels@team-embedded.nl> | 2010-10-05 17:46:19 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-13 21:28:54 +0200 |
commit | 812493ad872a56c81a20232a7e89be11ec388c87 (patch) | |
tree | 7793ab5089b3683483924478cd658985107796e6 /board | |
parent | e1b4c57096b87b4ada56df4154d9acee6a59141f (diff) | |
download | u-boot-midas-812493ad872a56c81a20232a7e89be11ec388c87.tar.gz u-boot-midas-812493ad872a56c81a20232a7e89be11ec388c87.tar.bz2 u-boot-midas-812493ad872a56c81a20232a7e89be11ec388c87.zip |
Fix define for MPC5121 ADS board.
Originally the Makefile defines CONFIG_ADS5121_REV2 when configuring
for board mpc5121ads_rev2. The config in include/configs/mpc5121ads.h
expects a define CONFIG_MPC5121ADS_REV2 for this.
Therefore there are two defines used but only 1 is defined.
This patch renames references to CONFIG_ADS5121_REV2 to CONFIG_MPC5121ADS_REV2
to have one common define.
This patch fixes faulty mem size detection caused by wrong config in
include/configs/mpc5121ads.h
Signed-off-by: Mark Vels <mark.vels@team-embedded.nl>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mpc5121ads/mpc5121ads.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/mpc5121ads/mpc5121ads.c b/board/freescale/mpc5121ads/mpc5121ads.c index a84644def4..8cc68530e6 100644 --- a/board/freescale/mpc5121ads/mpc5121ads.c +++ b/board/freescale/mpc5121ads/mpc5121ads.c @@ -102,7 +102,7 @@ int board_early_init_f(void) * write commands in order to establish the device ID. */ -#ifdef CONFIG_ADS5121_REV2 +#ifdef CONFIG_MPC5121ADS_REV2 out_8((u8 *)(CONFIG_SYS_CPLD_BASE + 0x08), 0xC1); #else if (in_8((u8 *)(CONFIG_SYS_CPLD_BASE + 0x08)) & 0x04) { @@ -329,7 +329,7 @@ int checkboard (void) volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR; u32 spridr = in_be32(&im->sysconf.spridr); - printf ("Board: ADS5121 rev. 0x%04x (CPLD rev. 0x%02x)\n", + printf ("Board: MPC5121ADS rev. 0x%04x (CPLD rev. 0x%02x)\n", brd_rev, cpld_rev); /* initialize function mux & slew rate IO inter alia on IO Pins */ |