Re: [PATCH 1/3] ARM: EXYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx

2012-08-29 Thread Tomasz Figa
Hi,

On Wednesday 29 of August 2012 09:03:12 Kyungmin Park wrote:
 On 8/29/12, Kukjin Kim kgene@samsung.com wrote:
  Please see my comments on Joonyoung Shim's previous patch...
  http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/101522.h
  tml
 It's perference issue. some person like this style. others doesn't.
 Moreever vender, System LSI, provided codes have whole different style.
 It lists up whole gpios for each SoCs.
 
 EXYNOS4210_{A0,  Z}
 EXYNOS4412_{A0,  V4}
 EXYNOS5250_{A0,  Z}
 
 anyway, just remain it as broken, and try to use pinctl as Thomas
 mentioned.

OK, I will drop this patchset for the time being. Let's get the pinctrl 
driver merged first and then investigate Exynos4x12 support in it.

Best regards,
-- 
Tomasz Figa
Samsung Poland RD Center

--
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] ARM: EXYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx

2012-08-28 Thread Tomasz Figa
The GPEx gpios are specific to Exynos4210 and do not exist on Exynos4x12.
Redefine them to use the exact SoC name.

Based on ARM: EXYYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx by
Joonyoung Shim, see:
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/100738.html

Signed-off-by: Tomasz Figa t.f...@samsung.com
---
 arch/arm/mach-exynos/include/mach/gpio.h   | 32 +++---
 arch/arm/mach-exynos/mach-nuri.c   | 16 +++
 arch/arm/mach-exynos/mach-origen.c |  6 +++---
 arch/arm/mach-exynos/mach-trats.c  |  4 ++--
 arch/arm/mach-exynos/mach-universal_c210.c | 32 +++---
 arch/arm/mach-exynos/setup-fimc.c  |  4 ++--
 drivers/gpio/gpio-samsung.c| 20 +--
 7 files changed, 57 insertions(+), 57 deletions(-)

diff --git a/arch/arm/mach-exynos/include/mach/gpio.h 
b/arch/arm/mach-exynos/include/mach/gpio.h
index eb24f1e..21c9bf1 100644
--- a/arch/arm/mach-exynos/include/mach/gpio.h
+++ b/arch/arm/mach-exynos/include/mach/gpio.h
@@ -26,11 +26,11 @@
 #define EXYNOS4_GPIO_C1_NR (5)
 #define EXYNOS4_GPIO_D0_NR (4)
 #define EXYNOS4_GPIO_D1_NR (4)
-#define EXYNOS4_GPIO_E0_NR (5)
-#define EXYNOS4_GPIO_E1_NR (8)
-#define EXYNOS4_GPIO_E2_NR (6)
-#define EXYNOS4_GPIO_E3_NR (8)
-#define EXYNOS4_GPIO_E4_NR (8)
+#define EXYNOS4210_GPIO_E0_NR  (5)
+#define EXYNOS4210_GPIO_E1_NR  (8)
+#define EXYNOS4210_GPIO_E2_NR  (6)
+#define EXYNOS4210_GPIO_E3_NR  (8)
+#define EXYNOS4210_GPIO_E4_NR  (8)
 #define EXYNOS4_GPIO_F0_NR (8)
 #define EXYNOS4_GPIO_F1_NR (8)
 #define EXYNOS4_GPIO_F2_NR (8)
