Re: [PATCH v5 04/10] V4L: Add driver for s5k6a3 image sensor
Hi Baruch, On 24/02/14 20:38, Baruch Siach wrote: On Mon, Feb 24, 2014 at 06:35:16PM +0100, Sylwester Nawrocki wrote: This patch adds subdev driver for Samsung S5K6A3 raw image sensor. As it is intended at the moment to be used only with the Exynos FIMC-IS (camera ISP) subsystem it is pretty minimal subdev driver. It doesn't do any I2C communication since the sensor is controlled by the ISP and its own firmware. This driver, if needed, can be updated in future into a regular subdev driver where the main CPU communicates with the sensor directly. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com [...] +static int s5k6a3_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) +{ + struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(fh, 0); + + *format = s5k6a3_formats[0]; + format-width = S5K6A3_DEFAULT_WIDTH; + format-height = S5K6A3_DEFAULT_HEIGHT; + + return 0; +} + +static const struct v4l2_subdev_internal_ops s5k6a3_sd_internal_ops = { + .open = s5k6a3_open, +}; Where is this used? This will be called when user process opens the corresponding /dev/v4l-subdev* device node. More details on the v4l2 sub-device interface can be found at [1], [2]. The device node is created by an aggregate media device driver, once all required sub-devices are registered to it. The above v4l2_subdev_internal_ops::open() implementation is pretty simple, it just sets V4L2_SUBDEV_FORMAT_TRY format to some initial default value. That's a per file handle value, so each process opening a set of sub-devices can try pipeline configuration independently. [1] http://linuxtv.org/downloads/v4l-dvb-apis/subdev.html [2] http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-subdev-g-fmt.html Regards, Sylwester -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v5 04/10] V4L: Add driver for s5k6a3 image sensor
Hi Sylwester, On Tue, Feb 25, 2014 at 10:46:58AM +0100, Sylwester Nawrocki wrote: On 24/02/14 20:38, Baruch Siach wrote: On Mon, Feb 24, 2014 at 06:35:16PM +0100, Sylwester Nawrocki wrote: This patch adds subdev driver for Samsung S5K6A3 raw image sensor. As it is intended at the moment to be used only with the Exynos FIMC-IS (camera ISP) subsystem it is pretty minimal subdev driver. It doesn't do any I2C communication since the sensor is controlled by the ISP and its own firmware. This driver, if needed, can be updated in future into a regular subdev driver where the main CPU communicates with the sensor directly. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com [...] +static int s5k6a3_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) +{ +struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(fh, 0); + +*format = s5k6a3_formats[0]; +format-width = S5K6A3_DEFAULT_WIDTH; +format-height = S5K6A3_DEFAULT_HEIGHT; + +return 0; +} + +static const struct v4l2_subdev_internal_ops s5k6a3_sd_internal_ops = { +.open = s5k6a3_open, +}; Where is this used? This will be called when user process opens the corresponding /dev/v4l-subdev* device node. More details on the v4l2 sub-device interface can be found at [1], [2]. The device node is created by an aggregate media device driver, once all required sub-devices are registered to it. The above v4l2_subdev_internal_ops::open() implementation is pretty simple, it just sets V4L2_SUBDEV_FORMAT_TRY format to some initial default value. That's a per file handle value, so each process opening a set of sub-devices can try pipeline configuration independently. [1] http://linuxtv.org/downloads/v4l-dvb-apis/subdev.html [2] http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-subdev-g-fmt.html Thanks for the explanation. However, I've found no reference to the s5k6a3_sd_internal_ops struct in the driver code. There surly has to be at least one reference for the upper layer to access these ops. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/1] ARM: Exynos: Add generic compatible string
On Tuesday 25 February 2014, Olof Johansson wrote: I disagree. I don't know what Samsung has in mind, but the revision of the CPU doesn't have all that much to do with the rest of the SoC. It's quite likely that some vendors (maybe not Samsung, but the same concept applies) will ship 64-bit SoCs that are very similar to their preceding 32-bit ones, same IP, similar busses, etc. I'm pretty sure at least some vendors will do very close to that. Right. So, if EXYNOS4 and EXYNOS5 can share a compatible value when they use different CPUs, then there's no reason that whatever future 64-bit ones can also share it. How about putting both 'samsung,exynos' and 'samsung,exynos4' in DT then and having the platform code match exynos4 and exynos5 but not exynos? That way, I think we are consistent and future-proof. Any code that needs to know if it's running on some exynos version can just check for the 'samsung,exynos' compatible value and that will work on both arm32 and arm64. Also, if we ever decide we want to run a 32-bit kernel on a 64-bit exynos, we can just add 'samsung,exynos6' (or whatever number that will be) to the list. My usual disclaimer for this: You should never ever consider actually running a 32-bit kernel on a 64-bit CPU, but at the same time there shouldn't be any reason why it won't work either, given that we require arm64 based systems to have all SoC specific code in drivers and we can use the same drivers on arm32. Arnd -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v5 04/10] V4L: Add driver for s5k6a3 image sensor
On 25/02/14 10:55, Baruch Siach wrote: Thanks for the explanation. However, I've found no reference to the s5k6a3_sd_internal_ops struct in the driver code. There surly has to be at least one reference for the upper layer to access these ops. There is indeed an assignment missing to sd-internal_ops in probe(). Thanks for spotting this, I've corrected that for next iteration. -- Regards, Sylwester -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 0/2] ARM: SAMSUNG: move all arches to generic uncompress.h
Am Sonntag, 16. Februar 2014, 18:32:24 schrieb Heiko Stübner: On 2014-01-06 Sachin Kamat posted two patches converting Exynos to use the generic uncompress.h. But in fact all Samsung platforms can go this route, as all Samsung uncompress.h files are simply used to set up the serial port. As the original patches were not yet applied, this series includes the original Exynos-specific change. Tested on a s3c2416 and s3c2442 based machine. ping? Thanks Heiko -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 0/2] ARM: SAMSUNG: move all arches to generic uncompress.h
Hi Heiko, On 25 February 2014 19:47, Heiko Stübner he...@sntech.de wrote: Am Sonntag, 16. Februar 2014, 18:32:24 schrieb Heiko Stübner: On 2014-01-06 Sachin Kamat posted two patches converting Exynos to use the generic uncompress.h. But in fact all Samsung platforms can go this route, as all Samsung uncompress.h files are simply used to set up the serial port. As the original patches were not yet applied, this series includes the original Exynos-specific change. Tested on a s3c2416 and s3c2442 based machine. ping? Kukjin has already applied my 2 patches doing this for Exynos. You might need to rebase your patches on top of his for-next and re-send. -- With warm regards, Sachin -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 0/2] ARM: SAMSUNG: move all arches to generic uncompress.h
Am Dienstag, 25. Februar 2014, 21:11:09 schrieb Sachin Kamat: Hi Heiko, On 25 February 2014 19:47, Heiko Stübner he...@sntech.de wrote: Am Sonntag, 16. Februar 2014, 18:32:24 schrieb Heiko Stübner: On 2014-01-06 Sachin Kamat posted two patches converting Exynos to use the generic uncompress.h. But in fact all Samsung platforms can go this route, as all Samsung uncompress.h files are simply used to set up the serial port. As the original patches were not yet applied, this series includes the original Exynos-specific change. Tested on a s3c2416 and s3c2442 based machine. ping? Kukjin has already applied my 2 patches doing this for Exynos. You might need to rebase your patches on top of his for-next and re-send. now I've seen that he applied them yesterday ... will rebase mine as suggested. Heiko -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH v2 0/2] ARM: SAMSUNG: remove the rest of local uncompress.h files
Two patches from Sachin Kamat already removed the Exynos-uncompress.h . But in fact all Samsung platforms can use the generic uncompress code without needing local implementation. Therefore this two-part series removes the rest of the uncompress.h files from all Samsung platforms. Tested on a s3c2416 and s3c2442 based machine. The patches should be applied on top of the patches from Sachin Kamat in the v3.15-next/cleanup-samsung branch in the linux-samsung.git Heiko Stuebner (2): ARM: SAMSUNG: use generic uncompress.h ARM: SAMSUNG: remove all custom uncompress.h arch/arm/Kconfig.debug | 4 +- arch/arm/mach-s3c24xx/include/mach/uncompress.h | 57 arch/arm/mach-s3c64xx/include/mach/uncompress.h | 31 - arch/arm/mach-s5p64x0/include/mach/uncompress.h | 34 - arch/arm/mach-s5pc100/include/mach/uncompress.h | 30 arch/arm/mach-s5pv210/include/mach/uncompress.h | 28 arch/arm/plat-samsung/include/plat/uncompress.h | 175 7 files changed, 2 insertions(+), 357 deletions(-) delete mode 100644 arch/arm/mach-s3c24xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s3c64xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5p64x0/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pc100/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pv210/include/mach/uncompress.h delete mode 100644 arch/arm/plat-samsung/include/plat/uncompress.h -- 1.8.5.3 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH v2 2/2] ARM: SAMSUNG: remove all custom uncompress.h
All Samsung platforms now use the generic uncompress.h so all the custom ones can be removed. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/include/mach/uncompress.h | 57 arch/arm/mach-s3c64xx/include/mach/uncompress.h | 31 - arch/arm/mach-s5p64x0/include/mach/uncompress.h | 34 - arch/arm/mach-s5pc100/include/mach/uncompress.h | 30 arch/arm/mach-s5pv210/include/mach/uncompress.h | 28 arch/arm/plat-samsung/include/plat/uncompress.h | 175 6 files changed, 355 deletions(-) delete mode 100644 arch/arm/mach-s3c24xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s3c64xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5p64x0/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pc100/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pv210/include/mach/uncompress.h delete mode 100644 arch/arm/plat-samsung/include/plat/uncompress.h diff --git a/arch/arm/mach-s3c24xx/include/mach/uncompress.h b/arch/arm/mach-s3c24xx/include/mach/uncompress.h deleted file mode 100644 index 7d2ce20..000 --- a/arch/arm/mach-s3c24xx/include/mach/uncompress.h +++ /dev/null @@ -1,57 +0,0 @@ -/* arch/arm/mach-s3c2410/include/mach/uncompress.h - * - * Copyright (c) 2003-2007 Simtec Electronics - * http://armlinux.simtec.co.uk/ - * Ben Dooks b...@simtec.co.uk - * - * S3C2410 - uncompress code - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include mach/regs-gpio.h -#include mach/map.h - -/* working in physical space... */ -#undef S3C2410_GPIOREG -#define S3C2410_GPIOREG(x) ((S3C24XX_PA_GPIO + (x))) - -#include plat/uncompress.h - -static inline int is_arm926(void) -{ - unsigned int cpuid; - - asm volatile (mrc p15, 0, %0, c1, c0, 0 : =r (cpuid)); - - return ((cpuid 0xff0) == 0x260); -} - -static void arch_detect_cpu(void) -{ - unsigned int cpuid; - - cpuid = *((volatile unsigned int *)S3C2410_GSTATUS1); - cpuid = S3C2410_GSTATUS1_IDMASK; - - if (is_arm926() || cpuid == S3C2410_GSTATUS1_2440 || - cpuid == S3C2410_GSTATUS1_2442 || - cpuid == S3C2410_GSTATUS1_2416 || - cpuid == S3C2410_GSTATUS1_2450) { - fifo_mask = S3C2440_UFSTAT_TXMASK; - fifo_max = 63 S3C2440_UFSTAT_TXSHIFT; - } else { - fifo_mask = S3C2410_UFSTAT_TXMASK; - fifo_max = 15 S3C2410_UFSTAT_TXSHIFT; - } - - uart_base = (volatile u8 *) S3C_PA_UART + - (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT); -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */ diff --git a/arch/arm/mach-s3c64xx/include/mach/uncompress.h b/arch/arm/mach-s3c64xx/include/mach/uncompress.h deleted file mode 100644 index 1c95673..000 --- a/arch/arm/mach-s3c64xx/include/mach/uncompress.h +++ /dev/null @@ -1,31 +0,0 @@ -/* arch/arm/mach-s3c6400/include/mach/uncompress.h - * - * Copyright 2008 Openmoko, Inc. - * Copyright 2008 Simtec Electronics - * http://armlinux.simtec.co.uk/ - * Ben Dooks b...@simtec.co.uk - * - * S3C6400 - uncompress code - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include mach/map.h -#include plat/uncompress.h - -static void arch_detect_cpu(void) -{ - /* we do not need to do any cpu detection here at the moment. */ - fifo_mask = S3C2440_UFSTAT_TXMASK; - fifo_max = 63 S3C2440_UFSTAT_TXSHIFT; - - uart_base = (volatile u8 *)S3C_PA_UART + - (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT); -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */ diff --git a/arch/arm/mach-s5p64x0/include/mach/uncompress.h b/arch/arm/mach-s5p64x0/include/mach/uncompress.h deleted file mode 100644 index bbcc3f6..000 --- a/arch/arm/mach-s5p64x0/include/mach/uncompress.h +++ /dev/null @@ -1,34 +0,0 @@ -/* linux/arch/arm/mach-s5p64x0/include/mach/uncompress.h - * - * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. - * http://www.samsung.com - * - * S5P64X0 - uncompress code - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include mach/map.h -#include plat/uncompress.h - -static void arch_detect_cpu(void) -{ - unsigned int chipid; - - chipid = *(const volatile unsigned int __force *) 0xE0100118; - - if ((chipid 0xff000) == 0x5) - uart_base = (volatile u8
[PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast]
When compiled using ARM64 cross compiler, gcc complains as drivers/clk/samsung/clk.c:293:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Pankaj Dubey pankaj.du...@samsung.com --- drivers/clk/samsung/clk.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index 91bec3e..59142ba 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -278,7 +278,7 @@ void __init samsung_clk_of_register_fixed_ext( for_each_matching_node_and_match(np, clk_matches, match) { if (of_property_read_u32(np, clock-frequency, freq)) continue; - fixed_rate_clk[(u32)match-data].fixed_rate = freq; + fixed_rate_clk[(unsigned long)match-data].fixed_rate = freq; } samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk); } -- 1.7.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] clk: samsung: remove parentheses from return statements
fixed following checkpatch warning message return is not a function, parentheses are not required Signed-off-by: Pankaj Dubey pankaj.du...@samsung.com --- drivers/clk/samsung/clk-pll.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/samsung/clk-pll.c b/drivers/clk/samsung/clk-pll.c index 7fb0a28..32b483f 100644 --- a/drivers/clk/samsung/clk-pll.c +++ b/drivers/clk/samsung/clk-pll.c @@ -166,7 +166,7 @@ static inline bool samsung_pll35xx_mp_change( old_mdiv = (pll_con PLL35XX_MDIV_SHIFT) PLL35XX_MDIV_MASK; old_pdiv = (pll_con PLL35XX_PDIV_SHIFT) PLL35XX_PDIV_MASK; - return (rate-mdiv != old_mdiv || rate-pdiv != old_pdiv); + return rate-mdiv != old_mdiv || rate-pdiv != old_pdiv; } static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, @@ -274,8 +274,8 @@ static inline bool samsung_pll36xx_mpk_change( old_pdiv = (pll_con0 PLL36XX_PDIV_SHIFT) PLL36XX_PDIV_MASK; old_kdiv = (pll_con1 PLL36XX_KDIV_SHIFT) PLL36XX_KDIV_MASK; - return (rate-mdiv != old_mdiv || rate-pdiv != old_pdiv || - rate-kdiv != old_kdiv); + return rate-mdiv != old_mdiv || rate-pdiv != old_pdiv || + rate-kdiv != old_kdiv; } static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, @@ -387,8 +387,8 @@ static bool samsung_pll45xx_mp_change(u32 pll_con0, u32 pll_con1, old_pdiv = (pll_con0 PLL45XX_PDIV_SHIFT) PLL45XX_PDIV_MASK; old_afc = (pll_con1 PLL45XX_AFC_SHIFT) PLL45XX_AFC_MASK; - return (old_mdiv != rate-mdiv || old_pdiv != rate-pdiv - || old_afc != rate-afc); + return old_mdiv != rate-mdiv || old_pdiv != rate-pdiv + || old_afc != rate-afc; } static int samsung_pll45xx_set_rate(struct clk_hw *hw, unsigned long drate, @@ -534,8 +534,8 @@ static bool samsung_pll46xx_mpk_change(u32 pll_con0, u32 pll_con1, old_pdiv = (pll_con0 PLL46XX_PDIV_SHIFT) PLL46XX_PDIV_MASK; old_kdiv = (pll_con1 PLL46XX_KDIV_SHIFT) PLL46XX_KDIV_MASK; - return (old_mdiv != rate-mdiv || old_pdiv != rate-pdiv - || old_kdiv != rate-kdiv); + return old_mdiv != rate-mdiv || old_pdiv != rate-pdiv + || old_kdiv != rate-kdiv; } static int samsung_pll46xx_set_rate(struct clk_hw *hw, unsigned long drate, -- 1.7.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 2/3] ARM: select COMMON_CLK_SAMSUNG for ARCH_EXYNOS and ARCH_S3C64XX
CC: Russell King li...@arm.linux.org.uk Signed-off-by: Pankaj Dubey pankaj.du...@samsung.com --- arch/arm/Kconfig |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e254198..cc8868d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -756,6 +756,7 @@ config ARCH_S3C64XX select CLKDEV_LOOKUP select CLKSRC_SAMSUNG_PWM select COMMON_CLK + select COMMON_CLK_SAMSUNG select CPU_V6K select GENERIC_CLOCKEVENTS select GPIO_SAMSUNG @@ -835,6 +836,7 @@ config ARCH_EXYNOS 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.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 3/3] ARM: S3C24XX: select COMMON_CLK_SAMSUNG for S3C24XX
CC: Ben Dooks ben-li...@fluff.org CC: Kukjin Kim kgene@samsung.com CC: Russell King li...@arm.linux.org.uk Signed-off-by: Pankaj Dubey pankaj.du...@samsung.com --- arch/arm/mach-s3c24xx/Kconfig |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig index 80373da..5cf82a1 100644 --- a/arch/arm/mach-s3c24xx/Kconfig +++ b/arch/arm/mach-s3c24xx/Kconfig @@ -40,6 +40,7 @@ config CPU_S3C2410 config CPU_S3C2412 bool SAMSUNG S3C2412 select COMMON_CLK + select COMMON_CLK_SAMSUNG select CPU_ARM926T select CPU_LLSERIAL_S3C2440 select S3C2412_COMMON_CLK @@ -51,6 +52,7 @@ config CPU_S3C2412 config CPU_S3C2416 bool SAMSUNG S3C2416/S3C2450 select COMMON_CLK + select COMMON_CLK_SAMSUNG select CPU_ARM926T select CPU_LLSERIAL_S3C2440 select S3C2416_PM if PM @@ -89,6 +91,7 @@ config CPU_S3C244X config CPU_S3C2443 bool SAMSUNG S3C2443 select COMMON_CLK + select COMMON_CLK_SAMSUNG select CPU_ARM920T select CPU_LLSERIAL_S3C2440 select S3C2443_COMMON_CLK -- 1.7.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 1/3] drivers: clk: add samsung common clock config option
add samsung common clock config option and let ARCH_EXYNOS or ARCH_S3C select this if they want to use samsung common clock infrastructure. CC: Mike Turquette mturque...@linaro.org Signed-off-by: Pankaj Dubey pankaj.du...@samsung.com --- drivers/clk/Kconfig | 10 ++ drivers/clk/Makefile |2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 7641965..d93a325 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -23,6 +23,16 @@ config COMMON_CLK menu Common Clock Framework depends on COMMON_CLK +config COMMON_CLK_SAMSUNG + bool Clock driver for Samsung SoCs + depends on ARCH_S3C64XX || ARCH_S3C24XX || ARCH_EXYNOS || ARM64 + ---help--- + Supports clocking on Exynos SoCs: + - Exynos5250, Exynos5420 board. + - Exynos4 boards. + - S3C2412, S3C2416, S3C2466 boards. + - S3C64XX boards. + config COMMON_CLK_WM831X tristate Clock driver for WM831x/2x PMICs depends on MFD_WM831X diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index a367a98..f1da6ee 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -38,7 +38,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.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 0/3] introduce new config option for samsung common clock
This patchset introduces a new config option for Samsung common clock infrastructure as COMMON_CLK_SAMSUNG. 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 better we introduce new COMMON_CLK_SAMSUNG and make it dependent on existing ARCH_ which needs SAMSUNG common clock infrastructure, also on ARM64. Pankaj Dubey (3): drivers: clk: add samsung common clock config option ARM: select COMMON_CLK_SAMSUNG for ARCH_EXYNOS and ARCH_S3C64XX ARM: S3C24XX: select COMMON_CLK_SAMSUNG for S3C24XX arch/arm/Kconfig |2 ++ arch/arm/mach-s3c24xx/Kconfig |3 +++ drivers/clk/Kconfig | 10 ++ drivers/clk/Makefile |2 +- 4 files changed, 16 insertions(+), 1 deletion(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html