]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - cpu/ppc4xx/start.S
ppc4xx: Add initial Zeus (PPC405EP) board support
[karo-tx-uboot.git] / cpu / ppc4xx / start.S
index 18d344560958aa1f85fb4946c8299a6b50c5ccbc..9626b65c8858ac24da3e9c89aef998ee985bedf8 100644 (file)
@@ -1869,38 +1869,7 @@ ppc405ep_init:
        ori     r3,r3,CFG_EBC_PB4CR@l
        mtdcr   ebccfgd,r3
 #endif
-#ifdef CONFIG_TAIHU
-       mfdcr   r4, CPC0_BOOT
-       andi.   r5, r4, CPC0_BOOT_SEP@l
-       bne     strap_0                 /* serial eeprom present */
-#endif
-
-#ifndef CFG_CPC0_PCI
-       li      r3,CPC0_PCI_HOST_CFG_EN
-#ifdef CONFIG_BUBINGA
-       /*
-       !-----------------------------------------------------------------------
-       ! Check FPGA for PCI internal/external arbitration
-       !   If board is set to internal arbitration, update cpc0_pci
-       !-----------------------------------------------------------------------
-       */
-       addis   r5,r0,FPGA_REG1@h      /* set offset for FPGA_REG1 */
-       ori     r5,r5,FPGA_REG1@l
-       lbz     r5,0x0(r5)              /* read to get PCI arb selection */
-       andi.   r6,r5,FPGA_REG1_PCI_INT_ARB  /* using internal arbiter ?*/
-       beq     ..pci_cfg_set             /* if not set, then bypass reg write*/
-#endif
-       ori     r3,r3,CPC0_PCI_ARBIT_EN
-#ifdef CONFIG_TAIHU
-       ori     r3,r3,CPC0_PCI_SPE
-#endif
-#else /* CFG_CPC0_PCI */
-       li      r3,CFG_CPC0_PCI
-#endif /* CFG_CPC0_PCI */
-..pci_cfg_set:
-       mtdcr   CPC0_PCI, r3             /* Enable internal arbiter*/
 
-strap_0:
        /*
        !-----------------------------------------------------------------------
        ! Check to see if chip is in bypass mode.
@@ -1966,6 +1935,21 @@ strap_0:
        bne     _pci_66mhz
 #endif /* CONFIG_TAIHU */
 
+#if defined(CONFIG_ZEUS)
+       mfdcr   r4, CPC0_BOOT
+       andi.   r5, r4, CPC0_BOOT_SEP@l
+       bne     strap_1         /* serial eeprom present */
+       lis     r3,0x0000
+       addi    r3,r3,0x3030
+       lis     r4,0x8042
+       addi    r4,r4,0x223e
+       b       1f
+strap_1:
+       mfdcr   r3, CPC0_PLLMR0
+       mfdcr   r4, CPC0_PLLMR1
+       b       1f
+#endif
+
        addis   r3,0,PLLMR0_DEFAULT@h       /* PLLMR0 default value */
        ori     r3,r3,PLLMR0_DEFAULT@l     /* */
        addis   r4,0,PLLMR1_DEFAULT@h       /* PLLMR1 default value */
@@ -1982,9 +1966,9 @@ _pci_66mhz:
 strap_1:
        mfdcr   r3, CPC0_PLLMR0
        mfdcr   r4, CPC0_PLLMR1
-1:
 #endif /* CONFIG_TAIHU */
 
+1:
        b       pll_write                 /* Write the CPC0_PLLMR with new value */
 
 pll_done: