Home
last modified time | relevance | path

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

/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 …]
/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
/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()
/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()
/linux/arch/arm/mach-versatile/
H A Dplatsmp-realview.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/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()
/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()
/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()
/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()
/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()
/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()
450 0, scu_base + ASPEED_CLK_SELECTION, 12, 3, 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()
517 scu_base + ASPEED_CLK_SELECTION, 2, 0x3, 0, in aspeed_clk_probe()
524 scu_base + ASPEED_CLK_SELECTION, 28, in aspeed_clk_probe()
[all …]
/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()
/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()
/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()
/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()
/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()
/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()
/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()