ARM: mach-shmobile: sh73a0 GPIO pullup improvement
Magnus Damm
maintainerPATCH 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.
Signed-off-by Takashi YOSHII <[email protected]>
Signed-off-by Magnus Damm <[email protected]>
---
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