diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-01-03 07:07:05 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:34:05 -0400 |
commit | ec3a57bb3b69a2af0f136872105335ec965cdd98 (patch) | |
tree | b6fccde62a464736aabd731363220c2ca2c2fa94 /drivers/pinctrl | |
parent | 64d87acb278fe90dbe5c69d7b1242eaf670ccc46 (diff) |
sh-pfc: sh73a0: Add I2C2 and I2C3 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.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh73a0.c b/drivers/pinctrl/sh-pfc/pfc-sh73a0.c index 4b0a34958fdb..fad11d7a7dde 100644 --- a/drivers/pinctrl/sh-pfc/pfc-sh73a0.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh73a0.c | |||
@@ -1846,6 +1846,50 @@ static const struct pinmux_range pinmux_ranges[] = { | |||
1846 | {.begin = 288, .end = 309,}, | 1846 | {.begin = 288, .end = 309,}, |
1847 | }; | 1847 | }; |
1848 | 1848 | ||
1849 | /* - I2C2 ------------------------------------------------------------------- */ | ||
1850 | static const unsigned int i2c2_0_pins[] = { | ||
1851 | /* SCL, SDA */ | ||
1852 | 237, 236, | ||
1853 | }; | ||
1854 | static const unsigned int i2c2_0_mux[] = { | ||
1855 | PORT237_I2C_SCL2_MARK, PORT236_I2C_SDA2_MARK, | ||
1856 | }; | ||
1857 | static const unsigned int i2c2_1_pins[] = { | ||
1858 | /* SCL, SDA */ | ||
1859 | 27, 28, | ||
1860 | }; | ||
1861 | static const unsigned int i2c2_1_mux[] = { | ||
1862 | PORT27_I2C_SCL2_MARK, PORT28_I2C_SDA2_MARK, | ||
1863 | }; | ||
1864 | static const unsigned int i2c2_2_pins[] = { | ||
1865 | /* SCL, SDA */ | ||
1866 | 115, 116, | ||
1867 | }; | ||
1868 | static const unsigned int i2c2_2_mux[] = { | ||
1869 | PORT115_I2C_SCL2_MARK, PORT116_I2C_SDA2_MARK, | ||
1870 | }; | ||
1871 | /* - I2C3 ------------------------------------------------------------------- */ | ||
1872 | static const unsigned int i2c3_0_pins[] = { | ||
1873 | /* SCL, SDA */ | ||
1874 | 248, 249, | ||
1875 | }; | ||
1876 | static const unsigned int i2c3_0_mux[] = { | ||
1877 | PORT248_I2C_SCL3_MARK, PORT249_I2C_SDA3_MARK, | ||
1878 | }; | ||
1879 | static const unsigned int i2c3_1_pins[] = { | ||
1880 | /* SCL, SDA */ | ||
1881 | 27, 28, | ||
1882 | }; | ||
1883 | static const unsigned int i2c3_1_mux[] = { | ||
1884 | PORT27_I2C_SCL3_MARK, PORT28_I2C_SDA3_MARK, | ||
1885 | }; | ||
1886 | static const unsigned int i2c3_2_pins[] = { | ||
1887 | /* SCL, SDA */ | ||
1888 | 115, 116, | ||
1889 | }; | ||
1890 | static const unsigned int i2c3_2_mux[] = { | ||
1891 | PORT115_I2C_SCL3_MARK, PORT116_I2C_SDA3_MARK, | ||
1892 | }; | ||
1849 | /* - LCD -------------------------------------------------------------------- */ | 1893 | /* - LCD -------------------------------------------------------------------- */ |
1850 | static const unsigned int lcd_data8_pins[] = { | 1894 | static const unsigned int lcd_data8_pins[] = { |
1851 | /* D[0:7] */ | 1895 | /* D[0:7] */ |
@@ -2289,6 +2333,12 @@ static const unsigned int scifb_ctrl_1_mux[] = { | |||
2289 | }; | 2333 | }; |
2290 | 2334 | ||
2291 | static const struct sh_pfc_pin_group pinmux_groups[] = { | 2335 | static const struct sh_pfc_pin_group pinmux_groups[] = { |
2336 | SH_PFC_PIN_GROUP(i2c2_0), | ||
2337 | SH_PFC_PIN_GROUP(i2c2_1), | ||
2338 | SH_PFC_PIN_GROUP(i2c2_2), | ||
2339 | SH_PFC_PIN_GROUP(i2c3_0), | ||
2340 | SH_PFC_PIN_GROUP(i2c3_1), | ||
2341 | SH_PFC_PIN_GROUP(i2c3_2), | ||
2292 | SH_PFC_PIN_GROUP(lcd_data8), | 2342 | SH_PFC_PIN_GROUP(lcd_data8), |
2293 | SH_PFC_PIN_GROUP(lcd_data9), | 2343 | SH_PFC_PIN_GROUP(lcd_data9), |
2294 | SH_PFC_PIN_GROUP(lcd_data12), | 2344 | SH_PFC_PIN_GROUP(lcd_data12), |
@@ -2345,6 +2395,18 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
2345 | SH_PFC_PIN_GROUP(scifb_ctrl_1), | 2395 | SH_PFC_PIN_GROUP(scifb_ctrl_1), |
2346 | }; | 2396 | }; |
2347 | 2397 | ||
2398 | static const char * const i2c2_groups[] = { | ||
2399 | "i2c2_0", | ||
2400 | "i2c2_1", | ||
2401 | "i2c2_2", | ||
2402 | }; | ||
2403 | |||
2404 | static const char * const i2c3_groups[] = { | ||
2405 | "i2c3_0", | ||
2406 | "i2c3_1", | ||
2407 | "i2c3_2", | ||
2408 | }; | ||
2409 | |||
2348 | static const char * const lcd_groups[] = { | 2410 | static const char * const lcd_groups[] = { |
2349 | "lcd_data8", | 2411 | "lcd_data8", |
2350 | "lcd_data9", | 2412 | "lcd_data9", |
@@ -2433,6 +2495,8 @@ static const char * const scifb_groups[] = { | |||
2433 | }; | 2495 | }; |
2434 | 2496 | ||
2435 | static const struct sh_pfc_function pinmux_functions[] = { | 2497 | static const struct sh_pfc_function pinmux_functions[] = { |
2498 | SH_PFC_FUNCTION(i2c2), | ||
2499 | SH_PFC_FUNCTION(i2c3), | ||
2436 | SH_PFC_FUNCTION(lcd), | 2500 | SH_PFC_FUNCTION(lcd), |
2437 | SH_PFC_FUNCTION(lcd2), | 2501 | SH_PFC_FUNCTION(lcd2), |
2438 | SH_PFC_FUNCTION(scifa0), | 2502 | SH_PFC_FUNCTION(scifa0), |