]> git.sur5r.net Git - u-boot/commitdiff
85xx: Add PORDEVSR_PCI1 define
authorPeter Tyser <ptyser@xes-inc.com>
Mon, 1 Dec 2008 19:47:12 +0000 (13:47 -0600)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Thu, 4 Dec 2008 09:15:43 +0000 (03:15 -0600)
Add define used to determine if PCI1 interface is in PCI or PCIX mode.

Convert users of the old PORDEVSR_PCI constant to use MPC85xx_PORDEVSR_PCI1

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
board/freescale/mpc8548cds/mpc8548cds.c
board/sbc8548/sbc8548.c
board/tqc/tqm85xx/tqm85xx.c
cpu/mpc85xx/pci.c
include/asm-ppc/immap_85xx.h

index ba6bff585c16c4ded11388da42406ec0e150af3f..c562fc9d95524ed80c6dbef12983b66800bc5613 100644 (file)
@@ -332,7 +332,7 @@ pci_init_board(void)
                first_free_busno=hose->last_busno+1;
                printf ("PCI on bus %02x - %02x\n",hose->first_busno,hose->last_busno);
 #ifdef CONFIG_PCIX_CHECK
-               if (!(gur->pordevsr & PORDEVSR_PCI)) {
+               if (!(gur->pordevsr & MPC85xx_PORDEVSR_PCI1)) {
                        /* PCI-X init */
                        if (CONFIG_SYS_CLK_FREQ < 66000000)
                                printf("PCI-X will only work at 66 MHz\n");
index 017f6b35cf690d114fc4b72161ee86576a72a396..8c073cb4bb28a983492471d9c5e056ad4822c4f1 100644 (file)
@@ -412,7 +412,7 @@ pci_init_board(void)
                first_free_busno=hose->last_busno+1;
                printf ("PCI on bus %02x - %02x\n",hose->first_busno,hose->last_busno);
 #ifdef CONFIG_PCIX_CHECK
-               if (!(gur->pordevsr & PORDEVSR_PCI)) {
+               if (!(gur->pordevsr & MPC85xx_PORDEVSR_PCI1)) {
                        /* PCI-X init */
                        if (CONFIG_SYS_CLK_FREQ < 66000000)
                                printf("PCI-X will only work at 66 MHz\n");
index 3a828edc1ad2667962fc3145b3fb80d75251b74c..73f1d01bdf23d52c143b06baf34e146456732690 100644 (file)
@@ -610,7 +610,7 @@ static inline void init_pci1(void)
 
                first_free_busno = hose->last_busno + 1;
 #ifdef CONFIG_PCIX_CHECK
-               if (!(gur->pordevsr & PORDEVSR_PCI)) {
+               if (!(gur->pordevsr & MPC85xx_PORDEVSR_PCI1)) {
                        ushort reg16 =
                                PCI_X_CMD_MAX_SPLIT | PCI_X_CMD_MAX_READ |
                                PCI_X_CMD_ERO | PCI_X_CMD_DPERR_E;
index 112f18c2b8b261e69bbc2c3d31bf2e6a7c72f0c4..787c6eb74c47ddd5163301492efef9e087ad0e86 100644 (file)
@@ -70,7 +70,7 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
         */
        pci_hose_write_config_word(hose, dev, PCI_STATUS, 0xffff);
 
-       if (!(gur->pordevsr & PORDEVSR_PCI)) {
+       if (!(gur->pordevsr & MPC85xx_PORDEVSR_PCI1)) {
                /* PCI-X init */
                if (CONFIG_SYS_CLK_FREQ < 66000000)
                        printf("PCI-X will only work at 66 MHz\n");
index 75b451d2019aa5eaff7ee025975fcc3886e8a922..e5046bef3217624336838ad10f6a1f8747df11cd 100644 (file)
@@ -1569,6 +1569,7 @@ typedef struct ccsr_gur {
 #define MPC85xx_PORDEVSR_SGMII3_DIS    0x08000000
 #define MPC85xx_PORDEVSR_SGMII4_DIS    0x04000000
 #define MPC85xx_PORDEVSR_SRDS2_IO_SEL   0x38000000
+#define MPC85xx_PORDEVSR_PCI1          0x00800000
 #define MPC85xx_PORDEVSR_IO_SEL                0x00780000
 #define MPC85xx_PORDEVSR_PCI2_ARB      0x00040000
 #define MPC85xx_PORDEVSR_PCI1_ARB      0x00020000
@@ -1647,8 +1648,6 @@ typedef struct ccsr_gur {
        char    res15[61648];   /* 0xe0f30 to 0xefffff */
 } ccsr_gur_t;
 
-#define PORDEVSR_PCI   (0x00800000)    /* PCI Mode */
-
 #define CONFIG_SYS_MPC85xx_GUTS_OFFSET (0xE0000)
 #define CONFIG_SYS_MPC85xx_GUTS_ADDR   (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_GUTS_OFFSET)
 #define CONFIG_SYS_MPC85xx_ECM_OFFSET  (0x0000)