diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2017-06-14 19:48:03 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-06-14 19:48:03 -0400 |
commit | 949bdfed4b0f74215da60992e9f5e14c9ecbb064 (patch) | |
tree | 4c5ff96d9e35f4febe334f36d9b57f8fdf54f58b /drivers/clk/sunxi-ng | |
parent | 658a7568030e287215b069a9c383c0fd0c5f57d5 (diff) | |
parent | d85da227c3ae43d9ca513d60f244213cb4e55485 (diff) |
Merge tag 'sunxi-clk-fixes-for-4.12' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-fixes
Allwinner clock fixes for 4.12
Some fixes that fix some bindings that went in 4.12, fix a few reset and
clock offsets and a build error fix
* tag 'sunxi-clk-fixes-for-4.12' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
clk: sunxi-ng: a64: Export PLL_PERIPH0 clock for the PRCM
clk: sunxi-ng: h3: Export PLL_PERIPH0 clock for the PRCM
dt-bindings: clock: sunxi-ccu: Add pll-periph to PRCM's needed clocks
clk: sunxi-ng: enable SUNXI_CCU_MP for PRCM
clk: sunxi-ng: v3s: Fix usb otg device reset bit
clk: sunxi-ng: a31: Correct lcd1-ch1 clock register offset
Diffstat (limited to 'drivers/clk/sunxi-ng')
-rw-r--r-- | drivers/clk/sunxi-ng/Kconfig | 1 | ||||
-rw-r--r-- | drivers/clk/sunxi-ng/ccu-sun50i-a64.h | 4 | ||||
-rw-r--r-- | drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 2 | ||||
-rw-r--r-- | drivers/clk/sunxi-ng/ccu-sun8i-h3.h | 4 | ||||
-rw-r--r-- | drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 2 |
5 files changed, 9 insertions, 4 deletions
diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig index b0d551a8efe4..eb89c7801f00 100644 --- a/drivers/clk/sunxi-ng/Kconfig +++ b/drivers/clk/sunxi-ng/Kconfig | |||
@@ -156,6 +156,7 @@ config SUN8I_R_CCU | |||
156 | bool "Support for Allwinner SoCs' PRCM CCUs" | 156 | bool "Support for Allwinner SoCs' PRCM CCUs" |
157 | select SUNXI_CCU_DIV | 157 | select SUNXI_CCU_DIV |
158 | select SUNXI_CCU_GATE | 158 | select SUNXI_CCU_GATE |
159 | select SUNXI_CCU_MP | ||
159 | default MACH_SUN8I || (ARCH_SUNXI && ARM64) | 160 | default MACH_SUN8I || (ARCH_SUNXI && ARM64) |
160 | 161 | ||
161 | endif | 162 | endif |
diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.h b/drivers/clk/sunxi-ng/ccu-sun50i-a64.h index 9b3cd24b78d2..061b6fbb4f95 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.h +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.h | |||
@@ -31,7 +31,9 @@ | |||
31 | #define CLK_PLL_VIDEO0_2X 8 | 31 | #define CLK_PLL_VIDEO0_2X 8 |
32 | #define CLK_PLL_VE 9 | 32 | #define CLK_PLL_VE 9 |
33 | #define CLK_PLL_DDR0 10 | 33 | #define CLK_PLL_DDR0 10 |
34 | #define CLK_PLL_PERIPH0 11 | 34 | |
35 | /* PLL_PERIPH0 exported for PRCM */ | ||
36 | |||
35 | #define CLK_PLL_PERIPH0_2X 12 | 37 | #define CLK_PLL_PERIPH0_2X 12 |
36 | #define CLK_PLL_PERIPH1 13 | 38 | #define CLK_PLL_PERIPH1 13 |
37 | #define CLK_PLL_PERIPH1_2X 14 | 39 | #define CLK_PLL_PERIPH1_2X 14 |
diff --git a/drivers/clk/sunxi-ng/ccu-sun6i-a31.c b/drivers/clk/sunxi-ng/ccu-sun6i-a31.c index 89e68d29bf45..df97e25aec76 100644 --- a/drivers/clk/sunxi-ng/ccu-sun6i-a31.c +++ b/drivers/clk/sunxi-ng/ccu-sun6i-a31.c | |||
@@ -556,7 +556,7 @@ static SUNXI_CCU_M_WITH_MUX_GATE(lcd0_ch1_clk, "lcd0-ch1", lcd_ch1_parents, | |||
556 | 0x12c, 0, 4, 24, 3, BIT(31), | 556 | 0x12c, 0, 4, 24, 3, BIT(31), |
557 | CLK_SET_RATE_PARENT); | 557 | CLK_SET_RATE_PARENT); |
558 | static SUNXI_CCU_M_WITH_MUX_GATE(lcd1_ch1_clk, "lcd1-ch1", lcd_ch1_parents, | 558 | static SUNXI_CCU_M_WITH_MUX_GATE(lcd1_ch1_clk, "lcd1-ch1", lcd_ch1_parents, |
559 | 0x12c, 0, 4, 24, 3, BIT(31), | 559 | 0x130, 0, 4, 24, 3, BIT(31), |
560 | CLK_SET_RATE_PARENT); | 560 | CLK_SET_RATE_PARENT); |
561 | 561 | ||
562 | static const char * const csi_sclk_parents[] = { "pll-video0", "pll-video1", | 562 | static const char * const csi_sclk_parents[] = { "pll-video0", "pll-video1", |
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.h b/drivers/clk/sunxi-ng/ccu-sun8i-h3.h index 85973d1e8165..1b4baea37d81 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-h3.h +++ b/drivers/clk/sunxi-ng/ccu-sun8i-h3.h | |||
@@ -29,7 +29,9 @@ | |||
29 | #define CLK_PLL_VIDEO 6 | 29 | #define CLK_PLL_VIDEO 6 |
30 | #define CLK_PLL_VE 7 | 30 | #define CLK_PLL_VE 7 |
31 | #define CLK_PLL_DDR 8 | 31 | #define CLK_PLL_DDR 8 |
32 | #define CLK_PLL_PERIPH0 9 | 32 | |
33 | /* PLL_PERIPH0 exported for PRCM */ | ||
34 | |||
33 | #define CLK_PLL_PERIPH0_2X 10 | 35 | #define CLK_PLL_PERIPH0_2X 10 |
34 | #define CLK_PLL_GPU 11 | 36 | #define CLK_PLL_GPU 11 |
35 | #define CLK_PLL_PERIPH1 12 | 37 | #define CLK_PLL_PERIPH1 12 |
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c index e58706b40ae9..6297add857b5 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | |||
@@ -537,7 +537,7 @@ static struct ccu_reset_map sun8i_v3s_ccu_resets[] = { | |||
537 | [RST_BUS_EMAC] = { 0x2c0, BIT(17) }, | 537 | [RST_BUS_EMAC] = { 0x2c0, BIT(17) }, |
538 | [RST_BUS_HSTIMER] = { 0x2c0, BIT(19) }, | 538 | [RST_BUS_HSTIMER] = { 0x2c0, BIT(19) }, |
539 | [RST_BUS_SPI0] = { 0x2c0, BIT(20) }, | 539 | [RST_BUS_SPI0] = { 0x2c0, BIT(20) }, |
540 | [RST_BUS_OTG] = { 0x2c0, BIT(23) }, | 540 | [RST_BUS_OTG] = { 0x2c0, BIT(24) }, |
541 | [RST_BUS_EHCI0] = { 0x2c0, BIT(26) }, | 541 | [RST_BUS_EHCI0] = { 0x2c0, BIT(26) }, |
542 | [RST_BUS_OHCI0] = { 0x2c0, BIT(29) }, | 542 | [RST_BUS_OHCI0] = { 0x2c0, BIT(29) }, |
543 | 543 | ||