sh: sh7723 clock framework rewrite
PATCH 1/1 sh: sh7723 clock framework rewrite
From: Magnus Damm <[email protected]>
This patch contains a rewrite of the sh7723 clock framework code. The new code makes use of the recently merged div4, div6 and mstp32 helper code.
Signed-off-by Magnus Damm <[email protected]>
---
Tested on ap325.
arch/sh/Kconfig | 2 arch/sh/kernel/cpu/sh4a/Makefile | 2 arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 57 ---------- arch/sh/kernel/cpu/sh4a/clock-sh7723.c | 181 ++++++++++++++++++++++++++++++++ 4 files changed, 184 insertions(+), 58 deletions(-)
arch/sh/Kconfig +1 -1
@@ -516,7 +516,7 @@ config SH_CLK_CPG config SH_CLK_CPG_LEGACY depends on SH_CLK_CPG - def_bool y if !CPU_SUBTYPE_SH7785 + def_bool y if !CPU_SUBTYPE_SH7785 && !CPU_SUBTYPE_SH7723 config SH_CLK_MD int "CPU Mode Pin Setting"
arch/sh/kernel/cpu/sh4a/Makefile +1 -1
@@ -26,7 +26,7 @@ clock-$(CONFIG_CPU_SUBTYPE_SH7785) := cl clock-$(CONFIG_CPU_SUBTYPE_SH7786) := clock-sh7786.o clock-$(CONFIG_CPU_SUBTYPE_SH7343) := clock-sh7722.o clock-$(CONFIG_CPU_SUBTYPE_SH7722) := clock-sh7722.o -clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7722.o +clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7723.o clock-$(CONFIG_CPU_SUBTYPE_SH7724) := clock-sh7722.o clock-$(CONFIG_CPU_SUBTYPE_SH7366) := clock-sh7722.o clock-$(CONFIG_CPU_SUBTYPE_SHX3) := clock-shx3.o
arch/sh/kernel/cpu/sh4a/clock-sh7722.c +1 -56
75 lines not on this page · raw message
arch/sh/kernel/cpu/sh4a/clock-sh7723.c new file +181 -0
181 lines not on this page · raw message
PATCH 1/1 sh: sh7723 clock framework rewrite V2
From: Magnus Damm <[email protected]>
This patch contains V2 of the sh7723 clock framework rewrite. The new code makes use of the recently merged div4, div6 and mstp32 helper code. Both extal and dll are supported as input clocks to the pll.
Signed-off-by Magnus Damm <[email protected]>
---
Tested on ap325.
arch/sh/Kconfig | 2 arch/sh/kernel/cpu/sh4a/Makefile | 2 arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 57 -------- arch/sh/kernel/cpu/sh4a/clock-sh7723.c | 222 ++++++++++++++++++++++++++++++++ 4 files changed, 225 insertions(+), 58 deletions(-)
arch/sh/Kconfig +1 -1
@@ -516,7 +516,7 @@ config SH_CLK_CPG config SH_CLK_CPG_LEGACY depends on SH_CLK_CPG - def_bool y if !CPU_SUBTYPE_SH7785 + def_bool y if !CPU_SUBTYPE_SH7785 && !CPU_SUBTYPE_SH7723 config SH_CLK_MD int "CPU Mode Pin Setting"
arch/sh/kernel/cpu/sh4a/Makefile +1 -1
@@ -26,7 +26,7 @@ clock-$(CONFIG_CPU_SUBTYPE_SH7785) := cl clock-$(CONFIG_CPU_SUBTYPE_SH7786) := clock-sh7786.o clock-$(CONFIG_CPU_SUBTYPE_SH7343) := clock-sh7722.o clock-$(CONFIG_CPU_SUBTYPE_SH7722) := clock-sh7722.o -clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7722.o +clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7723.o clock-$(CONFIG_CPU_SUBTYPE_SH7724) := clock-sh7722.o clock-$(CONFIG_CPU_SUBTYPE_SH7366) := clock-sh7722.o clock-$(CONFIG_CPU_SUBTYPE_SHX3) := clock-shx3.o
arch/sh/kernel/cpu/sh4a/clock-sh7722.c +1 -56
75 lines not on this page · raw message
arch/sh/kernel/cpu/sh4a/clock-sh7723.c new file +222 -0
222 lines not on this page · raw message