Home
last modified time | relevance | path

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

/Linux-v4.19/arch/arm/kernel/
Dsmp_scu.c32 unsigned int __init scu_get_core_count(void __iomem *scu_base) in scu_get_core_count() argument
34 unsigned int ncores = readl_relaxed(scu_base + SCU_CONFIG); in scu_get_core_count()
41 void scu_enable(void __iomem *scu_base) in scu_enable() argument
48 scu_ctrl = readl_relaxed(scu_base + 0x30); in scu_enable()
50 writel_relaxed(scu_ctrl | 0x1, scu_base + 0x30); in scu_enable()
54 scu_ctrl = readl_relaxed(scu_base + SCU_CTRL); in scu_enable()
66 writel_relaxed(scu_ctrl, scu_base + SCU_CTRL); in scu_enable()
76 static int scu_set_power_mode_internal(void __iomem *scu_base, in scu_set_power_mode_internal() argument
86 val = readb_relaxed(scu_base + SCU_CPU_STATUS + cpu); in scu_set_power_mode_internal()
89 writeb_relaxed(val, scu_base + SCU_CPU_STATUS + cpu); in scu_set_power_mode_internal()
[all …]
/Linux-v4.19/arch/arm/include/asm/
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
/Linux-v4.19/arch/arm/mach-bcm/
Dbcm63xx_smp.c39 void __iomem *scu_base; in scu_a9_enable() local
54 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
55 if (!scu_base) { in scu_a9_enable()
61 scu_enable(scu_base); in scu_a9_enable()
63 ncores = scu_base ? scu_get_core_count(scu_base) : 1; in scu_a9_enable()
95 iounmap(scu_base); /* That's the last we'll need of this */ in scu_a9_enable()
Dplatsmp.c56 void __iomem *scu_base; in scu_a9_enable() local
70 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
71 if (!scu_base) { in scu_a9_enable()
77 scu_enable(scu_base); in scu_a9_enable()
79 iounmap(scu_base); /* That's the last we'll need of this */ in scu_a9_enable()
/Linux-v4.19/arch/arm/mach-realview/
Dplatsmp-dt.c42 void __iomem *scu_base; in realview_smp_prepare_cpus() local
52 scu_base = of_iomap(np, 0); in realview_smp_prepare_cpus()
54 if (!scu_base) { in realview_smp_prepare_cpus()
59 scu_enable(scu_base); in realview_smp_prepare_cpus()
60 ncores = scu_get_core_count(scu_base); in realview_smp_prepare_cpus()
64 iounmap(scu_base); in realview_smp_prepare_cpus()
/Linux-v4.19/arch/arm/mach-ux500/
Dplatsmp.c37 static void __iomem *scu_base; in ux500_smp_prepare_cpus() local
58 scu_base = of_iomap(np, 0); in ux500_smp_prepare_cpus()
60 if (!scu_base) { in ux500_smp_prepare_cpus()
65 scu_enable(scu_base); in ux500_smp_prepare_cpus()
66 ncores = scu_get_core_count(scu_base); in ux500_smp_prepare_cpus()
69 iounmap(scu_base); in ux500_smp_prepare_cpus()
/Linux-v4.19/arch/arm/mach-npcm/
Dplatsmp.c58 void __iomem *scu_base; in npcm7xx_smp_prepare_cpus() local
65 scu_base = of_iomap(scu_np, 0); in npcm7xx_smp_prepare_cpus()
66 if (!scu_base) { in npcm7xx_smp_prepare_cpus()
71 scu_enable(scu_base); in npcm7xx_smp_prepare_cpus()
73 iounmap(scu_base); in npcm7xx_smp_prepare_cpus()
/Linux-v4.19/arch/arm/mach-oxnas/
Dplatsmp.c66 void __iomem *scu_base; in ox820_smp_prepare_cpus() local
69 scu_base = of_iomap(np, 0); in ox820_smp_prepare_cpus()
71 if (!scu_base) in ox820_smp_prepare_cpus()
87 scu_enable(scu_base); in ox820_smp_prepare_cpus()
91 iounmap(scu_base); in ox820_smp_prepare_cpus()
/Linux-v4.19/arch/arm/mach-zx/
Dplatsmp.c42 static void __iomem *scu_base; variable
52 scu_base = ioremap(base, SZ_256); in zx_smp_prepare_cpus()
53 if (!scu_base) { in zx_smp_prepare_cpus()
58 scu_enable(scu_base); in zx_smp_prepare_cpus()
166 scu_power_mode(scu_base, SCU_PM_POWEROFF); in zx_cpu_die()
176 scu_power_mode(scu_base, SCU_PM_NORMAL); in zx_secondary_init()
/Linux-v4.19/arch/arm/mach-berlin/
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()
/Linux-v4.19/arch/arm/mach-omap2/
Domap-smp.c50 void __iomem *scu_base; member
76 return cfg.scu_base; in omap4_get_scu_base()
293 cfg.scu_base = OMAP2_L4_IO_ADDRESS(scu_a9_get_base()); in omap4_smp_init_cpus()
294 BUG_ON(!cfg.scu_base); in omap4_smp_init_cpus()
295 ncores = scu_get_core_count(cfg.scu_base); in omap4_smp_init_cpus()
413 if (cfg.scu_base) in omap4_smp_prepare_cpus()
414 scu_enable(cfg.scu_base); in omap4_smp_prepare_cpus()
Dpm33xx-core.c28 static void __iomem *scu_base; variable
33 scu_base = ioremap(scu_a9_get_base(), SZ_256); in am43xx_map_scu()
35 if (!scu_base) in am43xx_map_scu()
139 scu_power_mode(scu_base, SCU_PM_POWEROFF); in am43xx_suspend()
141 scu_power_mode(scu_base, SCU_PM_NORMAL); in am43xx_suspend()
/Linux-v4.19/arch/arm/mach-imx/
Dplatsmp.c27 static void __iomem *scu_base; variable
46 scu_base = IMX_IO_ADDRESS(base); in imx_scu_map_io()
64 ncores = scu_get_core_count(scu_base); in imx_smp_init_cpus()
72 scu_enable(scu_base); in imx_smp_prepare()
/Linux-v4.19/arch/arm/mach-meson/
Dplatsmp.c45 static void __iomem *scu_base; variable
103 scu_base = of_iomap(node, 0); in meson_smp_prepare_cpus()
104 if (!scu_base) { in meson_smp_prepare_cpus()
109 scu_enable(scu_base); in meson_smp_prepare_cpus()
139 scu_cpu_power_enable(scu_base, cpu); in meson_smp_begin_secondary_boot()
309 scu_power_mode(scu_base, SCU_PM_POWEROFF); in meson8_smp_cpu_die()
325 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8_smp_cpu_kill()
367 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8b_smp_cpu_kill()
/Linux-v4.19/arch/arm/mach-hisi/
Dplatsmp.c45 void __iomem *scu_base = NULL; in hisi_enable_scu_a9() local
49 scu_base = ioremap(base, SZ_4K); in hisi_enable_scu_a9()
50 if (!scu_base) { in hisi_enable_scu_a9()
54 scu_enable(scu_base); in hisi_enable_scu_a9()
55 iounmap(scu_base); in hisi_enable_scu_a9()
/Linux-v4.19/arch/arm/mach-spear/
Dplatsmp.c37 static void __iomem *scu_base = IOMEM(VA_SCU_BASE);
98 unsigned int i, ncores = scu_get_core_count(scu_base); in spear13xx_smp_init_cpus()
113 scu_enable(scu_base); in spear13xx_smp_prepare_cpus()
/Linux-v4.19/arch/arm/mach-mvebu/
Dboard-v7.c36 static void __iomem *scu_base; variable
47 scu_base = of_iomap(np, 0); in mvebu_scu_enable()
48 scu_enable(scu_base); in mvebu_scu_enable()
55 return scu_base; in mvebu_get_scu_base()
/Linux-v4.19/arch/arm/mach-sti/
Dplatsmp.c102 void __iomem *scu_base; in sti_smp_prepare_cpus() local
111 scu_base = of_iomap(np, 0); in sti_smp_prepare_cpus()
112 scu_enable(scu_base); in sti_smp_prepare_cpus()
/Linux-v4.19/arch/arm/mach-exynos/
Dplatsmp.c172 static void __iomem *scu_base; in exynos_scu_enable() local
174 if (!scu_base) { in exynos_scu_enable()
177 scu_base = of_iomap(np, 0); in exynos_scu_enable()
180 scu_base = ioremap(scu_a9_get_base(), SZ_4K); in exynos_scu_enable()
183 scu_enable(scu_base); in exynos_scu_enable()
/Linux-v4.19/drivers/clk/
Dclk-aspeed.c43 static void __iomem *scu_base; variable
484 scu_base + ASPEED_CLK_SELECTION, 12, 3, 0, in aspeed_clk_probe()
493 scu_base + ASPEED_CLK_SELECTION, 16, 3, 0, in aspeed_clk_probe()
502 scu_base + ASPEED_CLK_SELECTION, 20, 3, 0, in aspeed_clk_probe()
511 scu_base + ASPEED_CLK_SELECTION_2, 0, 2, 0, in aspeed_clk_probe()
640 scu_base + ASPEED_CLK_SELECTION, 23, 3, 0, in aspeed_ast2400_cc()
690 scu_base = of_iomap(np, 0); in aspeed_cc_init()
691 if (!scu_base) in aspeed_cc_init()
/Linux-v4.19/drivers/gpu/drm/gma500/
Doaktrail_hdmi.c208 static void scu_busy_loop(void __iomem *scu_base) in scu_busy_loop() argument
213 status = readl(scu_base + 0x04); in scu_busy_loop()
216 status = readl(scu_base + 0x04); in scu_busy_loop()
/Linux-v4.19/drivers/scsi/isci/
Dhost.c1294 static void __iomem *scu_base(struct isci_host *isci_host) in scu_base() function
1623 void __iomem *scu_base, in sci_controller_construct() argument
1630 ihost->scu_registers = scu_base; in sci_controller_construct()
2347 status = sci_controller_construct(ihost, scu_base(ihost), smu_base(ihost)); in isci_host_init()