| /rk3399_rockchip-uboot/drivers/clk/aspeed/ |
| H A D | clk_ast2500.c | 79 static ulong ast2500_get_clkin(struct ast2500_scu *scu) in ast2500_get_clkin() argument 81 return readl(&scu->hwstrap) & SCU_HWSTRAP_CLKIN_25MHZ in ast2500_get_clkin() 93 static ulong ast2500_get_uart_clk_rate(struct ast2500_scu *scu, int uart_index) in ast2500_get_uart_clk_rate() argument 104 if (readl(&scu->misc_ctrl2) & in ast2500_get_uart_clk_rate() 110 if (readl(&scu->misc_ctrl1) & SCU_MISC_UARTCLK_DIV13) in ast2500_get_uart_clk_rate() 119 ulong clkin = ast2500_get_clkin(priv->scu); in ast2500_clk_get_rate() 130 readl(&priv->scu->h_pll_param)); in ast2500_clk_get_rate() 134 readl(&priv->scu->m_pll_param)); in ast2500_clk_get_rate() 138 ulong apb_div = 4 + 4 * ((readl(&priv->scu->clk_sel1) in ast2500_clk_get_rate() 143 scu->h_pll_param)); in ast2500_clk_get_rate() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/dts/ |
| H A D | ast2500-u-boot.dtsi | 1 #include <dt-bindings/clock/ast2500-scu.h> 7 scu: clock-controller@1e6e2000 { label 8 compatible = "aspeed,ast2500-scu"; 28 clocks = <&scu PLL_MPLL>; 43 clocks = <&scu PCLK_UART1>; 47 clocks = <&scu PCLK_UART2>; 51 clocks = <&scu PCLK_UART3>; 55 clocks = <&scu PCLK_UART4>; 59 clocks = <&scu PCLK_UART5>; 67 clocks = <&scu PCLK_MAC1>, <&scu PLL_D2PLL>; [all …]
|
| H A D | rk3xxx.dtsi | 88 scu@1013c000 { 89 compatible = "arm,cortex-a9-scu";
|
| H A D | armada-38x.dtsi | 150 scu@c000 { 151 compatible = "arm,cortex-a9-scu";
|
| H A D | armada-375.dtsi | 187 scu@c000 { 188 compatible = "arm,cortex-a9-scu";
|
| H A D | socfpga_arria10.dtsi | 750 scu: snoop-control-unit@ffffc000 { label 751 compatible = "arm,cortex-a9-scu";
|
| H A D | stih407-family.dtsi | 75 scu@08760000 { 76 compatible = "arm,cortex-a9-scu";
|
| H A D | ast2500.dtsi | 68 compatible = "aspeed,g5-scu", "syscon", "simple-mfd";
|
| H A D | r8a7795.dtsi | 1094 reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
|
| /rk3399_rockchip-uboot/arch/x86/lib/ |
| H A D | scu.c | 34 struct scu { struct 119 struct scu *scu; in scu_ipc_simple_command() local 127 scu = dev_get_priv(dev); in scu_ipc_simple_command() 129 scu_ipc_send_command(scu->regs, sub << 12 | cmd); in scu_ipc_simple_command() 130 return scu_ipc_check_status(scu->regs); in scu_ipc_simple_command() 135 struct scu *scu; in scu_ipc_command() local 143 scu = dev_get_priv(dev); in scu_ipc_command() 145 return scu_ipc_cmd(scu->regs, cmd, sub, in, inlen, out, outlen); in scu_ipc_command() 150 struct scu *scu = dev_get_priv(dev); in scu_ipc_probe() local 152 scu->regs = syscon_get_first_range(X86_SYSCON_SCU); in scu_ipc_probe() [all …]
|
| H A D | Makefile | 37 obj-$(CONFIG_INTEL_MID) += scu.o
|
| /rk3399_rockchip-uboot/arch/arm/mach-aspeed/ast2500/ |
| H A D | clk_ast2500.c | 30 return priv->scu; in ast_get_scu() 33 void ast_scu_unlock(struct ast2500_scu *scu) in ast_scu_unlock() argument 35 writel(SCU_UNLOCK_VALUE, &scu->protection_key); in ast_scu_unlock() 36 while (!readl(&scu->protection_key)) in ast_scu_unlock() 40 void ast_scu_lock(struct ast2500_scu *scu) in ast_scu_lock() argument 42 writel(~SCU_UNLOCK_VALUE, &scu->protection_key); in ast_scu_lock() 43 while (readl(&scu->protection_key)) in ast_scu_lock()
|
| H A D | sdram_ast2500.c | 71 struct ast2500_scu *scu; member 186 u32 vga_hwconf = (readl(&info->scu->hwstrap) & SCU_HWSTRAP_VGAMEM_MASK) in ast2500_sdrammc_get_vga_mem_size() 342 priv->scu = ast_get_scu(); in ast2500_sdrammc_probe() 343 if (IS_ERR(priv->scu)) { in ast2500_sdrammc_probe() 345 return PTR_ERR(priv->scu); in ast2500_sdrammc_probe() 376 if (readl(&priv->scu->hwstrap) & SCU_HWSTRAP_DDR4) { in ast2500_sdrammc_probe()
|
| /rk3399_rockchip-uboot/drivers/pinctrl/aspeed/ |
| H A D | pinctrl_ast2500.c | 24 struct ast2500_scu *scu; member 31 priv->scu = ast_get_scu(); in ast2500_pinctrl_probe() 94 ctrl_reg = &priv->scu->pinmux_ctrl1[config->reg_num - 7]; in ast2500_pinctrl_group_set() 96 ctrl_reg = &priv->scu->pinmux_ctrl[config->reg_num - 1]; in ast2500_pinctrl_group_set() 98 ast_scu_unlock(priv->scu); in ast2500_pinctrl_group_set() 100 ast_scu_lock(priv->scu); in ast2500_pinctrl_group_set()
|
| /rk3399_rockchip-uboot/drivers/reset/ |
| H A D | ast2500-reset.c | 22 struct ast2500_scu *scu; member 57 ast_scu_unlock(priv->scu); in ast2500_reset_assert() 58 setbits_le32(&priv->scu->sysreset_ctrl1, in ast2500_reset_assert() 61 clrbits_le32(&priv->scu->sysreset_ctrl1, in ast2500_reset_assert() 63 ast_scu_lock(priv->scu); in ast2500_reset_assert() 83 priv->scu = ast_get_scu(); in ast2500_reset_probe()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/ |
| H A D | ap.c | 114 struct scu_ctlr *scu = (struct scu_ctlr *)NV_PA_ARM_PERIPHBASE; in enable_scu() local 122 if (readl(&scu->scu_ctrl) & SCU_CTRL_ENABLE) in enable_scu() 126 writel(0xFFFF, &scu->scu_inv_all); in enable_scu() 129 reg = readl(&scu->scu_ctrl); in enable_scu() 131 writel(reg, &scu->scu_ctrl); in enable_scu()
|
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | ast_i2c.c | 111 struct ast2500_scu *scu; in ast_i2c_probe() local 120 scu = ast_get_scu(); in ast_i2c_probe() 121 ast_scu_unlock(scu); in ast_i2c_probe() 122 clrbits_le32(&scu->sysreset_ctrl1, SCU_SYSRESET_I2C); in ast_i2c_probe() 123 ast_scu_lock(scu); in ast_i2c_probe()
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-aspeed/ |
| H A D | scu_ast2500.h | 143 struct ast2500_scu *scu; member 234 void ast_scu_unlock(struct ast2500_scu *scu); 241 void ast_scu_lock(struct ast2500_scu *scu);
|
| /rk3399_rockchip-uboot/arch/x86/dts/ |
| H A D | edison.dts | 85 scu: ipc@ff009000 { label 86 compatible = "intel,scu-ipc";
|
| /rk3399_rockchip-uboot/arch/arm/mach-imx/mx6/ |
| H A D | soc.c | 62 struct scu_regs *scu = (struct scu_regs *)SCU_BASE_ADDR; in get_nr_cpus() local 63 return readl(&scu->config) & 3; in get_nr_cpus() 75 struct scu_regs *scu = (struct scu_regs *)SCU_BASE_ADDR; in get_cpu_rev() local 76 cfg = readl(&scu->config) & 3; in get_cpu_rev()
|