Lines Matching +full:pcfg +full:-

6  * 2003-2005 (c) MontaVista Software, Inc.
7 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007
33 if (____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_WDRST) in tx4938_wdr_init()
51 (____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_WDREXEN) ? in tx4938_machine_restart()
56 while (!(____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_WDRST)) in tx4938_machine_restart()
59 if (____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_WDREXEN) { in tx4938_machine_restart()
71 int data = regs->cp0_cause & 4; in tx4938_be_handler()
73 pr_err("%cBE exception at %#lx\n", data ? 'D' : 'I', regs->cp0_epc); in tx4938_be_handler()
75 (unsigned long long)____raw_readq(&tx4938_ccfgptr->ccfg), in tx4938_be_handler()
76 (unsigned long long)____raw_readq(&tx4938_ccfgptr->toea)); in tx4938_be_handler()
110 txx9_ce_res[i].start + TX4938_EBUSC_SIZE(i) - 1; in tx4938_setup()
115 ccfg = ____raw_readq(&tx4938_ccfgptr->ccfg); in tx4938_setup()
193 txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_DMASEL_ALL); in tx4938_setup()
196 if (!(____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_PCIARB)) in tx4938_setup()
197 txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_PCICLKEN_ALL); in tx4938_setup()
199 pr_info("%s -- %dMHz(M%dMHz) CRIR:%08x CCFG:%llx PCFG:%llx\n", in tx4938_setup()
202 (__u32)____raw_readq(&tx4938_ccfgptr->crir), in tx4938_setup()
203 ____raw_readq(&tx4938_ccfgptr->ccfg), in tx4938_setup()
204 ____raw_readq(&tx4938_ccfgptr->pcfg)); in tx4938_setup()
206 pr_info("%s SDRAMC --", txx9_pcode_str); in tx4938_setup()
217 tx4938_sdram_resource[i].end = base + size - 1; in tx4938_setup()
221 pr_cont(" TR:%09llx\n", ____raw_readq(&tx4938_sdramcptr->tr)); in tx4938_setup()
224 if (txx9_pcode == 0x4938 && ____raw_readq(&tx4938_sramcptr->cr) & 1) { in tx4938_setup()
228 (____raw_readq(&tx4938_sramcptr->cr) >> (39-11)) in tx4938_setup()
229 & ~(size - 1); in tx4938_setup()
231 tx4938_sram_resource.start + TX4938_SRAM_SIZE - 1; in tx4938_setup()
242 __raw_writel(0, &tx4938_pioptr->maskcpu); in tx4938_setup()
243 __raw_writel(0, &tx4938_pioptr->maskext); in tx4938_setup()
246 __u64 pcfg = ____raw_readq(&tx4938_ccfgptr->pcfg); in tx4938_setup() local
248 txx9_set64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIC1RST); in tx4938_setup()
249 if (pcfg & (TX4938_PCFG_ETH0_SEL | TX4938_PCFG_ETH1_SEL)) { in tx4938_setup()
252 txx9_clear64(&tx4938_ccfgptr->clkctr, in tx4938_setup()
257 txx9_set64(&tx4938_ccfgptr->clkctr, in tx4938_setup()
260 if (!(pcfg & TX4938_PCFG_ETH0_SEL)) { in tx4938_setup()
262 txx9_set64(&tx4938_ccfgptr->clkctr, in tx4938_setup()
264 txx9_set64(&tx4938_ccfgptr->clkctr, in tx4938_setup()
267 if (!(pcfg & TX4938_PCFG_ETH1_SEL)) { in tx4938_setup()
269 txx9_set64(&tx4938_ccfgptr->clkctr, in tx4938_setup()
271 txx9_set64(&tx4938_ccfgptr->clkctr, in tx4938_setup()
282 if (____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_TINTDIS) in tx4938_time_init()
293 if (__raw_readq(&tx4938_ccfgptr->pcfg) & TX4938_PCFG_ETH0_SEL) in tx4938_sio_init()
294 ch_mask |= 1 << 1; /* disable SIO1 by PCFG setting */ in tx4938_sio_init()
312 u64 pcfg = __raw_readq(&tx4938_ccfgptr->pcfg); in tx4938_ethaddr_init() local
314 if (addr0 && (pcfg & TX4938_PCFG_ETH0_SEL)) in tx4938_ethaddr_init()
316 if (addr1 && (pcfg & TX4938_PCFG_ETH1_SEL)) in tx4938_ethaddr_init()
326 unsigned long size = txx9_ce_res[ch].end - start + 1; in tx4938_mtd_init()
356 if ((__raw_readq(&tx4938_ccfgptr->pcfg) & in tx4938_ata_init()
362 ebccr = __raw_readq(&tx4938_ebuscptr->cr[i]); in tx4938_ata_init()
370 res[0].end = res[0].start + 0x20000 - 1; in tx4938_ata_init()
371 pdev = platform_device_alloc("tx4938ide", -1); in tx4938_ata_init()
393 if ((__raw_readq(&tx4938_ccfgptr->pcfg) & in tx4938_ndfmc_init()
416 u64 pcfg = __raw_readq(&tx4938_ccfgptr->pcfg); in tx4938_aclc_init() local
418 if ((pcfg & TX4938_PCFG_SEL2) && in tx4938_aclc_init()
419 !(pcfg & TX4938_PCFG_ETH0_SEL)) in tx4938_aclc_init()
433 __u64 pcfg, rst = 0, ckd = 0; in tx4938_stop_unused_modules() local
438 pcfg = ____raw_readq(&tx4938_ccfgptr->pcfg); in tx4938_stop_unused_modules()
441 if (!(pcfg & TX4938_PCFG_SEL2)) { in tx4938_stop_unused_modules()
448 if (!(pcfg & TX4938_PCFG_SEL2) || in tx4938_stop_unused_modules()
449 (pcfg & TX4938_PCFG_ETH0_SEL)) { in tx4938_stop_unused_modules()
454 if ((pcfg & in tx4938_stop_unused_modules()
462 if (!(pcfg & TX4938_PCFG_SPI_SEL)) { in tx4938_stop_unused_modules()
470 txx9_set64(&tx4938_ccfgptr->clkctr, rst); in tx4938_stop_unused_modules()
471 txx9_set64(&tx4938_ccfgptr->clkctr, ckd); in tx4938_stop_unused_modules()
481 return -ENODEV; in tx4938_late_init()