Home
last modified time | relevance | path

Searched refs:ccu (Results 1 – 25 of 46) sorted by relevance

12

/Linux-v4.19/drivers/clk/bcm/
Dclk-kona.c129 static inline u32 __ccu_read(struct ccu_data *ccu, u32 reg_offset) in __ccu_read() argument
131 return readl(ccu->base + reg_offset); in __ccu_read()
136 __ccu_write(struct ccu_data *ccu, u32 reg_offset, u32 reg_val) in __ccu_write() argument
138 writel(reg_val, ccu->base + reg_offset); in __ccu_write()
141 static inline unsigned long ccu_lock(struct ccu_data *ccu) in ccu_lock() argument
145 spin_lock_irqsave(&ccu->lock, flags); in ccu_lock()
149 static inline void ccu_unlock(struct ccu_data *ccu, unsigned long flags) in ccu_unlock() argument
151 spin_unlock_irqrestore(&ccu->lock, flags); in ccu_unlock()
158 static inline void __ccu_write_enable(struct ccu_data *ccu) in __ccu_write_enable() argument
160 if (ccu->write_enabled) { in __ccu_write_enable()
[all …]
Dclk-kona-setup.c26 static bool ccu_data_offsets_valid(struct ccu_data *ccu) in ccu_data_offsets_valid() argument
28 struct ccu_policy *ccu_policy = &ccu->policy; in ccu_data_offsets_valid()
31 limit = ccu->range - sizeof(u32); in ccu_data_offsets_valid()
37 ccu->name, ccu_policy->enable.offset, limit); in ccu_data_offsets_valid()
43 ccu->name, ccu_policy->control.offset, limit); in ccu_data_offsets_valid()
93 range = bcm_clk->ccu->range; in peri_clk_data_offsets_valid()
747 static void ccu_clks_teardown(struct ccu_data *ccu) in ccu_clks_teardown() argument
751 for (i = 0; i < ccu->clk_num; i++) in ccu_clks_teardown()
752 kona_clk_teardown(&ccu->kona_clks[i].hw); in ccu_clks_teardown()
755 static void kona_ccu_teardown(struct ccu_data *ccu) in kona_ccu_teardown() argument
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/clock/
Dsunxi-ccu.txt6 - "allwinner,sun4i-a10-ccu"
7 - "allwinner,sun5i-a10s-ccu"
8 - "allwinner,sun5i-a13-ccu"
9 - "allwinner,sun6i-a31-ccu"
10 - "allwinner,sun7i-a20-ccu"
11 - "allwinner,sun8i-a23-ccu"
12 - "allwinner,sun8i-a33-ccu"
13 - "allwinner,sun8i-a83t-ccu"
14 - "allwinner,sun8i-a83t-r-ccu"
15 - "allwinner,sun8i-h3-ccu"
[all …]
Dbrcm,kona-ccu.txt13 Shall have a value of the form "brcm,<model>-<which>-ccu",
16 "brcm,bcm11351-root-ccu"
32 compatible = "brcm,bcm11351-slave-ccu";
59 "brcm,bcm11351-root-ccu"
60 "brcm,bcm11351-aon-ccu"
61 "brcm,bcm11351-hub-ccu"
62 "brcm,bcm11351-master-ccu"
63 "brcm,bcm11351-slave-ccu"
105 "brcm,bcm21664-root-ccu"
106 "brcm,bcm21664-aon-ccu"
[all …]
Dsun9i-de.txt23 clocks = <&ccu CLK_DE>, <&ccu CLK_SDRAM>, <&ccu CLK_BUS_DE>;
25 resets = <&ccu RST_BUS_DE>;
/Linux-v4.19/arch/arm/boot/dts/
Dsunxi-h3-h5.dtsi44 #include <dt-bindings/clock/sun8i-h3-ccu.h>
45 #include <dt-bindings/clock/sun8i-r-ccu.h>
48 #include <dt-bindings/reset/sun8i-h3-ccu.h>
49 #include <dt-bindings/reset/sun8i-r-ccu.h>
66 <&ccu CLK_TCON0>, <&ccu CLK_HDMI>;
75 <&ccu CLK_TVE>;
123 clocks = <&ccu CLK_DE>,
124 <&ccu CLK_BUS_DE>;
127 resets = <&ccu RST_BUS_DE>;
165 clocks = <&ccu CLK_BUS_DMA>;
[all …]
Dsun6i-a31.dtsi50 #include <dt-bindings/clock/sun6i-a31-ccu.h>
51 #include <dt-bindings/reset/sun6i-a31-ccu.h>
69 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
70 <&ccu CLK_AHB1_HDMI>, <&ccu CLK_DRAM_BE0>,
71 <&ccu CLK_IEP_DRC0>, <&ccu CLK_BE0>,
72 <&ccu CLK_LCD0_CH1>, <&ccu CLK_HDMI>;
80 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
81 <&ccu CLK_DRAM_BE0>, <&ccu CLK_IEP_DRC0>,
82 <&ccu CLK_BE0>, <&ccu CLK_LCD0_CH0>;
106 clocks = <&ccu CLK_CPU>;
[all …]
Dsun4i-a10.dtsi46 #include <dt-bindings/clock/sun4i-a10-ccu.h>
47 #include <dt-bindings/reset/sun4i-a10-ccu.h>
67 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
68 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
69 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>;
77 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
78 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_AHB_DE_FE0>,
79 <&ccu CLK_DE_BE0>, <&ccu CLK_DE_FE0>,
80 <&ccu CLK_TCON0_CH1>, <&ccu CLK_HDMI>,
81 <&ccu CLK_DRAM_DE_FE0>, <&ccu CLK_DRAM_DE_BE0>;
[all …]
Dsun8i-r40.dtsi46 #include <dt-bindings/clock/sun8i-r40-ccu.h>
47 #include <dt-bindings/reset/sun8i-r40-ccu.h>
120 clocks = <&ccu CLK_DE>,
121 <&ccu CLK_BUS_DE>;
124 resets = <&ccu RST_BUS_DE>;
185 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
187 resets = <&ccu RST_BUS_MMC0>;
201 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
203 resets = <&ccu RST_BUS_MMC1>;
215 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
[all …]
Dsun7i-a20.dtsi50 #include <dt-bindings/clock/sun7i-a20-ccu.h>
51 #include <dt-bindings/reset/sun4i-a10-ccu.h>
69 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
70 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
71 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>,
72 <&ccu CLK_HDMI>;
80 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_DE_BE0>,
81 <&ccu CLK_DE_BE0>, <&ccu CLK_TCON0_CH0>,
82 <&ccu CLK_DRAM_DE_BE0>;
90 clocks = <&ccu CLK_AHB_TVE0>, <&ccu CLK_AHB_LCD0>,
[all …]
Dsun5i.dtsi47 #include <dt-bindings/clock/sun5i-ccu.h>
49 #include <dt-bindings/reset/sun5i-ccu.h>
62 clocks = <&ccu CLK_CPU>;
75 clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
76 <&ccu CLK_TCON_CH0>, <&ccu CLK_DRAM_DE_BE>;
84 clocks = <&ccu CLK_AHB_TVE>, <&ccu CLK_AHB_LCD>,
85 <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
86 <&ccu CLK_TCON_CH1>, <&ccu CLK_DRAM_DE_BE>;
173 clocks = <&ccu CLK_AHB_DMA>;
181 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
[all …]
Dsun8i-v3s.dtsi44 #include <dt-bindings/clock/sun8i-v3s-ccu.h>
45 #include <dt-bindings/reset/sun8i-v3s-ccu.h>
60 clocks = <&ccu CLK_CPU>;
107 clocks = <&ccu CLK_DE>,
108 <&ccu CLK_BUS_DE>;
111 resets = <&ccu RST_BUS_DE>;
148 clocks = <&ccu CLK_BUS_TCON0>,
149 <&ccu CLK_TCON0>;
153 resets = <&ccu RST_BUS_TCON0>;
184 clocks = <&ccu CLK_BUS_MMC0>,
[all …]
Dsun8i-a83t.dtsi47 #include <dt-bindings/clock/sun8i-a83t-ccu.h>
49 #include <dt-bindings/clock/sun8i-r-ccu.h>
50 #include <dt-bindings/reset/sun8i-a83t-ccu.h>
52 #include <dt-bindings/reset/sun8i-r-ccu.h>
64 clocks = <&ccu CLK_C0CPUX>;
102 clocks = <&ccu CLK_C1CPUX>;
310 clocks = <&ccu CLK_PLL_DE>,
311 <&ccu CLK_BUS_DE>;
314 resets = <&ccu RST_BUS_DE>;
416 clocks = <&ccu CLK_BUS_DMA>;
[all …]
Dsun8i-a23-a33.dtsi49 #include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
50 #include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
64 clocks = <&ccu CLK_BUS_LCD>, <&ccu CLK_BUS_DE_BE>,
65 <&ccu CLK_LCD_CH0>, <&ccu CLK_DE_BE>,
66 <&ccu CLK_DRAM_DE_BE>, <&ccu CLK_DRC>;
153 clocks = <&ccu CLK_BUS_DMA>;
154 resets = <&ccu RST_BUS_DMA>;
161 clocks = <&ccu CLK_BUS_MMC0>,
162 <&ccu CLK_MMC0>,
163 <&ccu CLK_MMC0_OUTPUT>,
[all …]
Dsun8i-a33.dtsi128 clocks = <&ccu CLK_CPUX>;
135 clocks = <&ccu CLK_CPUX>;
145 clocks = <&ccu CLK_CPUX>;
155 clocks = <&ccu CLK_CPUX>;
220 clocks = <&ccu CLK_BUS_LCD>,
221 <&ccu CLK_LCD_CH0>;
225 resets = <&ccu RST_BUS_LCD>;
261 clocks = <&ccu CLK_BUS_SS>, <&ccu CLK_SS>;
263 resets = <&ccu RST_BUS_SS>;
272 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
[all …]
Dsun8i-h3.dtsi77 clocks = <&ccu CLK_CPUX>;
87 clocks = <&ccu CLK_CPUX>;
97 clocks = <&ccu CLK_CPUX>;
107 clocks = <&ccu CLK_CPUX>;
162 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
164 resets = <&ccu RST_BUS_GPU>;
166 assigned-clocks = <&ccu CLK_GPU>;
172 &ccu {
173 compatible = "allwinner,sun8i-h3-ccu";
182 clocks = <&ccu CLK_BUS_MMC0>,
[all …]
Dsun9i-a80.dtsi47 #include <dt-bindings/clock/sun9i-a80-ccu.h>
50 #include <dt-bindings/reset/sun9i-a80-ccu.h>
191 <&ccu CLK_PLL_PERIPH0>,
192 <&ccu CLK_PLL_AUDIO>;
393 clocks = <&ccu CLK_BUS_USB>, <&osc24M>;
407 clocks = <&mmc_config_clk 0>, <&ccu CLK_MMC0>,
408 <&ccu CLK_MMC0_OUTPUT>,
409 <&ccu CLK_MMC0_SAMPLE>;
422 clocks = <&mmc_config_clk 1>, <&ccu CLK_MMC1>,
423 <&ccu CLK_MMC1_OUTPUT>,
[all …]
Dsun5i-a10s.dtsi67 clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_AHB_HDMI>,
68 <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DRAM_DE_BE>,
69 <&ccu CLK_DE_BE>, <&ccu CLK_HDMI>;
84 clocks = <&ccu CLK_AHB_HDMI>, <&ccu CLK_HDMI>,
85 <&ccu CLK_PLL_VIDEO0_2X>,
86 <&ccu CLK_PLL_VIDEO1_2X>;
117 clocks = <&ccu CLK_HOSC>;
124 &ccu {
125 compatible = "allwinner,sun5i-a10s-ccu";
Dsun5i-gr8.dtsi47 #include <dt-bindings/clock/sun5i-ccu.h>
49 #include <dt-bindings/reset/sun5i-ccu.h>
61 clocks = <&ccu CLK_HOSC>;
71 clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
84 clocks = <&ccu CLK_APB0_I2S>, <&ccu CLK_I2S>;
94 &ccu {
95 compatible = "nextthing,gr8-ccu";
/Linux-v4.19/drivers/clk/sunxi-ng/
DMakefile24 obj-$(CONFIG_SUN50I_A64_CCU) += ccu-sun50i-a64.o
25 obj-$(CONFIG_SUN50I_H6_CCU) += ccu-sun50i-h6.o
26 obj-$(CONFIG_SUN50I_H6_R_CCU) += ccu-sun50i-h6-r.o
27 obj-$(CONFIG_SUN4I_A10_CCU) += ccu-sun4i-a10.o
28 obj-$(CONFIG_SUN5I_CCU) += ccu-sun5i.o
29 obj-$(CONFIG_SUN6I_A31_CCU) += ccu-sun6i-a31.o
30 obj-$(CONFIG_SUN8I_A23_CCU) += ccu-sun8i-a23.o
31 obj-$(CONFIG_SUN8I_A33_CCU) += ccu-sun8i-a33.o
32 obj-$(CONFIG_SUN8I_A83T_CCU) += ccu-sun8i-a83t.o
33 obj-$(CONFIG_SUN8I_H3_CCU) += ccu-sun8i-h3.o
[all …]
Dccu_reset.c20 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_assert() local
21 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_assert()
25 spin_lock_irqsave(ccu->lock, flags); in ccu_reset_assert()
27 reg = readl(ccu->base + map->reg); in ccu_reset_assert()
28 writel(reg & ~map->bit, ccu->base + map->reg); in ccu_reset_assert()
30 spin_unlock_irqrestore(ccu->lock, flags); in ccu_reset_assert()
38 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_deassert() local
39 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_deassert()
43 spin_lock_irqsave(ccu->lock, flags); in ccu_reset_deassert()
45 reg = readl(ccu->base + map->reg); in ccu_reset_deassert()
[all …]
/Linux-v4.19/arch/arm64/boot/dts/allwinner/
Dsun50i-a64.dtsi45 #include <dt-bindings/clock/sun50i-a64-ccu.h>
47 #include <dt-bindings/clock/sun8i-r-ccu.h>
49 #include <dt-bindings/reset/sun50i-a64-ccu.h>
51 #include <dt-bindings/reset/sun8i-r-ccu.h>
67 clocks = <&ccu CLK_TCON0>,
77 <&ccu CLK_TCON1>, <&ccu CLK_HDMI>;
189 clocks = <&ccu CLK_DE>,
190 <&ccu CLK_BUS_DE>;
193 resets = <&ccu RST_BUS_DE>;
224 clocks = <&ccu CLK_BUS_DMA>;
[all …]
Dsun50i-h6.dtsi7 #include <dt-bindings/clock/sun50i-h6-ccu.h>
8 #include <dt-bindings/clock/sun50i-h6-r-ccu.h>
9 #include <dt-bindings/reset/sun50i-h6-ccu.h>
10 #include <dt-bindings/reset/sun50i-h6-r-ccu.h>
95 ccu: clock@3001000 { label
96 compatible = "allwinner,sun50i-h6-ccu";
122 clocks = <&ccu CLK_APB1>, <&osc24M>, <&osc32k>;
156 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
158 resets = <&ccu RST_BUS_MMC0>;
170 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
[all …]
Dsun50i-h5.dtsi97 &ccu {
98 compatible = "allwinner,sun50i-h5-ccu";
108 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
115 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
122 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
/Linux-v4.19/Documentation/devicetree/bindings/display/sunxi/
Dsun6i-dsi.txt52 clocks = <&ccu CLK_BUS_MIPI_DSI>,
53 <&ccu CLK_DSI_SCLK>;
55 resets = <&ccu RST_BUS_MIPI_DSI>;
88 clocks = <&ccu CLK_BUS_MIPI_DSI>,
89 <&ccu CLK_DSI_DPHY>;
91 resets = <&ccu RST_BUS_MIPI_DSI>;

12