* [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock
@ 2018-03-08 8:23 ` Katsuhiro Suzuki
0 siblings, 0 replies; 7+ messages in thread
From: Katsuhiro Suzuki @ 2018-03-08 8:23 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Masahiro Yamada, linux-clk,
linux-arm-kernel
Cc: Masami Hiramatsu, Jassi Brar, linux-kernel, Katsuhiro Suzuki
Add clock for audio subsystem (AIO) on UniPhier
Pro4/Pro5/PXs2 SoCs.
Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
---
drivers/clk/uniphier/clk-uniphier-sys.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c
index d244e724e198..06c5269f63f5 100644
--- a/drivers/clk/uniphier/clk-uniphier-sys.c
+++ b/drivers/clk/uniphier/clk-uniphier-sys.c
@@ -57,6 +57,14 @@
#define UNIPHIER_PRO4_SYS_CLK_USB3(idx, ch) \
UNIPHIER_CLK_GATE("usb3" #ch, (idx), NULL, 0x2104, 16 + (ch))
+#define UNIPHIER_PRO4_SYS_CLK_AIO(idx) \
+ UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 8), \
+ UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
+
+#define UNIPHIER_PRO5_SYS_CLK_AIO(idx) \
+ UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 12), \
+ UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
+
#define UNIPHIER_LD11_SYS_CLK_AIO(idx) \
UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 10), \
UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2108, 0)
@@ -104,6 +112,7 @@ const struct uniphier_clk_data uniphier_pro4_sys_clk_data[] = {
UNIPHIER_PRO4_SYS_CLK_GIO(12), /* Ether, SATA, USB3 */
UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
+ UNIPHIER_PRO4_SYS_CLK_AIO(40),
{ /* sentinel */ }
};
@@ -132,6 +141,7 @@ const struct uniphier_clk_data uniphier_pro5_sys_clk_data[] = {
UNIPHIER_PRO4_SYS_CLK_GIO(12), /* PCIe, USB3 */
UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
+ UNIPHIER_PRO5_SYS_CLK_AIO(40),
{ /* sentinel */ }
};
@@ -149,6 +159,7 @@ const struct uniphier_clk_data uniphier_pxs2_sys_clk_data[] = {
/* The document mentions 0x2104 bit 18, but not functional */
UNIPHIER_CLK_GATE("usb30-phy", 16, NULL, 0x2104, 19),
UNIPHIER_CLK_GATE("usb31-phy", 20, NULL, 0x2104, 20),
+ UNIPHIER_PRO5_SYS_CLK_AIO(40),
{ /* sentinel */ }
};
--
2.16.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock
@ 2018-03-08 8:23 ` Katsuhiro Suzuki
0 siblings, 0 replies; 7+ messages in thread
From: Katsuhiro Suzuki @ 2018-03-08 8:23 UTC (permalink / raw)
To: linux-arm-kernel
Add clock for audio subsystem (AIO) on UniPhier
Pro4/Pro5/PXs2 SoCs.
Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
---
drivers/clk/uniphier/clk-uniphier-sys.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c
index d244e724e198..06c5269f63f5 100644
--- a/drivers/clk/uniphier/clk-uniphier-sys.c
+++ b/drivers/clk/uniphier/clk-uniphier-sys.c
@@ -57,6 +57,14 @@
#define UNIPHIER_PRO4_SYS_CLK_USB3(idx, ch) \
UNIPHIER_CLK_GATE("usb3" #ch, (idx), NULL, 0x2104, 16 + (ch))
+#define UNIPHIER_PRO4_SYS_CLK_AIO(idx) \
+ UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 8), \
+ UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
+
+#define UNIPHIER_PRO5_SYS_CLK_AIO(idx) \
+ UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 12), \
+ UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
+
#define UNIPHIER_LD11_SYS_CLK_AIO(idx) \
UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 10), \
UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2108, 0)
@@ -104,6 +112,7 @@ const struct uniphier_clk_data uniphier_pro4_sys_clk_data[] = {
UNIPHIER_PRO4_SYS_CLK_GIO(12), /* Ether, SATA, USB3 */
UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
+ UNIPHIER_PRO4_SYS_CLK_AIO(40),
{ /* sentinel */ }
};
@@ -132,6 +141,7 @@ const struct uniphier_clk_data uniphier_pro5_sys_clk_data[] = {
UNIPHIER_PRO4_SYS_CLK_GIO(12), /* PCIe, USB3 */
UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
+ UNIPHIER_PRO5_SYS_CLK_AIO(40),
{ /* sentinel */ }
};
@@ -149,6 +159,7 @@ const struct uniphier_clk_data uniphier_pxs2_sys_clk_data[] = {
/* The document mentions 0x2104 bit 18, but not functional */
UNIPHIER_CLK_GATE("usb30-phy", 16, NULL, 0x2104, 19),
UNIPHIER_CLK_GATE("usb31-phy", 20, NULL, 0x2104, 20),
+ UNIPHIER_PRO5_SYS_CLK_AIO(40),
{ /* sentinel */ }
};
--
2.16.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock
2018-03-08 8:23 ` Katsuhiro Suzuki
@ 2018-03-08 8:38 ` Masahiro Yamada
-1 siblings, 0 replies; 7+ messages in thread
From: Masahiro Yamada @ 2018-03-08 8:38 UTC (permalink / raw)
To: Katsuhiro Suzuki
Cc: Michael Turquette, Stephen Boyd, linux-clk, linux-arm-kernel,
Masami Hiramatsu, Jassi Brar, Linux Kernel Mailing List
2018-03-08 17:23 GMT+09:00 Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>:
> Add clock for audio subsystem (AIO) on UniPhier
> Pro4/Pro5/PXs2 SoCs.
>
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
> ---
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> drivers/clk/uniphier/clk-uniphier-sys.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c
> index d244e724e198..06c5269f63f5 100644
> --- a/drivers/clk/uniphier/clk-uniphier-sys.c
> +++ b/drivers/clk/uniphier/clk-uniphier-sys.c
> @@ -57,6 +57,14 @@
> #define UNIPHIER_PRO4_SYS_CLK_USB3(idx, ch) \
> UNIPHIER_CLK_GATE("usb3" #ch, (idx), NULL, 0x2104, 16 + (ch))
>
> +#define UNIPHIER_PRO4_SYS_CLK_AIO(idx) \
> + UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 8), \
> + UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
> +
> +#define UNIPHIER_PRO5_SYS_CLK_AIO(idx) \
> + UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 12), \
> + UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
> +
> #define UNIPHIER_LD11_SYS_CLK_AIO(idx) \
> UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 10), \
> UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2108, 0)
> @@ -104,6 +112,7 @@ const struct uniphier_clk_data uniphier_pro4_sys_clk_data[] = {
> UNIPHIER_PRO4_SYS_CLK_GIO(12), /* Ether, SATA, USB3 */
> UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
> UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
> + UNIPHIER_PRO4_SYS_CLK_AIO(40),
> { /* sentinel */ }
> };
>
> @@ -132,6 +141,7 @@ const struct uniphier_clk_data uniphier_pro5_sys_clk_data[] = {
> UNIPHIER_PRO4_SYS_CLK_GIO(12), /* PCIe, USB3 */
> UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
> UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
> + UNIPHIER_PRO5_SYS_CLK_AIO(40),
> { /* sentinel */ }
> };
>
> @@ -149,6 +159,7 @@ const struct uniphier_clk_data uniphier_pxs2_sys_clk_data[] = {
> /* The document mentions 0x2104 bit 18, but not functional */
> UNIPHIER_CLK_GATE("usb30-phy", 16, NULL, 0x2104, 19),
> UNIPHIER_CLK_GATE("usb31-phy", 20, NULL, 0x2104, 20),
> + UNIPHIER_PRO5_SYS_CLK_AIO(40),
> { /* sentinel */ }
> };
>
> --
> 2.16.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-clk" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock
@ 2018-03-08 8:38 ` Masahiro Yamada
0 siblings, 0 replies; 7+ messages in thread
From: Masahiro Yamada @ 2018-03-08 8:38 UTC (permalink / raw)
To: linux-arm-kernel
2018-03-08 17:23 GMT+09:00 Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>:
> Add clock for audio subsystem (AIO) on UniPhier
> Pro4/Pro5/PXs2 SoCs.
>
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
> ---
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> drivers/clk/uniphier/clk-uniphier-sys.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c
> index d244e724e198..06c5269f63f5 100644
> --- a/drivers/clk/uniphier/clk-uniphier-sys.c
> +++ b/drivers/clk/uniphier/clk-uniphier-sys.c
> @@ -57,6 +57,14 @@
> #define UNIPHIER_PRO4_SYS_CLK_USB3(idx, ch) \
> UNIPHIER_CLK_GATE("usb3" #ch, (idx), NULL, 0x2104, 16 + (ch))
>
> +#define UNIPHIER_PRO4_SYS_CLK_AIO(idx) \
> + UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 8), \
> + UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
> +
> +#define UNIPHIER_PRO5_SYS_CLK_AIO(idx) \
> + UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 12), \
> + UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13)
> +
> #define UNIPHIER_LD11_SYS_CLK_AIO(idx) \
> UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 10), \
> UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2108, 0)
> @@ -104,6 +112,7 @@ const struct uniphier_clk_data uniphier_pro4_sys_clk_data[] = {
> UNIPHIER_PRO4_SYS_CLK_GIO(12), /* Ether, SATA, USB3 */
> UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
> UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
> + UNIPHIER_PRO4_SYS_CLK_AIO(40),
> { /* sentinel */ }
> };
>
> @@ -132,6 +141,7 @@ const struct uniphier_clk_data uniphier_pro5_sys_clk_data[] = {
> UNIPHIER_PRO4_SYS_CLK_GIO(12), /* PCIe, USB3 */
> UNIPHIER_PRO4_SYS_CLK_USB3(14, 0),
> UNIPHIER_PRO4_SYS_CLK_USB3(15, 1),
> + UNIPHIER_PRO5_SYS_CLK_AIO(40),
> { /* sentinel */ }
> };
>
> @@ -149,6 +159,7 @@ const struct uniphier_clk_data uniphier_pxs2_sys_clk_data[] = {
> /* The document mentions 0x2104 bit 18, but not functional */
> UNIPHIER_CLK_GATE("usb30-phy", 16, NULL, 0x2104, 19),
> UNIPHIER_CLK_GATE("usb31-phy", 20, NULL, 0x2104, 20),
> + UNIPHIER_PRO5_SYS_CLK_AIO(40),
> { /* sentinel */ }
> };
>
> --
> 2.16.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-clk" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock
2018-03-08 8:23 ` Katsuhiro Suzuki
(?)
@ 2018-03-19 20:42 ` Stephen Boyd
-1 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2018-03-19 20:42 UTC (permalink / raw)
To: Katsuhiro Suzuki, Masahiro Yamada, Michael Turquette,
Stephen Boyd, linux-arm-kernel, linux-clk
Cc: Katsuhiro Suzuki, Jassi Brar, linux-kernel, Masami Hiramatsu
Quoting Katsuhiro Suzuki (2018-03-08 00:23:32)
> Add clock for audio subsystem (AIO) on UniPhier
> Pro4/Pro5/PXs2 SoCs.
>
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock
@ 2018-03-19 20:42 ` Stephen Boyd
0 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2018-03-19 20:42 UTC (permalink / raw)
To: Katsuhiro Suzuki, Masahiro Yamada, Michael Turquette,
Stephen Boyd, linux-arm-kernel, linux-clk
Cc: Katsuhiro Suzuki, Jassi Brar, linux-kernel, Masami Hiramatsu
Quoting Katsuhiro Suzuki (2018-03-08 00:23:32)
> Add clock for audio subsystem (AIO) on UniPhier
> Pro4/Pro5/PXs2 SoCs.
> =
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock
@ 2018-03-19 20:42 ` Stephen Boyd
0 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2018-03-19 20:42 UTC (permalink / raw)
To: linux-arm-kernel
Quoting Katsuhiro Suzuki (2018-03-08 00:23:32)
> Add clock for audio subsystem (AIO) on UniPhier
> Pro4/Pro5/PXs2 SoCs.
>
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-03-19 20:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-08 8:23 [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock Katsuhiro Suzuki
2018-03-08 8:23 ` Katsuhiro Suzuki
2018-03-08 8:38 ` Masahiro Yamada
2018-03-08 8:38 ` Masahiro Yamada
2018-03-19 20:42 ` Stephen Boyd
2018-03-19 20:42 ` Stephen Boyd
2018-03-19 20:42 ` Stephen Boyd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.