Lines Matching +full:0 +full:x1f00000

21 #define CGU_IFCCR	0x0018
22 #define CGU_IFCCR_VR9 0x0024
24 #define CGU_SYS 0x0010
26 #define CGU_PCICR 0x0034
27 #define CGU_PCICR_VR9 0x0038
29 #define CGU_EPHY 0x10
33 #define PMU_PWDCR 0x1C
35 #define PMU_PWDSR 0x20
37 #define PMU_PWDCR1 0x24
39 #define PMU_PWDSR1 0x28
49 #define PMU_CLK_SR 0x20 /* status */
50 #define PMU_CLK_CR_A 0x24 /* Enable */
51 #define PMU_CLK_CR_B 0x28 /* Disable */
53 #define PMU_CLK_SR1 0x30 /* status */
54 #define PMU_CLK_CR1_A 0x34 /* Enable */
55 #define PMU_CLK_CR1_B 0x38 /* Disable */
57 #define PMU_ANA_SR 0x40 /* status */
58 #define PMU_ANA_CR_A 0x44 /* Enable */
59 #define PMU_ANA_CR_B 0x48 /* Disable */
87 #define PMU_USB0_P BIT(0)
124 #define PMU1_PCIE_PHY BIT(0) /* vr9-specific,moved in ar10/grx390 */
136 #define PMU_ANALOG_USB0_P BIT(0)
192 return 0; in cgu_enable()
224 return 0; in pmu_enable()
256 val &= ~0x03; /* XTAL divided by 3 */ in usb_set_clock()
260 val |= 0x03; /* XTAL divided by 3 */ in usb_set_clock()
262 val |= 0x20; /* from XTAL */ in usb_set_clock()
264 val |= 0x30; /* 12 MHz, generated from 36 MHz */ in usb_set_clock()
276 val &= ~0x1f00000; in pci_enable()
278 val |= 0xe00000; in pci_enable()
280 val |= 0x700000; /* 62.5M */ in pci_enable()
282 val &= ~0xf00000; in pci_enable()
284 val |= 0x800000; in pci_enable()
286 val |= 0x400000; /* 62.5M */ in pci_enable()
290 return 0; in pci_enable()
298 return 0; in pci_ext_enable()
314 for (i = 0; i < 4; i++) { in clkout_enable()
324 return 0; in clkout_enable()
373 static unsigned long valid_pci_rates[] = {CLOCK_33M, CLOCK_62_5M, 0};
389 clk->module = 0; in clkdev_add_pci()
407 {CLOCK_32_768K, CLOCK_1_536M, CLOCK_2_5M, CLOCK_12M, 0},
408 {CLOCK_40M, CLOCK_12M, CLOCK_24M, CLOCK_48M, 0},
409 {CLOCK_25M, CLOCK_40M, CLOCK_30M, CLOCK_60M, 0},
410 {CLOCK_12M, CLOCK_50M, CLOCK_32_768K, CLOCK_25M, 0},
417 for (i = 0; i < 4; i++) { in clkdev_add_clkout()
434 clk->rate = 0; in clkdev_add_clkout()
457 if (of_address_to_resource(np_pmu, 0, &res_pmu) || in ltq_soc_init()
458 of_address_to_resource(np_cgu, 0, &res_cgu) || in ltq_soc_init()
459 of_address_to_resource(np_ebu, 0, &res_ebu)) in ltq_soc_init()
486 clkdev_add_pmu("10000000.fpi", NULL, 0, 0, PMU_FPI); in ltq_soc_init()
487 clkdev_add_pmu("1e100a00.gptu", NULL, 1, 0, PMU_GPT); in ltq_soc_init()
488 clkdev_add_pmu("1e100bb0.stp", NULL, 1, 0, PMU_STP); in ltq_soc_init()
489 clkdev_add_pmu("1e100c00.serial", NULL, 0, 0, PMU_ASC1); in ltq_soc_init()
490 clkdev_add_pmu("1e104100.dma", NULL, 1, 0, PMU_DMA); in ltq_soc_init()
491 clkdev_add_pmu("1e100800.spi", NULL, 1, 0, PMU_SPI); in ltq_soc_init()
492 clkdev_add_pmu("1e105300.ebu", NULL, 0, 0, PMU_EBU); in ltq_soc_init()
500 clkdev_add_pmu("1e180000.etop", NULL, 1, 0, PMU_PPE); in ltq_soc_init()
508 clkdev_add_pmu("1e108000.switch", "gphy0", 0, 0, PMU_GPHY0); in ltq_soc_init()
509 clkdev_add_pmu("1e108000.switch", "gphy1", 0, 0, PMU_GPHY1); in ltq_soc_init()
510 clkdev_add_pmu("1e108000.switch", "gphy2", 0, 0, PMU_GPHY2); in ltq_soc_init()
513 /* rc 0 */ in ltq_soc_init()
532 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0); in ltq_soc_init()
533 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); in ltq_soc_init()
534 clkdev_add_pmu("1e180000.etop", "ppe", 1, 0, PMU_PPE); in ltq_soc_init()
536 clkdev_add_pmu("1e180000.etop", "ephy", 1, 0, PMU_EPHY); in ltq_soc_init()
537 clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_ASE_SDIO); in ltq_soc_init()
538 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); in ltq_soc_init()
542 clkdev_add_pmu("1e108000.switch", "gphy3", 0, 0, PMU_GPHY3); in ltq_soc_init()
543 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0); in ltq_soc_init()
544 clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1); in ltq_soc_init()
550 clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, PMU_SWITCH | PMU_PPE_DP); in ltq_soc_init()
551 clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); in ltq_soc_init()
552 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); in ltq_soc_init()
556 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0); in ltq_soc_init()
557 clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1); in ltq_soc_init()
558 clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, PMU_SWITCH | in ltq_soc_init()
560 clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); in ltq_soc_init()
561 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); in ltq_soc_init()
563 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); in ltq_soc_init()
567 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); in ltq_soc_init()
568 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); in ltq_soc_init()
569 clkdev_add_pmu("1f203034.usb2-phy", "phy", 1, 0, PMU_USB1_P); in ltq_soc_init()
570 clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1 | PMU_AHBM); in ltq_soc_init()
572 clkdev_add_pmu("1d900000.pcie", "bus", 1, 0, PMU_PCIE_CLK); in ltq_soc_init()
576 clkdev_add_pmu(NULL, "ahb", 1, 0, PMU_AHBM | PMU_AHBS); in ltq_soc_init()
578 clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); in ltq_soc_init()
579 clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, in ltq_soc_init()
583 clkdev_add_pmu("1e108000.switch", "gphy0", 0, 0, PMU_GPHY); in ltq_soc_init()
584 clkdev_add_pmu("1e108000.switch", "gphy1", 0, 0, PMU_GPHY); in ltq_soc_init()
585 clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO); in ltq_soc_init()
586 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); in ltq_soc_init()
587 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); in ltq_soc_init()
591 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); in ltq_soc_init()
592 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); in ltq_soc_init()
593 clkdev_add_pmu("1f203034.usb2-phy", "phy", 1, 0, PMU_USB1_P); in ltq_soc_init()
594 clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1 | PMU_AHBM); in ltq_soc_init()
595 clkdev_add_pmu("1e180000.etop", "switch", 1, 0, PMU_SWITCH); in ltq_soc_init()
596 clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO); in ltq_soc_init()
597 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); in ltq_soc_init()
598 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); in ltq_soc_init()
599 clkdev_add_pmu("1e100400.serial", NULL, 1, 0, PMU_ASC0); in ltq_soc_init()
603 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); in ltq_soc_init()
604 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); in ltq_soc_init()
605 clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO); in ltq_soc_init()
606 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); in ltq_soc_init()
607 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); in ltq_soc_init()
608 clkdev_add_pmu("1e100400.serial", NULL, 1, 0, PMU_ASC0); in ltq_soc_init()