Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
Linus Walleij
67871413 8af584b8

+64
+64
drivers/pinctrl/sh-pfc/pfc-r8a7791.c
··· 1943 1943 static const unsigned int i2c4_c_mux[] = { 1944 1944 SCL4_C_MARK, SDA4_C_MARK, 1945 1945 }; 1946 + /* - I2C7 ------------------------------------------------------------------- */ 1947 + static const unsigned int i2c7_pins[] = { 1948 + /* SCL, SDA */ 1949 + RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16), 1950 + }; 1951 + static const unsigned int i2c7_mux[] = { 1952 + SCL7_MARK, SDA7_MARK, 1953 + }; 1954 + static const unsigned int i2c7_b_pins[] = { 1955 + /* SCL, SDA */ 1956 + RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3), 1957 + }; 1958 + static const unsigned int i2c7_b_mux[] = { 1959 + SCL7_B_MARK, SDA7_B_MARK, 1960 + }; 1961 + static const unsigned int i2c7_c_pins[] = { 1962 + /* SCL, SDA */ 1963 + RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29), 1964 + }; 1965 + static const unsigned int i2c7_c_mux[] = { 1966 + SCL7_C_MARK, SDA7_C_MARK, 1967 + }; 1968 + /* - I2C8 ------------------------------------------------------------------- */ 1969 + static const unsigned int i2c8_pins[] = { 1970 + /* SCL, SDA */ 1971 + RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14), 1972 + }; 1973 + static const unsigned int i2c8_mux[] = { 1974 + SCL8_MARK, SDA8_MARK, 1975 + }; 1976 + static const unsigned int i2c8_b_pins[] = { 1977 + /* SCL, SDA */ 1978 + RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5), 1979 + }; 1980 + static const unsigned int i2c8_b_mux[] = { 1981 + SCL8_B_MARK, SDA8_B_MARK, 1982 + }; 1983 + static const unsigned int i2c8_c_pins[] = { 1984 + /* SCL, SDA */ 1985 + RCAR_GP_PIN(6, 22), RCAR_GP_PIN(6, 23), 1986 + }; 1987 + static const unsigned int i2c8_c_mux[] = { 1988 + SCL8_C_MARK, SDA8_C_MARK, 1989 + }; 1946 1990 /* - INTC ------------------------------------------------------------------- */ 1947 1991 static const unsigned int intc_irq0_pins[] = { 1948 1992 /* IRQ */ ··· 3214 3170 SH_PFC_PIN_GROUP(i2c4), 3215 3171 SH_PFC_PIN_GROUP(i2c4_b), 3216 3172 SH_PFC_PIN_GROUP(i2c4_c), 3173 + SH_PFC_PIN_GROUP(i2c7), 3174 + SH_PFC_PIN_GROUP(i2c7_b), 3175 + SH_PFC_PIN_GROUP(i2c7_c), 3176 + SH_PFC_PIN_GROUP(i2c8), 3177 + SH_PFC_PIN_GROUP(i2c8_b), 3178 + SH_PFC_PIN_GROUP(i2c8_c), 3217 3179 SH_PFC_PIN_GROUP(intc_irq0), 3218 3180 SH_PFC_PIN_GROUP(intc_irq1), 3219 3181 SH_PFC_PIN_GROUP(intc_irq2), ··· 3436 3386 "i2c4", 3437 3387 "i2c4_b", 3438 3388 "i2c4_c", 3389 + }; 3390 + 3391 + static const char * const i2c7_groups[] = { 3392 + "i2c7", 3393 + "i2c7_b", 3394 + "i2c7_c", 3395 + }; 3396 + 3397 + static const char * const i2c8_groups[] = { 3398 + "i2c8", 3399 + "i2c8_b", 3400 + "i2c8_c", 3439 3401 }; 3440 3402 3441 3403 static const char * const intc_groups[] = { ··· 3690 3628 SH_PFC_FUNCTION(i2c2), 3691 3629 SH_PFC_FUNCTION(i2c3), 3692 3630 SH_PFC_FUNCTION(i2c4), 3631 + SH_PFC_FUNCTION(i2c7), 3632 + SH_PFC_FUNCTION(i2c8), 3693 3633 SH_PFC_FUNCTION(intc), 3694 3634 SH_PFC_FUNCTION(mmc), 3695 3635 SH_PFC_FUNCTION(msiof0),