aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-11 20:55:08 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-15 08:34:06 -0400
commit512b156cefb2931a483ff3dd25852d122230894a (patch)
tree707d6268ed6e924adf391ec919a3b6382175faae /drivers/pinctrl
parenta6aa1c7b0ac6a57dac5855c64316057771f186e4 (diff)
sh-pfc: sh73a0: Add IrDA pin groups and functions
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh73a0.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh73a0.c b/drivers/pinctrl/sh-pfc/pfc-sh73a0.c
index 61c682aa38ef..8fc5eb0025c5 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh73a0.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh73a0.c
@@ -2169,6 +2169,21 @@ static const unsigned int i2c3_2_pins[] = {
2169static const unsigned int i2c3_2_mux[] = { 2169static const unsigned int i2c3_2_mux[] = {
2170 PORT115_I2C_SCL3_MARK, PORT116_I2C_SDA3_MARK, 2170 PORT115_I2C_SCL3_MARK, PORT116_I2C_SDA3_MARK,
2171}; 2171};
2172/* - IrDA ------------------------------------------------------------------- */
2173static const unsigned int irda_0_pins[] = {
2174 /* OUT, IN, FIRSEL */
2175 241, 242, 243,
2176};
2177static const unsigned int irda_0_mux[] = {
2178 PORT241_IRDA_OUT_MARK, PORT242_IRDA_IN_MARK, PORT243_IRDA_FIRSEL_MARK,
2179};
2180static const unsigned int irda_1_pins[] = {
2181 /* OUT, IN, FIRSEL */
2182 49, 53, 54,
2183};
2184static const unsigned int irda_1_mux[] = {
2185 PORT49_IRDA_OUT_MARK, PORT53_IRDA_IN_MARK, PORT54_IRDA_FIRSEL_MARK,
2186};
2172/* - KEYSC ------------------------------------------------------------------ */ 2187/* - KEYSC ------------------------------------------------------------------ */
2173static const unsigned int keysc_in5_pins[] = { 2188static const unsigned int keysc_in5_pins[] = {
2174 /* KEYIN[0:4] */ 2189 /* KEYIN[0:4] */
@@ -2963,6 +2978,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
2963 SH_PFC_PIN_GROUP(i2c3_0), 2978 SH_PFC_PIN_GROUP(i2c3_0),
2964 SH_PFC_PIN_GROUP(i2c3_1), 2979 SH_PFC_PIN_GROUP(i2c3_1),
2965 SH_PFC_PIN_GROUP(i2c3_2), 2980 SH_PFC_PIN_GROUP(i2c3_2),
2981 SH_PFC_PIN_GROUP(irda_0),
2982 SH_PFC_PIN_GROUP(irda_1),
2966 SH_PFC_PIN_GROUP(keysc_in5), 2983 SH_PFC_PIN_GROUP(keysc_in5),
2967 SH_PFC_PIN_GROUP(keysc_in6), 2984 SH_PFC_PIN_GROUP(keysc_in6),
2968 SH_PFC_PIN_GROUP(keysc_in7), 2985 SH_PFC_PIN_GROUP(keysc_in7),
@@ -3125,6 +3142,11 @@ static const char * const i2c3_groups[] = {
3125 "i2c3_2", 3142 "i2c3_2",
3126}; 3143};
3127 3144
3145static const char * const irda_groups[] = {
3146 "irda_0",
3147 "irda_1",
3148};
3149
3128static const char * const keysc_groups[] = { 3150static const char * const keysc_groups[] = {
3129 "keysc_in5", 3151 "keysc_in5",
3130 "keysc_in6", 3152 "keysc_in6",
@@ -3280,6 +3302,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
3280 SH_PFC_FUNCTION(fsid), 3302 SH_PFC_FUNCTION(fsid),
3281 SH_PFC_FUNCTION(i2c2), 3303 SH_PFC_FUNCTION(i2c2),
3282 SH_PFC_FUNCTION(i2c3), 3304 SH_PFC_FUNCTION(i2c3),
3305 SH_PFC_FUNCTION(irda),
3283 SH_PFC_FUNCTION(keysc), 3306 SH_PFC_FUNCTION(keysc),
3284 SH_PFC_FUNCTION(lcd), 3307 SH_PFC_FUNCTION(lcd),
3285 SH_PFC_FUNCTION(lcd2), 3308 SH_PFC_FUNCTION(lcd2),