]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mpc5xxx/cpu_init.c: fix warning: unused variable 'cdm'
authorWolfgang Denk <wd@denx.de>
Sun, 31 Jan 2010 21:03:15 +0000 (22:03 +0100)
committerWolfgang Denk <wd@denx.de>
Wed, 3 Feb 2010 19:01:05 +0000 (20:01 +0100)
Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
cpu/mpc5xxx/cpu_init.c

index 2aa6e1c82120d725e6abe9e8651d0750c0af7963..560c9b311c38ea81316fe64e584002622e3b4eb0 100644 (file)
@@ -40,12 +40,14 @@ void cpu_init_f (void)
                (struct mpc5xxx_mmap_ctl *) CONFIG_SYS_MBAR;
        volatile struct mpc5xxx_lpb *lpb =
                (struct mpc5xxx_lpb *) MPC5XXX_LPB;
-       volatile struct mpc5xxx_cdm *cdm =
-               (struct mpc5xxx_cdm *) MPC5XXX_CDM;
        volatile struct mpc5xxx_gpio *gpio =
                (struct mpc5xxx_gpio *) MPC5XXX_GPIO;
        volatile struct mpc5xxx_xlb *xlb =
                (struct mpc5xxx_xlb *) MPC5XXX_XLBARB;
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
+       volatile struct mpc5xxx_cdm *cdm =
+               (struct mpc5xxx_cdm *) MPC5XXX_CDM;
+#endif /* CONFIG_SYS_IPBCLK_EQUALS_XLBCLK */
 #if defined(CONFIG_WATCHDOG)
        volatile struct mpc5xxx_gpt *gpt0 =
                (struct mpc5xxx_gpt *) MPC5XXX_GPT;
@@ -187,11 +189,11 @@ void cpu_init_f (void)
 
 # if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
        /* Motorola reports IPB should better run at 133 MHz. */
-#if defined(CONFIG_MGT5100)
+#  if defined(CONFIG_MGT5100)
        setbits_be32(&mm->addecr, 1);
-#elif defined(CONFIG_MPC5200)
+#  elif defined(CONFIG_MPC5200)
        setbits_be32(&mm->ipbi_ws_ctrl, 1);
-#endif
+#  endif
        /* pci_clk_sel = 0x02, ipb_clk_sel = 0x00; */
        addecr = in_be32(&cdm->cfg);
        addecr &= ~0x103;