* [PATCH v4 0/4] Introduce new Kconfig for Samsung common clock
@ 2014-05-08 4:07 ` Pankaj Dubey
0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-samsung-soc, linux-kernel, linux-arm-kernel
Cc: kgene.kim, t.figa, Pankaj Dubey
Introduce a new Kconfig file for Samsung common clock infrastructure
related config options. As current Samsung common clock gets compiled
based on PLAT_SAMSUNG, but moving ahead with ARM64 we can not have any
more such config options, so this patch introduce new COMMON_CLK_SAMSUNG
invisible option. This option also select COMMON_CLK so ARCH Kconfig just
need to select COMMON_CLK_SAMSUNG in case they want to use Samsung common
clock.
This series is based on Kukjin's for-next branch.
I am just respinning this patch after rebasing. I have already addressed
all review comments discussed here [1].
[1]: http://lkml.org/lkml/2014/3/19/216
V4:
1) Rebased on latest Kukjin's for-next branch.
V3:
1) Re-organized patches for preventing bisect issues.
2) Rebase on top of latest Kukjin's for-next branch.
3) Compile tested exynos_defconfig, s3c6400_defconfig and s3c2410_defconfig
after each commit.
V2:
1) Adding new Kconfig file for Samsung common clock.
2) Make COMMON_CLK_SAMSUNG option invisible. (as suggested by Tomasz Figa)
3) Let COMMON_CLK_SAMSUNG select COMMON_CLK. (as suggested by Tomasz Figa)
4) Move S3C24XX clock config option in new Kconfig file.
Pankaj Dubey (4):
clk: samsung: add new Kconfig for Samsung common clock option
ARM: select COMMON_CLK_SAMSUNG for ARCH_EXYNOS and ARCH_S3C64XX
ARM: S3C24XX: move S3C24XX clock Kconfig options to Samsung clock
Kconfig file
drivers: clk: use COMMON_CLK_SAMSUNG for Samsung clock support
arch/arm/Kconfig | 4 ++--
arch/arm/mach-s3c24xx/Kconfig | 14 --------------
drivers/clk/Kconfig | 2 ++
drivers/clk/Makefile | 2 +-
drivers/clk/samsung/Kconfig | 12 ++++++++++++
5 files changed, 17 insertions(+), 17 deletions(-)
create mode 100644 drivers/clk/samsung/Kconfig
--
1.7.10.4
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v4 0/4] Introduce new Kconfig for Samsung common clock
@ 2014-05-08 4:07 ` Pankaj Dubey
0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-arm-kernel
Introduce a new Kconfig file for Samsung common clock infrastructure
related config options. As current Samsung common clock gets compiled
based on PLAT_SAMSUNG, but moving ahead with ARM64 we can not have any
more such config options, so this patch introduce new COMMON_CLK_SAMSUNG
invisible option. This option also select COMMON_CLK so ARCH Kconfig just
need to select COMMON_CLK_SAMSUNG in case they want to use Samsung common
clock.
This series is based on Kukjin's for-next branch.
I am just respinning this patch after rebasing. I have already addressed
all review comments discussed here [1].
[1]: http://lkml.org/lkml/2014/3/19/216
V4:
1) Rebased on latest Kukjin's for-next branch.
V3:
1) Re-organized patches for preventing bisect issues.
2) Rebase on top of latest Kukjin's for-next branch.
3) Compile tested exynos_defconfig, s3c6400_defconfig and s3c2410_defconfig
after each commit.
V2:
1) Adding new Kconfig file for Samsung common clock.
2) Make COMMON_CLK_SAMSUNG option invisible. (as suggested by Tomasz Figa)
3) Let COMMON_CLK_SAMSUNG select COMMON_CLK. (as suggested by Tomasz Figa)
4) Move S3C24XX clock config option in new Kconfig file.
Pankaj Dubey (4):
clk: samsung: add new Kconfig for Samsung common clock option
ARM: select COMMON_CLK_SAMSUNG for ARCH_EXYNOS and ARCH_S3C64XX
ARM: S3C24XX: move S3C24XX clock Kconfig options to Samsung clock
Kconfig file
drivers: clk: use COMMON_CLK_SAMSUNG for Samsung clock support
arch/arm/Kconfig | 4 ++--
arch/arm/mach-s3c24xx/Kconfig | 14 --------------
drivers/clk/Kconfig | 2 ++
drivers/clk/Makefile | 2 +-
drivers/clk/samsung/Kconfig | 12 ++++++++++++
5 files changed, 17 insertions(+), 17 deletions(-)
create mode 100644 drivers/clk/samsung/Kconfig
--
1.7.10.4
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v4 1/4] clk: samsung: add new Kconfig for Samsung common clock option
2014-05-08 4:07 ` Pankaj Dubey
@ 2014-05-08 4:07 ` Pankaj Dubey
-1 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-samsung-soc, linux-kernel, linux-arm-kernel
Cc: kgene.kim, t.figa, Pankaj Dubey, Mike Turquette
This patch adds new Kconfig file for adding new COMMON_CLK_SAMSUNG option.
Samsung platforms can select this for using common clock infrastructure.
CC: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
drivers/clk/Kconfig | 2 ++
drivers/clk/samsung/Kconfig | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 drivers/clk/samsung/Kconfig
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 6f56d3a..ba24366 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -115,3 +115,5 @@ endmenu
source "drivers/clk/bcm/Kconfig"
source "drivers/clk/mvebu/Kconfig"
+
+source "drivers/clk/samsung/Kconfig"
diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig
new file mode 100644
index 0000000..fc8696b
--- /dev/null
+++ b/drivers/clk/samsung/Kconfig
@@ -0,0 +1,3 @@
+config COMMON_CLK_SAMSUNG
+ bool
+ select COMMON_CLK
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 1/4] clk: samsung: add new Kconfig for Samsung common clock option
@ 2014-05-08 4:07 ` Pankaj Dubey
0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds new Kconfig file for adding new COMMON_CLK_SAMSUNG option.
Samsung platforms can select this for using common clock infrastructure.
CC: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
drivers/clk/Kconfig | 2 ++
drivers/clk/samsung/Kconfig | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 drivers/clk/samsung/Kconfig
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 6f56d3a..ba24366 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -115,3 +115,5 @@ endmenu
source "drivers/clk/bcm/Kconfig"
source "drivers/clk/mvebu/Kconfig"
+
+source "drivers/clk/samsung/Kconfig"
diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig
new file mode 100644
index 0000000..fc8696b
--- /dev/null
+++ b/drivers/clk/samsung/Kconfig
@@ -0,0 +1,3 @@
+config COMMON_CLK_SAMSUNG
+ bool
+ select COMMON_CLK
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 2/4] ARM: select COMMON_CLK_SAMSUNG for ARCH_EXYNOS and ARCH_S3C64XX
2014-05-08 4:07 ` Pankaj Dubey
@ 2014-05-08 4:07 ` Pankaj Dubey
-1 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-samsung-soc, linux-kernel, linux-arm-kernel
Cc: kgene.kim, t.figa, Pankaj Dubey, Russell King
This patch selects COMMON_CLK_SAMSUNG for EXYNOS and S3C64XX SoC
and removes COMMON_CLK selection as COMMON_CLK_SAMSUNG selects it's dependency.
CC: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
arch/arm/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index ab438cb..0edb868 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -754,7 +754,7 @@ config ARCH_S3C64XX
select ATAGS
select CLKDEV_LOOKUP
select CLKSRC_SAMSUNG_PWM
- select COMMON_CLK
+ select COMMON_CLK_SAMSUNG
select CPU_V6K
select GENERIC_CLOCKEVENTS
select GPIO_SAMSUNG
@@ -835,7 +835,7 @@ config ARCH_EXYNOS
select ARCH_REQUIRE_GPIOLIB
select ARCH_SPARSEMEM_ENABLE
select ARM_GIC
- select COMMON_CLK
+ select COMMON_CLK_SAMSUNG
select CPU_V7
select GENERIC_CLOCKEVENTS
select HAVE_S3C2410_I2C if I2C
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 2/4] ARM: select COMMON_CLK_SAMSUNG for ARCH_EXYNOS and ARCH_S3C64XX
@ 2014-05-08 4:07 ` Pankaj Dubey
0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-arm-kernel
This patch selects COMMON_CLK_SAMSUNG for EXYNOS and S3C64XX SoC
and removes COMMON_CLK selection as COMMON_CLK_SAMSUNG selects it's dependency.
CC: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
arch/arm/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index ab438cb..0edb868 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -754,7 +754,7 @@ config ARCH_S3C64XX
select ATAGS
select CLKDEV_LOOKUP
select CLKSRC_SAMSUNG_PWM
- select COMMON_CLK
+ select COMMON_CLK_SAMSUNG
select CPU_V6K
select GENERIC_CLOCKEVENTS
select GPIO_SAMSUNG
@@ -835,7 +835,7 @@ config ARCH_EXYNOS
select ARCH_REQUIRE_GPIOLIB
select ARCH_SPARSEMEM_ENABLE
select ARM_GIC
- select COMMON_CLK
+ select COMMON_CLK_SAMSUNG
select CPU_V7
select GENERIC_CLOCKEVENTS
select HAVE_S3C2410_I2C if I2C
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 3/4] ARM: S3C24XX: move S3C24XX clock Kconfig options to Samsung clock Kconfig file
2014-05-08 4:07 ` Pankaj Dubey
@ 2014-05-08 4:07 ` Pankaj Dubey
-1 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-samsung-soc, linux-kernel, linux-arm-kernel
Cc: kgene.kim, t.figa, Pankaj Dubey, Ben Dooks, Russell King
This patch moves S3C24XX specific clock Kconfig options into
"clk/samsung/Kconfig" and also removes COMMON_CLK selection from
"mach-s3c24xx/Kconfig" as S3C24XX_COMMON_CLK is selecting it's dependency.
CC: Ben Dooks <ben-linux@fluff.org>
CC: Kukjin Kim <kgene.kim@samsung.com>
CC: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
arch/arm/mach-s3c24xx/Kconfig | 14 --------------
drivers/clk/samsung/Kconfig | 9 +++++++++
2 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig
index fbafb9a..e645ece 100644
--- a/arch/arm/mach-s3c24xx/Kconfig
+++ b/arch/arm/mach-s3c24xx/Kconfig
@@ -39,7 +39,6 @@ config CPU_S3C2410
config CPU_S3C2412
bool "SAMSUNG S3C2412"
- select COMMON_CLK
select CPU_ARM926T
select CPU_LLSERIAL_S3C2440
select S3C2412_COMMON_CLK
@@ -50,7 +49,6 @@ config CPU_S3C2412
config CPU_S3C2416
bool "SAMSUNG S3C2416/S3C2450"
- select COMMON_CLK
select CPU_ARM926T
select CPU_LLSERIAL_S3C2440
select S3C2416_PM if PM
@@ -88,7 +86,6 @@ config CPU_S3C244X
config CPU_S3C2443
bool "SAMSUNG S3C2443"
- select COMMON_CLK
select CPU_ARM920T
select CPU_LLSERIAL_S3C2440
select S3C2443_COMMON_CLK
@@ -364,11 +361,6 @@ config S3C2412_PM_SLEEP
if CPU_S3C2412
-config S3C2412_COMMON_CLK
- bool
- help
- Build the s3c2412 clock driver based on the common clock framework.
-
config CPU_S3C2412_ONLY
bool
depends on !CPU_S3C2410 && !CPU_S3C2416 && !CPU_S3C2440 && \
@@ -651,12 +643,6 @@ endif # CPU_S3C2442
if CPU_S3C2443 || CPU_S3C2416
-config S3C2443_COMMON_CLK
- bool
- help
- Temporary symbol to build the clock driver based on the common clock
- framework.
-
config S3C2443_DMA
bool
help
diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig
index fc8696b..baf28cb 100644
--- a/drivers/clk/samsung/Kconfig
+++ b/drivers/clk/samsung/Kconfig
@@ -1,3 +1,12 @@
config COMMON_CLK_SAMSUNG
bool
select COMMON_CLK
+
+config S3C2412_COMMON_CLK
+ bool
+ select COMMON_CLK_SAMSUNG
+
+config S3C2443_COMMON_CLK
+ bool
+ select COMMON_CLK_SAMSUNG
+
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 3/4] ARM: S3C24XX: move S3C24XX clock Kconfig options to Samsung clock Kconfig file
@ 2014-05-08 4:07 ` Pankaj Dubey
0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-arm-kernel
This patch moves S3C24XX specific clock Kconfig options into
"clk/samsung/Kconfig" and also removes COMMON_CLK selection from
"mach-s3c24xx/Kconfig" as S3C24XX_COMMON_CLK is selecting it's dependency.
CC: Ben Dooks <ben-linux@fluff.org>
CC: Kukjin Kim <kgene.kim@samsung.com>
CC: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
arch/arm/mach-s3c24xx/Kconfig | 14 --------------
drivers/clk/samsung/Kconfig | 9 +++++++++
2 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig
index fbafb9a..e645ece 100644
--- a/arch/arm/mach-s3c24xx/Kconfig
+++ b/arch/arm/mach-s3c24xx/Kconfig
@@ -39,7 +39,6 @@ config CPU_S3C2410
config CPU_S3C2412
bool "SAMSUNG S3C2412"
- select COMMON_CLK
select CPU_ARM926T
select CPU_LLSERIAL_S3C2440
select S3C2412_COMMON_CLK
@@ -50,7 +49,6 @@ config CPU_S3C2412
config CPU_S3C2416
bool "SAMSUNG S3C2416/S3C2450"
- select COMMON_CLK
select CPU_ARM926T
select CPU_LLSERIAL_S3C2440
select S3C2416_PM if PM
@@ -88,7 +86,6 @@ config CPU_S3C244X
config CPU_S3C2443
bool "SAMSUNG S3C2443"
- select COMMON_CLK
select CPU_ARM920T
select CPU_LLSERIAL_S3C2440
select S3C2443_COMMON_CLK
@@ -364,11 +361,6 @@ config S3C2412_PM_SLEEP
if CPU_S3C2412
-config S3C2412_COMMON_CLK
- bool
- help
- Build the s3c2412 clock driver based on the common clock framework.
-
config CPU_S3C2412_ONLY
bool
depends on !CPU_S3C2410 && !CPU_S3C2416 && !CPU_S3C2440 && \
@@ -651,12 +643,6 @@ endif # CPU_S3C2442
if CPU_S3C2443 || CPU_S3C2416
-config S3C2443_COMMON_CLK
- bool
- help
- Temporary symbol to build the clock driver based on the common clock
- framework.
-
config S3C2443_DMA
bool
help
diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig
index fc8696b..baf28cb 100644
--- a/drivers/clk/samsung/Kconfig
+++ b/drivers/clk/samsung/Kconfig
@@ -1,3 +1,12 @@
config COMMON_CLK_SAMSUNG
bool
select COMMON_CLK
+
+config S3C2412_COMMON_CLK
+ bool
+ select COMMON_CLK_SAMSUNG
+
+config S3C2443_COMMON_CLK
+ bool
+ select COMMON_CLK_SAMSUNG
+
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 4/4] drivers: clk: use COMMON_CLK_SAMSUNG for Samsung clock support
2014-05-08 4:07 ` Pankaj Dubey
@ 2014-05-08 4:07 ` Pankaj Dubey
-1 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-samsung-soc, linux-kernel, linux-arm-kernel
Cc: kgene.kim, t.figa, Pankaj Dubey, Mike Turquette
This patch replaces PLAT_SAMSUNG with COMMON_CLK_SAMSUNG for Samsung
common clock support. Any Samsung SoC want to use Samsung common clock
infrastructure can simply select COMMON_CLK_SAMSUNG.
CC: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
drivers/clk/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index 5f8a287..17d7f13 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -41,7 +41,7 @@ obj-$(CONFIG_PLAT_ORION) += mvebu/
obj-$(CONFIG_ARCH_MXS) += mxs/
obj-$(CONFIG_COMMON_CLK_QCOM) += qcom/
obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
-obj-$(CONFIG_PLAT_SAMSUNG) += samsung/
+obj-$(CONFIG_COMMON_CLK_SAMSUNG) += samsung/
obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += shmobile/
obj-$(CONFIG_ARCH_SIRF) += sirf/
obj-$(CONFIG_ARCH_SOCFPGA) += socfpga/
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 4/4] drivers: clk: use COMMON_CLK_SAMSUNG for Samsung clock support
@ 2014-05-08 4:07 ` Pankaj Dubey
0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-05-08 4:07 UTC (permalink / raw)
To: linux-arm-kernel
This patch replaces PLAT_SAMSUNG with COMMON_CLK_SAMSUNG for Samsung
common clock support. Any Samsung SoC want to use Samsung common clock
infrastructure can simply select COMMON_CLK_SAMSUNG.
CC: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
drivers/clk/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index 5f8a287..17d7f13 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -41,7 +41,7 @@ obj-$(CONFIG_PLAT_ORION) += mvebu/
obj-$(CONFIG_ARCH_MXS) += mxs/
obj-$(CONFIG_COMMON_CLK_QCOM) += qcom/
obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
-obj-$(CONFIG_PLAT_SAMSUNG) += samsung/
+obj-$(CONFIG_COMMON_CLK_SAMSUNG) += samsung/
obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += shmobile/
obj-$(CONFIG_ARCH_SIRF) += sirf/
obj-$(CONFIG_ARCH_SOCFPGA) += socfpga/
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-05-08 4:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-08 4:07 [PATCH v4 0/4] Introduce new Kconfig for Samsung common clock Pankaj Dubey
2014-05-08 4:07 ` Pankaj Dubey
2014-05-08 4:07 ` [PATCH v4 1/4] clk: samsung: add new Kconfig for Samsung common clock option Pankaj Dubey
2014-05-08 4:07 ` Pankaj Dubey
2014-05-08 4:07 ` [PATCH v4 2/4] ARM: select COMMON_CLK_SAMSUNG for ARCH_EXYNOS and ARCH_S3C64XX Pankaj Dubey
2014-05-08 4:07 ` Pankaj Dubey
2014-05-08 4:07 ` [PATCH v4 3/4] ARM: S3C24XX: move S3C24XX clock Kconfig options to Samsung clock Kconfig file Pankaj Dubey
2014-05-08 4:07 ` Pankaj Dubey
2014-05-08 4:07 ` [PATCH v4 4/4] drivers: clk: use COMMON_CLK_SAMSUNG for Samsung clock support Pankaj Dubey
2014-05-08 4:07 ` Pankaj Dubey
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.