aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@sang-engineering.com>2014-02-23 07:38:12 -0500
committerLinus Walleij <linus.walleij@linaro.org>2014-02-25 04:49:15 -0500
commit6787141361dc77b5d55bf58760029f846244ba3a (patch)
treeaf548e20ddbd1ac148457f02598eb9f9d93fd33e /drivers/pinctrl/sh-pfc/pfc-r8a7791.c
parent8af584b8683640fef9deb317e166a0aa0ebae151 (diff)
pinctrl: pfc: r8a7791: add mux data for IIC(B) cores
Signed-off-by: Wolfram Sang <wsa@sang-engineering.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7791.c')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7791.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
index 2a64589b5dc4..7ac8d7fca91b 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
@@ -1943,6 +1943,50 @@ static const unsigned int i2c4_c_pins[] = {
1943static const unsigned int i2c4_c_mux[] = { 1943static const unsigned int i2c4_c_mux[] = {
1944 SCL4_C_MARK, SDA4_C_MARK, 1944 SCL4_C_MARK, SDA4_C_MARK,
1945}; 1945};
1946/* - I2C7 ------------------------------------------------------------------- */
1947static const unsigned int i2c7_pins[] = {
1948 /* SCL, SDA */
1949 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
1950};
1951static const unsigned int i2c7_mux[] = {
1952 SCL7_MARK, SDA7_MARK,
1953};
1954static const unsigned int i2c7_b_pins[] = {
1955 /* SCL, SDA */
1956 RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3),
1957};
1958static const unsigned int i2c7_b_mux[] = {
1959 SCL7_B_MARK, SDA7_B_MARK,
1960};
1961static const unsigned int i2c7_c_pins[] = {
1962 /* SCL, SDA */
1963 RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
1964};
1965static const unsigned int i2c7_c_mux[] = {
1966 SCL7_C_MARK, SDA7_C_MARK,
1967};
1968/* - I2C8 ------------------------------------------------------------------- */
1969static const unsigned int i2c8_pins[] = {
1970 /* SCL, SDA */
1971 RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
1972};
1973static const unsigned int i2c8_mux[] = {
1974 SCL8_MARK, SDA8_MARK,
1975};
1976static const unsigned int i2c8_b_pins[] = {
1977 /* SCL, SDA */
1978 RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5),
1979};
1980static const unsigned int i2c8_b_mux[] = {
1981 SCL8_B_MARK, SDA8_B_MARK,
1982};
1983static const unsigned int i2c8_c_pins[] = {
1984 /* SCL, SDA */
1985 RCAR_GP_PIN(6, 22), RCAR_GP_PIN(6, 23),
1986};
1987static const unsigned int i2c8_c_mux[] = {
1988 SCL8_C_MARK, SDA8_C_MARK,
1989};
1946/* - INTC ------------------------------------------------------------------- */ 1990/* - INTC ------------------------------------------------------------------- */
1947static const unsigned int intc_irq0_pins[] = { 1991static const unsigned int intc_irq0_pins[] = {
1948 /* IRQ */ 1992 /* IRQ */
@@ -3170,6 +3214,12 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
3170 SH_PFC_PIN_GROUP(i2c4), 3214 SH_PFC_PIN_GROUP(i2c4),
3171 SH_PFC_PIN_GROUP(i2c4_b), 3215 SH_PFC_PIN_GROUP(i2c4_b),
3172 SH_PFC_PIN_GROUP(i2c4_c), 3216 SH_PFC_PIN_GROUP(i2c4_c),
3217 SH_PFC_PIN_GROUP(i2c7),
3218 SH_PFC_PIN_GROUP(i2c7_b),
3219 SH_PFC_PIN_GROUP(i2c7_c),
3220 SH_PFC_PIN_GROUP(i2c8),
3221 SH_PFC_PIN_GROUP(i2c8_b),
3222 SH_PFC_PIN_GROUP(i2c8_c),
3173 SH_PFC_PIN_GROUP(intc_irq0), 3223 SH_PFC_PIN_GROUP(intc_irq0),
3174 SH_PFC_PIN_GROUP(intc_irq1), 3224 SH_PFC_PIN_GROUP(intc_irq1),
3175 SH_PFC_PIN_GROUP(intc_irq2), 3225 SH_PFC_PIN_GROUP(intc_irq2),
@@ -3388,6 +3438,18 @@ static const char * const i2c4_groups[] = {
3388 "i2c4_c", 3438 "i2c4_c",
3389}; 3439};
3390 3440
3441static const char * const i2c7_groups[] = {
3442 "i2c7",
3443 "i2c7_b",
3444 "i2c7_c",
3445};
3446
3447static const char * const i2c8_groups[] = {
3448 "i2c8",
3449 "i2c8_b",
3450 "i2c8_c",
3451};
3452
3391static const char * const intc_groups[] = { 3453static const char * const intc_groups[] = {
3392 "intc_irq0", 3454 "intc_irq0",
3393 "intc_irq1", 3455 "intc_irq1",
@@ -3628,6 +3690,8 @@ static const struct sh_pfc_function pinmux_functions[] = {
3628 SH_PFC_FUNCTION(i2c2), 3690 SH_PFC_FUNCTION(i2c2),
3629 SH_PFC_FUNCTION(i2c3), 3691 SH_PFC_FUNCTION(i2c3),
3630 SH_PFC_FUNCTION(i2c4), 3692 SH_PFC_FUNCTION(i2c4),
3693 SH_PFC_FUNCTION(i2c7),
3694 SH_PFC_FUNCTION(i2c8),
3631 SH_PFC_FUNCTION(intc), 3695 SH_PFC_FUNCTION(intc),
3632 SH_PFC_FUNCTION(mmc), 3696 SH_PFC_FUNCTION(mmc),
3633 SH_PFC_FUNCTION(msiof0), 3697 SH_PFC_FUNCTION(msiof0),