@@ -67,12 +67,12 @@ enum exynos4_gpio_number {
EXYNOS4_GPIO_C1_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_C0),
EXYNOS4_GPIO_D0_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_C1),
EXYNOS4_GPIO_D1_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_D0),
-   EXYNOS4_GPIO_E0_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_D1),
-   EXYNOS4_GPIO_E1_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E0),
-   EXYNOS4_GPIO_E2_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E1),
-   EXYNOS4_GPIO_E3_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E2),
-   EXYNOS4_GPIO_E4_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E3),
-   EXYNOS4_GPIO_F0_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E4),
+   EXYNOS4210_GPIO_E0_START= EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_D1),
+   EXYNOS4210_GPIO_E1_START= EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E0),
+   EXYNOS4210_GPIO_E2_START= EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E1),
+   EXYNOS4210_GPIO_E3_START= EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E2),
+   EXYNOS4210_GPIO_E4_START= EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E3),
+   EXYNOS4_GPIO_F0_START   = EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E4),
EXYNOS4_GPIO_F1_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_F0),
EXYNOS4_GPIO_F2_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_F1),
EXYNOS4_GPIO_F3_START   = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_F2),
@@ -108,11 +108,11 @@ enum exynos4_gpio_number {
 #define EXYNOS4_GPC1(_nr)  (EXYNOS4_GPIO_C1_START + (_nr))
 #define EXYNOS4_GPD0(_nr)  (EXYNOS4_GPIO_D0_START + (_nr))
 #define EXYNOS4_GPD1(_nr)  (EXYNOS4_GPIO_D1_START + (_nr))
-#define EXYNOS4_GPE0(_nr)  (EXYNOS4_GPIO_E0_START + (_nr))
-#define EXYNOS4_GPE1(_nr)  (EXYNOS4_GPIO_E1_START + (_nr))
-#define EXYNOS4_GPE2(_nr)  (EXYNOS4_GPIO_E2_START + (_nr))
-#define EXYNOS4_GPE3(_nr)  (EXYNOS4_GPIO_E3_START + (_nr))
-#define EXYNOS4_GPE4(_nr)  (EXYNOS4_GPIO_E4_START + (_nr))
+#define EXYNOS4210_GPE0(_nr)   (EXYNOS4210_GPIO_E0_START + (_nr))
+#define EXYNOS4210_GPE1(_nr)   (EXYNOS4210_GPIO_E1_START + (_nr))
+#define EXYNOS4210_GPE2(_nr)   (EXYNOS4210_GPIO_E2_START + (_nr))
+#define EXYNOS4210_GPE3(_nr)   (EXYNOS4210_GPIO_E3_START + (_nr))
+#define EXYNOS4210_GPE4(_nr)   (EXYNOS4210_GPIO_E4_START + (_nr))
 #define EXYNOS4_GPF0(_nr)  (EXYNOS4_GPIO_F0_START + (_nr))
 #define EXYNOS4_GPF1(_nr)  (EXYNOS4_GPIO_F1_START + (_nr))
 #define EXYNOS4_GPF2(_nr)  (EXYNOS4_GPIO_F2_START + (_nr))
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c
index ea785fc..426bb79 100644
--- a/arch/arm/mach-exynos/mach-nuri.c
+++ b/arch/arm/mach-exynos/mach-nuri.c
@@ -268,7 +268,7 @@ static struct s3c_fb_platdata nuri_fb_pdata __initdata = {
 
 static void nuri_lcd_power_on(struct plat_lcd_data *pd, unsigned int power)
 {
-   int gpio = EXYNOS4_GPE1(5);
+   int gpio = EXYNOS4210_GPE1(5);
 
gpio_request(gpio, LVDS_nSHDN);
gpio_direction_output(gpio, power);
@@ -277,7 +277,7 @@ static void nuri_lcd_power_on(struct plat_lcd_data *pd, 
unsigned int power)
 
 static int nuri_bl_init(struct device *dev)
 {
-   return gpio_request_one(EXYNOS4_GPE2(3), GPIOF_OUT_INIT_LOW,
+   return gpio_request_one(EXYNOS4210_GPE2(3), GPIOF_OUT_INIT_LOW,
LCD_LD0_EN);
 }
 
@@ -286,14 +286,14 @@ static int nuri_bl_notify(struct 

Re: [PATCH 1/3] ARM: EXYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx

2012-08-28 Thread Thomas Abraham
On 28 August 2012 15:36, Tomasz Figa t.f...@samsung.com wrote:
 The GPEx gpios are specific to Exynos4210 and do not exist on Exynos4x12.
 Redefine them to use the exact SoC name.

 Based on ARM: EXYYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx by
 Joonyoung Shim, see:
 http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/100738.html

 Signed-off-by: Tomasz Figa t.f...@samsung.com
 ---
  arch/arm/mach-exynos/include/mach/gpio.h   | 32 
 +++---
  arch/arm/mach-exynos/mach-nuri.c   | 16 +++
  arch/arm/mach-exynos/mach-origen.c |  6 +++---
  arch/arm/mach-exynos/mach-trats.c  |  4 ++--
  arch/arm/mach-exynos/mach-universal_c210.c | 32 
 +++---
  arch/arm/mach-exynos/setup-fimc.c  |  4 ++--
  drivers/gpio/gpio-samsung.c| 20 +--
  7 files changed, 57 insertions(+), 57 deletions(-)

Reviewed-by: Thomas Abraham thomas.abra...@linaro.org

[...]
--
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/3] ARM: EXYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx

2012-08-28 Thread Kukjin Kim

On 08/28/12 03:06, Tomasz Figa wrote:

The GPEx gpios are specific to Exynos4210 and do not exist on Exynos4x12.
Redefine them to use the exact SoC name.

Based on ARM: EXYYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx by
Joonyoung Shim, see:
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/100738.html

Signed-off-by: Tomasz Figat.f...@samsung.com
---
  arch/arm/mach-exynos/include/mach/gpio.h   | 32 +++---
  arch/arm/mach-exynos/mach-nuri.c   | 16 +++
  arch/arm/mach-exynos/mach-origen.c |  6 +++---
  arch/arm/mach-exynos/mach-trats.c  |  4 ++--
  arch/arm/mach-exynos/mach-universal_c210.c | 32 +++---
  arch/arm/mach-exynos/setup-fimc.c  |  4 ++--
  drivers/gpio/gpio-samsung.c| 20 +--
  7 files changed, 57 insertions(+), 57 deletions(-)

diff --git a/arch/arm/mach-exynos/include/mach/gpio.h 
b/arch/arm/mach-exynos/include/mach/gpio.h
index eb24f1e..21c9bf1 100644
--- a/arch/arm/mach-exynos/include/mach/gpio.h
+++ b/arch/arm/mach-exynos/include/mach/gpio.h
@@ -26,11 +26,11 @@
  #define EXYNOS4_GPIO_C1_NR(5)
  #define EXYNOS4_GPIO_D0_NR(4)
  #define EXYNOS4_GPIO_D1_NR(4)
-#define EXYNOS4_GPIO_E0_NR (5)
-#define EXYNOS4_GPIO_E1_NR (8)
-#define EXYNOS4_GPIO_E2_NR (6)
-#define EXYNOS4_GPIO_E3_NR (8)
-#define EXYNOS4_GPIO_E4_NR (8)
+#define EXYNOS4210_GPIO_E0_NR  (5)
+#define EXYNOS4210_GPIO_E1_NR  (8)
+#define EXYNOS4210_GPIO_E2_NR  (6)
+#define EXYNOS4210_GPIO_E3_NR  (8)
+#define EXYNOS4210_GPIO_E4_NR  (8)


Please see my comments on Joonyoung Shim's previous patch...
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/101522.html

[...]

Thanks.

Best regards,
Kgene.
--
Kukjin Kim kgene@samsung.com, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
--
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/3] ARM: EXYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx

2012-08-28 Thread Kyungmin Park
On 8/29/12, Kukjin Kim kgene@samsung.com wrote:
 On 08/28/12 03:06, Tomasz Figa wrote:
 The GPEx gpios are specific to Exynos4210 and do not exist on Exynos4x12.
 Redefine them to use the exact SoC name.

 Based on ARM: EXYYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx by
 Joonyoung Shim, see:
 http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/100738.html

 Signed-off-by: Tomasz Figat.f...@samsung.com
 ---
   arch/arm/mach-exynos/include/mach/gpio.h   | 32
 +++---
   arch/arm/mach-exynos/mach-nuri.c   | 16 +++
   arch/arm/mach-exynos/mach-origen.c |  6 +++---
   arch/arm/mach-exynos/mach-trats.c  |  4 ++--
   arch/arm/mach-exynos/mach-universal_c210.c | 32
 +++---
   arch/arm/mach-exynos/setup-fimc.c  |  4 ++--
   drivers/gpio/gpio-samsung.c| 20 +--
   7 files changed, 57 insertions(+), 57 deletions(-)

 diff --git a/arch/arm/mach-exynos/include/mach/gpio.h
 b/arch/arm/mach-exynos/include/mach/gpio.h
 index eb24f1e..21c9bf1 100644
 --- a/arch/arm/mach-exynos/include/mach/gpio.h
 +++ b/arch/arm/mach-exynos/include/mach/gpio.h
 @@ -26,11 +26,11 @@
   #define EXYNOS4_GPIO_C1_NR (5)
   #define EXYNOS4_GPIO_D0_NR (4)
   #define EXYNOS4_GPIO_D1_NR (4)
 -#define EXYNOS4_GPIO_E0_NR  (5)
 -#define EXYNOS4_GPIO_E1_NR  (8)
 -#define EXYNOS4_GPIO_E2_NR  (6)
 -#define EXYNOS4_GPIO_E3_NR  (8)
 -#define EXYNOS4_GPIO_E4_NR  (8)
 +#define EXYNOS4210_GPIO_E0_NR   (5)
 +#define EXYNOS4210_GPIO_E1_NR   (8)
 +#define EXYNOS4210_GPIO_E2_NR   (6)
 +#define EXYNOS4210_GPIO_E3_NR   (8)
 +#define EXYNOS4210_GPIO_E4_NR   (8)

 Please see my comments on Joonyoung Shim's previous patch...
 http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/101522.html

It's perference issue. some person like this style. others doesn't.
Moreever vender, System LSI, provided codes have whole different style.
It lists up whole gpios for each SoCs.

EXYNOS4210_{A0,  Z}
EXYNOS4412_{A0,  V4}
EXYNOS5250_{A0,  Z}

anyway, just remain it as broken, and try to use pinctl as Thomas mentioned.

Thank you,
Kyungmin Park


 [...]

 Thanks.

 Best regards,
 Kgene.
 --
 Kukjin Kim kgene@samsung.com, Senior Engineer,
 SW Solution Development Team, Samsung Electronics Co., Ltd.
 --
 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

--
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