summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2007-08-13 14:38:06 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2007-08-14 01:39:14 -0500
commit6c543597bb4b1ecf5d8589f7abb0f39929fb7fd1 (patch)
tree21ada1e90383add6b973567b77fbdbf8678b1b12 /cpu
parentf2cff6b104f82b993bef6086ce0c97159bbe1add (diff)
downloadu-boot-imx-6c543597bb4b1ecf5d8589f7abb0f39929fb7fd1.zip
u-boot-imx-6c543597bb4b1ecf5d8589f7abb0f39929fb7fd1.tar.gz
u-boot-imx-6c543597bb4b1ecf5d8589f7abb0f39929fb7fd1.tar.bz2
Fix minor 85xx warnings
Some patches had inserted warnings into the build: * mpc8560ads declared data without using it * cpu_init declared ecm and immap without using it in all CONFIGs * MPC8548CDS.h had its default filenames changed so that they contained "\m" in the paths. Made the defaults not Windows-specific (or anything-specific) Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc85xx/cpu_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpu/mpc85xx/cpu_init.c b/cpu/mpc85xx/cpu_init.c
index 888417f..c7fe130 100644
--- a/cpu/mpc85xx/cpu_init.c
+++ b/cpu/mpc85xx/cpu_init.c
@@ -194,10 +194,12 @@ void cpu_init_f (void)
int cpu_init_r(void)
{
+#if defined(CONFIG_CLEAR_LAW0) || defined(CONFIG_L2_CACHE)
volatile immap_t *immap = (immap_t *)CFG_IMMR;
+#endif
+#ifdef CONFIG_CLEAR_LAW0
volatile ccsr_local_ecm_t *ecm = &immap->im_local_ecm;
-#ifdef CONFIG_CLEAR_LAW0
/* clear alternate boot location LAW (used for sdram, or ddr bank) */
ecm->lawar0 = 0;
#endif