Lines Matching refs:SCU_RD

486 	reg = SCU_RD(p_mac->base_reset_assert);  in scu_disable_mac()
492 reg = SCU_RD(p_mac->base_reset_assert); in scu_disable_mac()
494 reg = SCU_RD(p_mac->base_clk_stop); in scu_disable_mac()
500 reg = SCU_RD(p_mac->base_clk_stop); in scu_disable_mac()
517 reg = SCU_RD(p_mac->base_reset_deassert); in scu_enable_mac()
523 reg = SCU_RD(p_mac->base_reset_deassert); in scu_enable_mac()
525 reg = SCU_RD(p_mac->base_clk_start); in scu_enable_mac()
531 reg = SCU_RD(p_mac->base_clk_start); in scu_enable_mac()
536 reg = SCU_RD(p_mac->base_reset_assert); in scu_enable_mac()
542 reg = SCU_RD(p_mac->base_clk_stop); in scu_enable_mac()
563 reg = SCU_RD(0x430) | GENMASK(17, 16); in scu_set_pinmux()
567 reg = SCU_RD(0x470) & ~GENMASK(13, 12); in scu_set_pinmux()
569 reg = SCU_RD(0x410) | GENMASK(13, 12); in scu_set_pinmux()
573 reg = SCU_RD(0x470) & ~GENMASK(1, 0); in scu_set_pinmux()
575 reg = SCU_RD(0x410) | GENMASK(1, 0); in scu_set_pinmux()
579 reg = SCU_RD(0x470) & ~GENMASK(3, 2); in scu_set_pinmux()
581 reg = SCU_RD(0x410) | GENMASK(3, 2); in scu_set_pinmux()
621 debug("SCU410: %08x %08x %08x %08x\n", SCU_RD(0x410), SCU_RD(0x414), SCU_RD(0x418), SCU_RD(0x41c)); in scu_set_pinmux()
622 debug("SCU430: %08x %08x %08x %08x\n", SCU_RD(0x430), SCU_RD(0x434), SCU_RD(0x438), SCU_RD(0x43c)); in scu_set_pinmux()
623 debug("SCU470: %08x %08x %08x %08x\n", SCU_RD(0x470), SCU_RD(0x474), SCU_RD(0x478), SCU_RD(0x47c)); in scu_set_pinmux()
624 debug("SCU4b0: %08x %08x %08x %08x\n", SCU_RD(0x4b0), SCU_RD(0x4b4), SCU_RD(0x4b8), SCU_RD(0x4bc)); in scu_set_pinmux()
706 printf("\nbefore: SCU510=%08x\n", SCU_RD(0x510)); in setup_running()
714 while (SCU_RD(0x510) & strap2.w); in setup_running()
715 printf("\nafter: SCU510=%08x\n", SCU_RD(0x510)); in setup_running()
905 strap1.w = SCU_RD(0x500); in setup_interface()
906 strap2.w = SCU_RD(0x510); in setup_interface()
918 strap1.w = SCU_RD(0x70); in setup_interface()
946 id = (SCU_RD(reg_addr) & GENMASK(31, 24)) >> 24; in setup_chip_compatibility()
947 version = (SCU_RD(reg_addr) & GENMASK(23, 16)) >> 16; in setup_chip_compatibility()
1400 while ((SCU_RD(reg_offset) & BIT(6)) == 0); in ring_clk()
1402 freq = (SCU_RD(reg_offset) & GENMASK(29, 16)) >> 16; in ring_clk()