Home
last modified time | relevance | path

Searched refs:scu_base (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/arch/arm/kernel/
H A Dsmp_scu.c29 unsigned int __init scu_get_core_count(void __iomem *scu_base) in scu_get_core_count() argument
31 unsigned int ncores = readl_relaxed(scu_base + SCU_CONFIG); in scu_get_core_count()
38 void scu_enable(void __iomem *scu_base) in scu_enable() argument
45 scu_ctrl = readl_relaxed(scu_base + 0x30); in scu_enable()
47 writel_relaxed(scu_ctrl | 0x1, scu_base + 0x30); in scu_enable()
51 scu_ctrl = readl_relaxed(scu_base + SCU_CTRL); in scu_enable()
63 writel_relaxed(scu_ctrl, scu_base + SCU_CTRL); in scu_enable()
73 static int scu_set_power_mode_internal(void __iomem *scu_base, in scu_set_power_mode_internal() argument
83 val = readb_relaxed(scu_base + SCU_CPU_STATUS + cpu); in scu_set_power_mode_internal()
86 writeb_relaxed(val, scu_base + SCU_CPU_STATUS + cpu); in scu_set_power_mode_internal()
[all …]
/openbmc/linux/arch/arm/include/asm/
H A Dsmp_scu.h32 int scu_get_cpu_power_mode(void __iomem *scu_base, unsigned int logical_cpu);
34 static inline unsigned int scu_get_core_count(void __iomem *scu_base) in scu_get_core_count() argument
38 static inline int scu_power_mode(void __iomem *scu_base, unsigned int mode) in scu_power_mode() argument
42 static inline int scu_cpu_power_enable(void __iomem *scu_base, in scu_cpu_power_enable() argument
47 static inline int scu_get_cpu_power_mode(void __iomem *scu_base, in scu_get_cpu_power_mode() argument
55 void scu_enable(void __iomem *scu_base);
57 static inline void scu_enable(void __iomem *scu_base) {} in scu_enable() argument
/openbmc/u-boot/arch/arm/mach-uniphier/arm32/
H A Dpsci.c102 unsigned long scu_base; in psci_board_init() local
105 asm("mrc p15, 4, %0, c15, c0, 0" : "=r" (scu_base)); in psci_board_init()
107 scu_ctrl = readl(scu_base + 0x30); in psci_board_init()
109 writel(scu_ctrl | 0x1, scu_base + 0x30); in psci_board_init()
111 scu_ctrl = readl(scu_base + SCU_CTRL); in psci_board_init()
113 writel(scu_ctrl, scu_base + SCU_CTRL); in psci_board_init()
115 tmp = readl(scu_base + SCU_SNSAC); in psci_board_init()
117 writel(tmp, scu_base + SCU_SNSAC); in psci_board_init()
/openbmc/linux/arch/arm/mach-bcm/
H A Dbcm63xx_smp.c38 void __iomem *scu_base; in scu_a9_enable() local
53 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
54 if (!scu_base) { in scu_a9_enable()
60 scu_enable(scu_base); in scu_a9_enable()
62 ncores = scu_base ? scu_get_core_count(scu_base) : 1; in scu_a9_enable()
94 iounmap(scu_base); /* That's the last we'll need of this */ in scu_a9_enable()
H A Dplatsmp.c50 void __iomem *scu_base; in scu_a9_enable() local
64 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
65 if (!scu_base) { in scu_a9_enable()
71 scu_enable(scu_base); in scu_a9_enable()
73 iounmap(scu_base); /* That's the last we'll need of this */ in scu_a9_enable()
/openbmc/linux/arch/arm/mach-ux500/
H A Dplatsmp.c32 static void __iomem *scu_base; in ux500_smp_prepare_cpus() local
53 scu_base = of_iomap(np, 0); in ux500_smp_prepare_cpus()
55 if (!scu_base) { in ux500_smp_prepare_cpus()
60 scu_enable(scu_base); in ux500_smp_prepare_cpus()
61 ncores = scu_get_core_count(scu_base); in ux500_smp_prepare_cpus()
64 iounmap(scu_base); in ux500_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-versatile/
H A Dplatsmp-realview.c38 void __iomem *scu_base; in realview_smp_prepare_cpus() local
48 scu_base = of_iomap(np, 0); in realview_smp_prepare_cpus()
50 if (!scu_base) { in realview_smp_prepare_cpus()
55 scu_enable(scu_base); in realview_smp_prepare_cpus()
56 ncores = scu_get_core_count(scu_base); in realview_smp_prepare_cpus()
60 iounmap(scu_base); in realview_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-npcm/
H A Dplatsmp.c55 void __iomem *scu_base; in npcm7xx_smp_prepare_cpus() local
62 scu_base = of_iomap(scu_np, 0); in npcm7xx_smp_prepare_cpus()
63 if (!scu_base) { in npcm7xx_smp_prepare_cpus()
68 scu_enable(scu_base); in npcm7xx_smp_prepare_cpus()
70 iounmap(scu_base); in npcm7xx_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-berlin/
H A Dplatsmp.c61 void __iomem *scu_base; in berlin_smp_prepare_cpus() local
65 scu_base = of_iomap(np, 0); in berlin_smp_prepare_cpus()
67 if (!scu_base) in berlin_smp_prepare_cpus()
80 scu_enable(scu_base); in berlin_smp_prepare_cpus()
96 iounmap(scu_base); in berlin_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-omap2/
H A Dpm33xx-core.c37 static void __iomem *scu_base; variable
49 scu_base = ioremap(scu_a9_get_base(), SZ_256); in am43xx_map_scu()
51 if (!scu_base) in am43xx_map_scu()
194 scu_power_mode(scu_base, SCU_PM_POWEROFF); in am43xx_suspend()
196 scu_power_mode(scu_base, SCU_PM_NORMAL); in am43xx_suspend()
233 if (!scu_base) in am43xx_cpu_suspend()
236 scu_power_mode(scu_base, SCU_PM_DORMANT); in am43xx_cpu_suspend()
238 scu_power_mode(scu_base, SCU_PM_NORMAL); in am43xx_cpu_suspend()
H A Domap-smp.c47 void __iomem *scu_base; member
71 return cfg.scu_base; in omap4_get_scu_base()
270 cfg.scu_base = OMAP2_L4_IO_ADDRESS(scu_a9_get_base()); in omap4_smp_init_cpus()
271 BUG_ON(!cfg.scu_base); in omap4_smp_init_cpus()
272 ncores = scu_get_core_count(cfg.scu_base); in omap4_smp_init_cpus()
390 if (cfg.scu_base) in omap4_smp_prepare_cpus()
391 scu_enable(cfg.scu_base); in omap4_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-meson/
H A Dplatsmp.c35 static void __iomem *scu_base; variable
94 scu_base = of_iomap(node, 0); in meson_smp_prepare_cpus()
96 if (!scu_base) { in meson_smp_prepare_cpus()
101 scu_enable(scu_base); in meson_smp_prepare_cpus()
131 scu_cpu_power_enable(scu_base, cpu); in meson_smp_begin_secondary_boot()
301 scu_power_mode(scu_base, SCU_PM_POWEROFF); in meson8_smp_cpu_die()
317 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8_smp_cpu_kill()
359 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8b_smp_cpu_kill()
/openbmc/linux/arch/arm/mach-hisi/
H A Dplatsmp.c42 void __iomem *scu_base = NULL; in hisi_enable_scu_a9() local
46 scu_base = ioremap(base, SZ_4K); in hisi_enable_scu_a9()
47 if (!scu_base) { in hisi_enable_scu_a9()
51 scu_enable(scu_base); in hisi_enable_scu_a9()
52 iounmap(scu_base); in hisi_enable_scu_a9()
/openbmc/linux/arch/arm/mach-imx/
H A Dplatsmp.c21 static void __iomem *scu_base; variable
40 scu_base = IMX_IO_ADDRESS(base); in imx_scu_map_io()
58 ncores = scu_get_core_count(scu_base); in imx_smp_init_cpus()
66 scu_enable(scu_base); in imx_smp_prepare()
/openbmc/linux/arch/arm/mach-sti/
H A Dplatsmp.c52 void __iomem *scu_base; in sti_smp_prepare_cpus() local
59 scu_base = of_iomap(np, 0); in sti_smp_prepare_cpus()
60 scu_enable(scu_base); in sti_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-spear/
H A Dplatsmp.c39 static void __iomem *scu_base = IOMEM(VA_SCU_BASE); variable
100 unsigned int i, ncores = scu_get_core_count(scu_base); in spear13xx_smp_init_cpus()
115 scu_enable(scu_base); in spear13xx_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-mvebu/
H A Dboard-v7.c33 static void __iomem *scu_base; variable
44 scu_base = of_iomap(np, 0); in mvebu_scu_enable()
45 scu_enable(scu_base); in mvebu_scu_enable()
52 return scu_base; in mvebu_get_scu_base()
/openbmc/linux/drivers/clk/
H A Dclk-aspeed.c44 static void __iomem *scu_base; variable
445 scu_base + ASPEED_CLK_SELECTION, 15, 0, in aspeed_clk_probe()
459 scu_base + ASPEED_CLK_SELECTION, 16, 3, 0, in aspeed_clk_probe()
475 scu_base + ASPEED_MAC_CLK_DLY, 29, 0, in aspeed_clk_probe()
483 scu_base + ASPEED_MAC_CLK_DLY, 30, 0, in aspeed_clk_probe()
492 scu_base + ASPEED_CLK_SELECTION, 20, 3, 0, in aspeed_clk_probe()
501 scu_base + ASPEED_CLK_SELECTION_2, 0, 2, 0, in aspeed_clk_probe()
524 scu_base + ASPEED_CLK_SELECTION, 28, in aspeed_clk_probe()
645 scu_base + ASPEED_CLK_SELECTION, 23, 3, 0, in aspeed_ast2400_cc()
695 scu_base = of_iomap(np, 0); in aspeed_cc_init()
[all …]
/openbmc/linux/arch/arm/mach-exynos/
H A Dplatsmp.c171 static void __iomem *scu_base; in exynos_scu_enable() local
173 if (!scu_base) { in exynos_scu_enable()
176 scu_base = of_iomap(np, 0); in exynos_scu_enable()
179 scu_base = ioremap(scu_a9_get_base(), SZ_4K); in exynos_scu_enable()
182 scu_enable(scu_base); in exynos_scu_enable()
/openbmc/u-boot/arch/arm/mach-zynq/
H A Dcpu.c56 writel(0, &scu_base->filter_start); in arch_cpu_init()
/openbmc/u-boot/arch/arm/mach-zynq/include/mach/
H A Dhardware.h121 #define scu_base ((struct scu_regs *)ZYNQ_SCU_BASEADDR) macro
/openbmc/u-boot/drivers/ram/aspeed/
H A Dsdram_ast2600.c504 u32 scu_base = (u32)info->scu; in ast2600_sdrammc_fpga_set_pll() local
506 writel(0x00000303, scu_base + AST_SCU_FPGA_PLL); in ast2600_sdrammc_fpga_set_pll()
509 data = readl(scu_base + AST_SCU_FPGA_STATUS); in ast2600_sdrammc_fpga_set_pll()
512 writel(0x00000103, scu_base + AST_SCU_FPGA_PLL); in ast2600_sdrammc_fpga_set_pll()
/openbmc/linux/drivers/gpu/drm/gma500/
H A Doaktrail_hdmi.c212 static void scu_busy_loop(void __iomem *scu_base) in scu_busy_loop() argument
217 status = readl(scu_base + 0x04); in scu_busy_loop()
220 status = readl(scu_base + 0x04); in scu_busy_loop()
/openbmc/linux/drivers/scsi/isci/
H A Dhost.c1292 static void __iomem *scu_base(struct isci_host *isci_host) in scu_base() function
1621 void __iomem *scu_base, in sci_controller_construct() argument
1628 ihost->scu_registers = scu_base; in sci_controller_construct()
2345 status = sci_controller_construct(ihost, scu_base(ihost), smu_base(ihost)); in isci_host_init()