Lines Matching +full:non +full:- +full:volatile
1 // SPDX-License-Identifier: GPL-2.0+
41 volatile ccsr_pcix_t *pcix = (void *)(CONFIG_SYS_MPC85xx_PCIX_ADDR); in pci_mpc85xx_init()
43 volatile ccsr_pcix_t *pcix2 = (void *)(CONFIG_SYS_MPC85xx_PCIX2_ADDR); in pci_mpc85xx_init()
45 volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); in pci_mpc85xx_init()
52 hose->first_busno = 0; in pci_mpc85xx_init()
53 hose->last_busno = 0xff; in pci_mpc85xx_init()
62 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_mpc85xx_init()
68 * Clear non-reserved bits in status register. in pci_mpc85xx_init()
72 if (!(gur->pordevsr & MPC85xx_PORDEVSR_PCI1)) { in pci_mpc85xx_init()
73 /* PCI-X init */ in pci_mpc85xx_init()
75 printf("PCI-X will only work at 66 MHz\n"); in pci_mpc85xx_init()
82 pcix->potar1 = (CONFIG_SYS_PCI1_MEM_BUS >> 12) & 0x000fffff; in pci_mpc85xx_init()
83 pcix->potear1 = 0x00000000; in pci_mpc85xx_init()
84 pcix->powbar1 = (CONFIG_SYS_PCI1_MEM_PHYS >> 12) & 0x000fffff; in pci_mpc85xx_init()
85 pcix->powbear1 = 0x00000000; in pci_mpc85xx_init()
86 pcix->powar1 = (POWAR_EN | POWAR_MEM_READ | in pci_mpc85xx_init()
87 POWAR_MEM_WRITE | (__ilog2(CONFIG_SYS_PCI1_MEM_SIZE) - 1)); in pci_mpc85xx_init()
89 pcix->potar2 = (CONFIG_SYS_PCI1_IO_BUS >> 12) & 0x000fffff; in pci_mpc85xx_init()
90 pcix->potear2 = 0x00000000; in pci_mpc85xx_init()
91 pcix->powbar2 = (CONFIG_SYS_PCI1_IO_PHYS >> 12) & 0x000fffff; in pci_mpc85xx_init()
92 pcix->powbear2 = 0x00000000; in pci_mpc85xx_init()
93 pcix->powar2 = (POWAR_EN | POWAR_IO_READ | in pci_mpc85xx_init()
94 POWAR_IO_WRITE | (__ilog2(CONFIG_SYS_PCI1_IO_SIZE) - 1)); in pci_mpc85xx_init()
96 pcix->pitar1 = 0x00000000; in pci_mpc85xx_init()
97 pcix->piwbar1 = 0x00000000; in pci_mpc85xx_init()
98 pcix->piwar1 = (PIWAR_EN | PIWAR_PF | PIWAR_LOCAL | in pci_mpc85xx_init()
101 pcix->powar3 = 0; in pci_mpc85xx_init()
102 pcix->powar4 = 0; in pci_mpc85xx_init()
103 pcix->piwar2 = 0; in pci_mpc85xx_init()
104 pcix->piwar3 = 0; in pci_mpc85xx_init()
106 pci_set_region(hose->regions + 0, in pci_mpc85xx_init()
112 pci_set_region(hose->regions + 1, in pci_mpc85xx_init()
118 hose->region_count = 2; in pci_mpc85xx_init()
131 * it in a semi-working state, or leaving it working. in pci_mpc85xx_init()
145 hose->last_busno = pci_hose_scan(hose); in pci_mpc85xx_init()
150 hose->first_busno = pci_hose[0].last_busno + 1; in pci_mpc85xx_init()
151 hose->last_busno = 0xff; in pci_mpc85xx_init()
157 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_mpc85xx_init()
163 * Clear non-reserved bits in status register. in pci_mpc85xx_init()
167 pcix2->potar1 = (CONFIG_SYS_PCI2_MEM_BUS >> 12) & 0x000fffff; in pci_mpc85xx_init()
168 pcix2->potear1 = 0x00000000; in pci_mpc85xx_init()
169 pcix2->powbar1 = (CONFIG_SYS_PCI2_MEM_PHYS >> 12) & 0x000fffff; in pci_mpc85xx_init()
170 pcix2->powbear1 = 0x00000000; in pci_mpc85xx_init()
171 pcix2->powar1 = (POWAR_EN | POWAR_MEM_READ | in pci_mpc85xx_init()
172 POWAR_MEM_WRITE | (__ilog2(CONFIG_SYS_PCI2_MEM_SIZE) - 1)); in pci_mpc85xx_init()
174 pcix2->potar2 = (CONFIG_SYS_PCI2_IO_BUS >> 12) & 0x000fffff; in pci_mpc85xx_init()
175 pcix2->potear2 = 0x00000000; in pci_mpc85xx_init()
176 pcix2->powbar2 = (CONFIG_SYS_PCI2_IO_PHYS >> 12) & 0x000fffff; in pci_mpc85xx_init()
177 pcix2->powbear2 = 0x00000000; in pci_mpc85xx_init()
178 pcix2->powar2 = (POWAR_EN | POWAR_IO_READ | in pci_mpc85xx_init()
179 POWAR_IO_WRITE | (__ilog2(CONFIG_SYS_PCI2_IO_SIZE) - 1)); in pci_mpc85xx_init()
181 pcix2->pitar1 = 0x00000000; in pci_mpc85xx_init()
182 pcix2->piwbar1 = 0x00000000; in pci_mpc85xx_init()
183 pcix2->piwar1 = (PIWAR_EN | PIWAR_PF | PIWAR_LOCAL | in pci_mpc85xx_init()
186 pcix2->powar3 = 0; in pci_mpc85xx_init()
187 pcix2->powar4 = 0; in pci_mpc85xx_init()
188 pcix2->piwar2 = 0; in pci_mpc85xx_init()
189 pcix2->piwar3 = 0; in pci_mpc85xx_init()
191 pci_set_region(hose->regions + 0, in pci_mpc85xx_init()
197 pci_set_region(hose->regions + 1, in pci_mpc85xx_init()
203 hose->region_count = 2; in pci_mpc85xx_init()
210 hose->last_busno = pci_hose_scan(hose); in pci_mpc85xx_init()