Skip to contentSkip to conversation

ARM: S5PC210: Define more GPIOs to use the MP pins

PATCH New Kyungmin Park 2 participants 2 messages Aug 2, 2010 – Aug 20, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: S5PC210: Define more GPIOs to use the MP pins

From: Kyungmin Park <[email protected]>

Note that these pins can't support the interrupt. Only use to input/output.

---
 arch/arm/mach-s5pv310/include/mach/gpio.h |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
arch/arm/mach-s5pv310/include/mach/gpio.h +13 -1
index 3f751f2..a840d83 100644
@@ -55,6 +55,10 @@
 #define S5PV310_GPIO_X2_NR	(8)
 #define S5PV310_GPIO_X3_NR	(8)
 #define S5PV310_GPIO_Z_NR	(7)
+#define S5PV310_GPIO_MP01_NR	(8)
+#define S5PV310_GPIO_MP02_NR	(4)
+#define S5PV310_GPIO_MP03_NR	(8)
+#define S5PV310_GPIO_MP04_NR	(8)
 
 /* GPIO bank numbers */
 
@@ -92,6 +96,10 @@ enum s5p_gpio_number {
 	S5PV310_GPIO_X2_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_X1),
 	S5PV310_GPIO_X3_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_X2),
 	S5PV310_GPIO_Z_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_X3),
+	S5PV310_GPIO_MP01_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_Z),
+	S5PV310_GPIO_MP02_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_MP01),
+	S5PV310_GPIO_MP03_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_MP02),
+	S5PV310_GPIO_MP04_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_MP03),
 };
 
 /* S5PV310 GPIO number definitions */
@@ -125,9 +133,13 @@ enum s5p_gpio_number {
 #define S5PV310_GPX2(_nr)	(S5PV310_GPIO_X2_START + (_nr))
 #define S5PV310_GPX3(_nr)	(S5PV310_GPIO_X3_START + (_nr))
 #define S5PV310_GPZ(_nr)	(S5PV310_GPIO_Z_START + (_nr))
+#define S5PV310_MP01(_nr)	(S5PV310_GPIO_MP01_START + (_nr))
+#define S5PV310_MP02(_nr)	(S5PV310_GPIO_MP02_START + (_nr))
+#define S5PV310_MP03(_nr)	(S5PV310_GPIO_MP03_START + (_nr))
+#define S5PV310_MP04(_nr)	(S5PV310_GPIO_MP04_START + (_nr))
 
 /* the end of the S5PV310 specific gpios */
-#define S5PV310_GPIO_END	(S5PV310_GPZ(S5PV310_GPIO_Z_NR) + 1)
+#define S5PV310_GPIO_END	(S5PV310_MP04(S5PV310_GPIO_MP04_NR) + 1)
 #define S3C_GPIO_END		S5PV310_GPIO_END
 
 /* define the number of gpios we need to the one after the GPZ() range */
Signature · 1 line
1.5.3.3
#1 lore raw

PATCH 1/1 ARM: S5PC210: Define more GPIOs to use the MP pins

Quoted 3 lines · Kyungmin Park

From: Kyungmin Park <[email protected]>

Hi ;-)

Quoted 1 line

Note that these pins can't support the interrupt. Only use to

input/output.

Quoted 12 lines
---
 arch/arm/mach-s5pv310/include/mach/gpio.h |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/gpio.h +0 -0

s5pv310/include/mach/gpio.h
index 3f751f2..a840d83 100644

arch/arm/mach-s5pv310/include/mach/gpio.h line 57

Quoted 3 lines
arch/arm/mach-s5pv310/include/mach/gpio.h +0 -0
@@ -55,6 +55,10 @@
 #define S5PV310_GPIO_X2_NR	(8)
 #define S5PV310_GPIO_X3_NR	(8)
 #define S5PV310_GPIO_Z_NR	(7)

MP00 ?

arch/arm/mach-s5pv310/include/mach/gpio.h line 58

Quoted 1 line
arch/arm/mach-s5pv310/include/mach/gpio.h +1 -0
+#define S5PV310_GPIO_MP01_NR	(8)

Should be 4.

arch/arm/mach-s5pv310/include/mach/gpio.h line 59

Quoted 1 line
arch/arm/mach-s5pv310/include/mach/gpio.h +1 -0
+#define S5PV310_GPIO_MP02_NR	(4)

Should be 6.

Quoted 37 lines
arch/arm/mach-s5pv310/include/mach/gpio.h +4 -0
+#define S5PV310_GPIO_MP03_NR	(8)
+#define S5PV310_GPIO_MP04_NR	(8)
 
 /* GPIO bank numbers */
 
@@ -92,6 +96,10 @@ enum s5p_gpio_number {
 	S5PV310_GPIO_X2_START	=
 S5PV310_GPIO_NEXT(S5PV310_GPIO_X1),
 	S5PV310_GPIO_X3_START	=
 S5PV310_GPIO_NEXT(S5PV310_GPIO_X2),
 	S5PV310_GPIO_Z_START	= S5PV310_GPIO_NEXT(S5PV310_GPIO_X3),
+	S5PV310_GPIO_MP01_START	=
 S5PV310_GPIO_NEXT(S5PV310_GPIO_Z),
+	S5PV310_GPIO_MP02_START	=

S5PV310_GPIO_NEXT(S5PV310_GPIO_MP01),

arch/arm/mach-s5pv310/include/mach/gpio.h +1 -0
+	S5PV310_GPIO_MP03_START	=

S5PV310_GPIO_NEXT(S5PV310_GPIO_MP02),

arch/arm/mach-s5pv310/include/mach/gpio.h +1 -0
+	S5PV310_GPIO_MP04_START	=

S5PV310_GPIO_NEXT(S5PV310_GPIO_MP03),
};

/* S5PV310 GPIO number definitions */

arch/arm/mach-s5pv310/include/mach/gpio.h +5 -1
@@ -125,9 +133,13 @@ enum s5p_gpio_number {
 #define S5PV310_GPX2(_nr)	(S5PV310_GPIO_X2_START + (_nr))
 #define S5PV310_GPX3(_nr)	(S5PV310_GPIO_X3_START + (_nr))
 #define S5PV310_GPZ(_nr)	(S5PV310_GPIO_Z_START + (_nr))
+#define S5PV310_MP01(_nr)	(S5PV310_GPIO_MP01_START + (_nr))
+#define S5PV310_MP02(_nr)	(S5PV310_GPIO_MP02_START + (_nr))
+#define S5PV310_MP03(_nr)	(S5PV310_GPIO_MP03_START + (_nr))
+#define S5PV310_MP04(_nr)	(S5PV310_GPIO_MP04_START + (_nr))
 
 /* the end of the S5PV310 specific gpios */
-#define S5PV310_GPIO_END	(S5PV310_GPZ(S5PV310_GPIO_Z_NR) + 1)
+#define S5PV310_GPIO_END	(S5PV310_MP04(S5PV310_GPIO_MP04_NR) +
 1)
 #define S3C_GPIO_END		S5PV310_GPIO_END
 
Quoted 1 line

/* define the number of gpios we need to the one after the GPZ() range */

Should be MP04() in comment.
And...ARCH_NR_GPIOS should be changed together.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.