]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mpc83xx: Removed #ifdef CONFIG_MPC834X dependency on upmconfig function
authorRichard Retanubun <RichardRetanubun@ruggedcom.com>
Fri, 17 Oct 2008 12:55:51 +0000 (08:55 -0400)
committerKim Phillips <kim.phillips@freescale.com>
Tue, 21 Oct 2008 23:41:04 +0000 (18:41 -0500)
This is done to allow other 83XX based platforms which also have UPM
(e.g. 8360) to configure and use their UPM in u-boot.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/cpu.c

index 05c2f33f9eaffadccdb098ec71a314e26b5d350f..aa9b18d116bd227a43fe9245d5c03d62fea6abc3 100644 (file)
@@ -147,7 +147,6 @@ int checkcpu(void)
  */
 void upmconfig (uint upm, uint *table, uint size)
 {
  */
 void upmconfig (uint upm, uint *table, uint size)
 {
-#if defined(CONFIG_MPC834X)
        volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbus = &immap->lbus;
        volatile uchar *dummy = NULL;
        volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbus = &immap->lbus;
        volatile uchar *dummy = NULL;
@@ -181,10 +180,6 @@ void upmconfig (uint upm, uint *table, uint size)
 
        /* Set the OP field in the MxMR to "normal" and the MAD field to 000000 */
        *mxmr &= 0xCFFFFFC0;
 
        /* Set the OP field in the MxMR to "normal" and the MAD field to 000000 */
        *mxmr &= 0xCFFFFFC0;
-#else
-       printf("Error: %s() not defined for this configuration.\n", __FUNCTION__);
-       hang();
-#endif
 }
 
 
 }