Skip to contentSkip to conversation

ARM: mach-shmobile: sh73a0 GPIO pullup improvement

PATCH New Magnus Damm 1 participant 1 message Dec 22, 2010

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: mach-shmobile: sh73a0 GPIO pullup improvement

From: Takashi YOSHII <[email protected]>

On SH-Mobile, Pull UP/Downs can be controlled independently from Function selectors (by lower nibble of PFCR). It means people may want to use GPIO_FN_xxx_PU/PD in addition to GPIO_IN_PU/PD which is currently supported.
This patch adds pull-up version for some input signals on KEYSC, MMC, FSIA as well as SDHI1.

---

 arch/arm/mach-shmobile/include/mach/sh73a0.h |   21 ++++++
 arch/arm/mach-shmobile/pfc-sh73a0.c          |   85 +++++++++++++++++++++++---
 2 files changed, 97 insertions(+), 9 deletions(-)
arch/arm/mach-shmobile/include/mach/sh73a0.h +21 -0
@@ -441,6 +441,27 @@ enum {
 	GPIO_FN_RESETA_N_PU_OFF,
 	GPIO_FN_EDBGREQ_PD,
 	GPIO_FN_EDBGREQ_PU,
+
+	/* Functions with pull-ups */
+	GPIO_FN_KEYIN0_PU,
+	GPIO_FN_KEYIN1_PU,
+	GPIO_FN_KEYIN2_PU,
+	GPIO_FN_KEYIN3_PU,
+	GPIO_FN_KEYIN4_PU,
+	GPIO_FN_KEYIN5_PU,
+	GPIO_FN_KEYIN6_PU,
+	GPIO_FN_KEYIN7_PU,
+	GPIO_FN_SDHID1_0_PU,
+	GPIO_FN_SDHID1_1_PU,
+	GPIO_FN_SDHID1_2_PU,
+	GPIO_FN_SDHID1_3_PU,
+	GPIO_FN_SDHICMD1_PU,
+	GPIO_FN_MMCCMD0_PU,
+	GPIO_FN_MMCCMD1_PU,
+	GPIO_FN_FSIACK_PU,
+	GPIO_FN_FSIAILR_PU,
+	GPIO_FN_FSIAIBT_PU,
+	GPIO_FN_FSIAISLD_PU,
 };
 
 #endif /* __ASM_SH73A0_H__ */
arch/arm/mach-shmobile/pfc-sh73a0.c +76 -9

127 lines not on this page · raw message