]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix minor 85xx warnings
authorAndy Fleming <afleming@freescale.com>
Mon, 13 Aug 2007 19:38:06 +0000 (14:38 -0500)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Tue, 14 Aug 2007 06:39:14 +0000 (01:39 -0500)
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>
board/mpc8560ads/mpc8560ads.c
cpu/mpc85xx/cpu_init.c
include/configs/MPC8548CDS.h

index 41acb97af7eafd50f8fe4b6b35b3d5149bbb35cb..eef524b45ea8b243a21257b741e6d4db11e599c7 100644 (file)
@@ -554,7 +554,6 @@ ft_soc_setup(void *blob, bd_t *bd)
 {
        u32 *p;
        int len;
-       ulong data;
 
        p = ft_get_prop(blob, "/" OF_SOC "/cpm@e0000000/brg-frequency", &len);
 
index 888417f864baba3cdb94b724aa6363cc33168ac6..c7fe130ee0eee75217f98880dd00aa54ba6afc84 100644 (file)
@@ -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
index d7afdbd606fa21e95f8fc45d044dfe0466581548..dfe4f5b7a1bac7af71b1bcae5acf457c74015079 100644 (file)
@@ -623,6 +623,7 @@ extern unsigned long get_clock_freq(void);
 #define ENET_ENV ""
 #endif
 
+#if 0
 #define        CONFIG_EXTRA_ENV_SETTINGS                               \
  "netdev=eth0\0"                                               \
  "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0"                                \
@@ -634,9 +635,9 @@ extern unsigned long get_clock_freq(void);
        "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0"     \
  "consoledev=ttyS1\0"                          \
  "ramdiskaddr=2000000\0"                       \
- "ramdiskfile=mpc8548cds\ramdisk.uboot\0"      \
+ "ramdiskfile=ramdisk.uboot\0"                 \
  "dtbaddr=c00000\0"                            \
- "dtbfile=mpc8548cds\mpc8548cds.dtb\0"         \
+ "dtbfile=mpc8548cds.dtb\0"                    \
  "eoi=mw e00400b0 0\0"                         \
  "iack=md e00400a0 1\0"                                \
  "ddrreg=md ${a}000 8; md ${a}080 8;md ${a}100 d; md ${a}140 4; md ${a}bf0 4;" \
@@ -658,6 +659,7 @@ extern unsigned long get_clock_freq(void);
  PCI_ENV1 \
  PCI_ENV2 \
  ENET_ENV
+#endif
 
 
 #define CONFIG_NFSBOOTCOMMAND                                          \