Lines Matching +full:uniphier +full:- +full:uart
1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include "clk-uniphier.h"
12 UNIPHIER_CLK_FACTOR("sd-200m", -1, "spll", 1, 8), \
13 UNIPHIER_CLK_FACTOR("sd-133m", -1, "vpll27a", 1, 2)
16 UNIPHIER_CLK_FACTOR("sd-200m", -1, "spll", 1, 12), \
17 UNIPHIER_CLK_FACTOR("sd-133m", -1, "spll", 1, 18)
20 UNIPHIER_CLK_FACTOR("sd-200m", -1, "spll", 1, 10), \
21 UNIPHIER_CLK_FACTOR("sd-133m", -1, "spll", 1, 15)
24 UNIPHIER_CLK_FACTOR("nand-50m", -1, "spll", 1, 32), \
25 UNIPHIER_CLK_GATE("nand", (idx), "nand-50m", 0x2104, 2)
28 UNIPHIER_CLK_FACTOR("nand-50m", -1, "spll", 1, 48), \
29 UNIPHIER_CLK_GATE("nand", (idx), "nand-50m", 0x2104, 2)
32 UNIPHIER_CLK_FACTOR("nand-50m", -1, "spll", 1, 40), \
33 UNIPHIER_CLK_GATE("nand", (idx), "nand-50m", 0x210c, 0)
36 UNIPHIER_CLK_FACTOR("nand-4x", (idx), "nand", 4, 1)
57 UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 8), \
58 UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
61 UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 12), \
62 UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
65 UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 10), \
66 UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2108, 0)
69 UNIPHIER_CLK_FACTOR("evea-io100m", -1, "spll", 1, 20), \
70 UNIPHIER_CLK_GATE("evea", (idx), "evea-io100m", 0x2108, 1)
73 UNIPHIER_CLK_FACTOR("exiv-io200m", -1, "spll", 1, 10), \
74 UNIPHIER_CLK_GATE("exiv", (idx), "exiv-io200m", 0x2110, 2)
83 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 65, 1), /* 1597.44 MHz */
84 UNIPHIER_CLK_FACTOR("upll", -1, "ref", 6000, 512), /* 288 MHz */
85 UNIPHIER_CLK_FACTOR("a2pll", -1, "ref", 24, 1), /* 589.824 MHz */
86 UNIPHIER_CLK_FACTOR("vpll27a", -1, "ref", 5625, 512), /* 270 MHz */
87 UNIPHIER_CLK_FACTOR("uart", 0, "a2pll", 1, 16),
89 UNIPHIER_CLK_FACTOR("spi", -1, "spll", 1, 32),
93 UNIPHIER_CLK_FACTOR("usb2", -1, "upll", 1, 12),
99 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 64, 1), /* 1600 MHz */
100 UNIPHIER_CLK_FACTOR("upll", -1, "ref", 288, 25), /* 288 MHz */
101 UNIPHIER_CLK_FACTOR("a2pll", -1, "upll", 256, 125), /* 589.824 MHz */
102 UNIPHIER_CLK_FACTOR("vpll27a", -1, "ref", 270, 25), /* 270 MHz */
103 UNIPHIER_CLK_FACTOR("gpll", -1, "ref", 10, 1), /* 250 MHz */
104 UNIPHIER_CLK_FACTOR("uart", 0, "a2pll", 1, 8),
110 UNIPHIER_CLK_FACTOR("usb2", -1, "upll", 1, 12),
112 UNIPHIER_CLK_GATE("ether-gb", 7, "gpll", 0x2104, 5),
114 UNIPHIER_CLK_GATE("ether-phy", 10, "ref", 0x2260, 0),
118 UNIPHIER_CLK_FACTOR("usb30-hsphy0", 16, "upll", 1, 12),
119 UNIPHIER_CLK_FACTOR("usb30-ssphy0", 17, "ref", 1, 1),
120 UNIPHIER_CLK_FACTOR("usb31-ssphy0", 20, "ref", 1, 1),
128 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 64, 1), /* 1600 MHz */
129 UNIPHIER_CLK_FACTOR("upll", -1, "ref", 288, 25), /* 288 MHz */
130 UNIPHIER_CLK_FACTOR("vpll27a", -1, "ref", 270, 25), /* 270 MHz */
131 UNIPHIER_CLK_FACTOR("uart", 0, "spll", 1, 20),
133 UNIPHIER_CLK_FACTOR("spi", -1, "spll", 1, 32),
137 UNIPHIER_CLK_FACTOR("usb2", -1, "upll", 1, 12),
143 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 120, 1), /* 2400 MHz */
144 UNIPHIER_CLK_FACTOR("dapll1", -1, "ref", 128, 1), /* 2560 MHz */
145 UNIPHIER_CLK_FACTOR("dapll2", -1, "dapll1", 144, 125), /* 2949.12 MHz */
146 UNIPHIER_CLK_FACTOR("uart", 0, "dapll2", 1, 40),
148 UNIPHIER_CLK_FACTOR("spi", -1, "spll", 1, 48),
162 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 96, 1), /* 2400 MHz */
163 UNIPHIER_CLK_FACTOR("uart", 0, "spll", 1, 27),
165 UNIPHIER_CLK_FACTOR("spi", -1, "spll", 1, 48),
171 /* GIO is always clock-enabled: no function for 0x2104 bit6 */
175 UNIPHIER_CLK_GATE("usb30-hsphy0", 16, NULL, 0x2104, 19),
176 UNIPHIER_CLK_FACTOR("usb30-ssphy0", 17, "ref", 1, 1),
177 UNIPHIER_CLK_FACTOR("usb30-ssphy1", 18, "ref", 1, 1),
178 UNIPHIER_CLK_GATE("usb31-hsphy0", 20, NULL, 0x2104, 20),
179 UNIPHIER_CLK_FACTOR("usb31-ssphy0", 21, "ref", 1, 1),
186 UNIPHIER_CLK_FACTOR("cpll", -1, "ref", 392, 5), /* 1960 MHz */
187 UNIPHIER_CLK_FACTOR("mpll", -1, "ref", 64, 1), /* 1600 MHz */
188 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 80, 1), /* 2000 MHz */
189 UNIPHIER_CLK_FACTOR("vspll", -1, "ref", 80, 1), /* 2000 MHz */
190 UNIPHIER_CLK_FACTOR("uart", 0, "spll", 1, 34),
192 UNIPHIER_CLK_FACTOR("spi", -1, "spll", 1, 40),
200 UNIPHIER_CLK_FACTOR("usb2", -1, "ref", 24, 25),
209 UNIPHIER_CLK_CPUGEAR("cpu-ca53", 33, 0x8080, 0xf, 8,
212 UNIPHIER_CLK_CPUGEAR("cpu-ipp", 34, 0x8100, 0xf, 8,
219 UNIPHIER_CLK_FACTOR("cpll", -1, "ref", 88, 1), /* ARM: 2200 MHz */
220 UNIPHIER_CLK_FACTOR("gppll", -1, "ref", 52, 1), /* Mali: 1300 MHz */
221 UNIPHIER_CLK_FACTOR("mpll", -1, "ref", 64, 1), /* Codec: 1600 MHz */
222 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 80, 1), /* 2000 MHz */
223 UNIPHIER_CLK_FACTOR("s2pll", -1, "ref", 88, 1), /* IPP: 2200 MHz */
224 UNIPHIER_CLK_FACTOR("vppll", -1, "ref", 504, 5), /* 2520 MHz */
225 UNIPHIER_CLK_FACTOR("uart", 0, "spll", 1, 34),
227 UNIPHIER_CLK_FACTOR("spi", -1, "spll", 1, 40),
236 /* GIO is always clock-enabled: no function for 0x210c bit5 */
242 UNIPHIER_CLK_GATE("usb30-hsphy0", 16, NULL, 0x210c, 12),
243 UNIPHIER_CLK_GATE("usb30-hsphy1", 17, NULL, 0x210c, 13),
244 UNIPHIER_CLK_FACTOR("usb30-ssphy0", 18, "ref", 1, 1),
245 UNIPHIER_CLK_FACTOR("usb30-ssphy1", 19, "ref", 1, 1),
254 UNIPHIER_CLK_CPUGEAR("cpu-ca72", 32, 0x8000, 0xf, 8,
257 UNIPHIER_CLK_CPUGEAR("cpu-ca53", 33, 0x8080, 0xf, 8,
260 UNIPHIER_CLK_CPUGEAR("cpu-ipp", 34, 0x8100, 0xf, 8,
267 UNIPHIER_CLK_FACTOR("cpll", -1, "ref", 104, 1), /* ARM: 2600 MHz */
268 UNIPHIER_CLK_FACTOR("spll", -1, "ref", 80, 1), /* 2000 MHz */
269 UNIPHIER_CLK_FACTOR("s2pll", -1, "ref", 88, 1), /* IPP: 2400 MHz */
270 UNIPHIER_CLK_FACTOR("uart", 0, "spll", 1, 34),
272 UNIPHIER_CLK_FACTOR("spi", -1, "spll", 1, 40),
280 UNIPHIER_CLK_GATE("usb31-0", 13, NULL, 0x210c, 5), /* =GIO1 */
281 UNIPHIER_CLK_GATE("usb31-1", 14, NULL, 0x210c, 6), /* =GIO1-1 */
282 UNIPHIER_CLK_GATE("usb30-hsphy0", 16, NULL, 0x210c, 16),
283 UNIPHIER_CLK_GATE("usb30-ssphy0", 17, NULL, 0x210c, 18),
284 UNIPHIER_CLK_GATE("usb30-ssphy1", 18, NULL, 0x210c, 20),
285 UNIPHIER_CLK_GATE("usb31-hsphy0", 20, NULL, 0x210c, 17),
286 UNIPHIER_CLK_GATE("usb31-ssphy0", 21, NULL, 0x210c, 19),
290 UNIPHIER_CLK_GATE("sata-phy", 30, NULL, 0x210c, 21),
295 UNIPHIER_CLK_CPUGEAR("cpu-ca53", 33, 0x8080, 0xf, 8,
298 UNIPHIER_CLK_CPUGEAR("cpu-ipp", 34, 0x8100, 0xf, 8,