aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sirf
diff options
context:
space:
mode:
authorQipan Li <Qipan.Li@csr.com>2014-01-02 21:59:22 -0500
committerLinus Walleij <linus.walleij@linaro.org>2014-01-08 04:48:38 -0500
commit6225633d7154f6ce005e389ef0a80ee2cc644608 (patch)
tree52d5c6dc9b0bd5e8e40aa561e3009e4552a68b2e /drivers/pinctrl/sirf
parentb6a32a28cd6c99cd13ce6e72fcd7080e76c7e259 (diff)
pinctrl: sirf: add lost usp1_uart_nostreamctrl group for atlas6
commit af614b2301f0e304 adds lost USP-based UART pin groups for prima2, but missed usp1_uart_nostreamctrl group for atlas6, this patch fixes it. this makes USP(Universal Serial Ports) port1 can work as uart without stream ctrl. Signed-off-by: Qipan Li <Qipan.Li@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sirf')
-rw-r--r--drivers/pinctrl/sirf/pinctrl-atlas6.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/pinctrl/sirf/pinctrl-atlas6.c b/drivers/pinctrl/sirf/pinctrl-atlas6.c
index 8ab7898d21be..2b9f32065920 100644
--- a/drivers/pinctrl/sirf/pinctrl-atlas6.c
+++ b/drivers/pinctrl/sirf/pinctrl-atlas6.c
@@ -562,6 +562,23 @@ static const struct sirfsoc_padmux usp1_padmux = {
562 562
563static const unsigned usp1_pins[] = { 15, 43, 44, 45, 46 }; 563static const unsigned usp1_pins[] = { 15, 43, 44, 45, 46 };
564 564
565static const struct sirfsoc_muxmask usp1_uart_nostreamctrl_muxmask[] = {
566 {
567 .group = 1,
568 .mask = BIT(12) | BIT(13),
569 },
570};
571
572static const struct sirfsoc_padmux usp1_uart_nostreamctrl_padmux = {
573 .muxmask_counts = ARRAY_SIZE(usp1_uart_nostreamctrl_muxmask),
574 .muxmask = usp1_uart_nostreamctrl_muxmask,
575 .ctrlreg = SIRFSOC_RSC_PIN_MUX,
576 .funcmask = BIT(16),
577 .funcval = BIT(16),
578};
579
580static const unsigned usp1_uart_nostreamctrl_pins[] = { 44, 45 };
581
565static const struct sirfsoc_muxmask nand_muxmask[] = { 582static const struct sirfsoc_muxmask nand_muxmask[] = {
566 { 583 {
567 .group = 2, 584 .group = 2,
@@ -889,6 +906,8 @@ static const struct sirfsoc_pin_group sirfsoc_pin_groups[] = {
889 SIRFSOC_PIN_GROUP("usp0_uart_nostreamctrl_grp", 906 SIRFSOC_PIN_GROUP("usp0_uart_nostreamctrl_grp",
890 usp0_uart_nostreamctrl_pins), 907 usp0_uart_nostreamctrl_pins),
891 SIRFSOC_PIN_GROUP("usp1grp", usp1_pins), 908 SIRFSOC_PIN_GROUP("usp1grp", usp1_pins),
909 SIRFSOC_PIN_GROUP("usp1_uart_nostreamctrl_grp",
910 usp1_uart_nostreamctrl_pins),
892 SIRFSOC_PIN_GROUP("i2c0grp", i2c0_pins), 911 SIRFSOC_PIN_GROUP("i2c0grp", i2c0_pins),
893 SIRFSOC_PIN_GROUP("i2c1grp", i2c1_pins), 912 SIRFSOC_PIN_GROUP("i2c1grp", i2c1_pins),
894 SIRFSOC_PIN_GROUP("pwm0grp", pwm0_pins), 913 SIRFSOC_PIN_GROUP("pwm0grp", pwm0_pins),
@@ -935,6 +954,8 @@ static const char * const usp0_uart_nostreamctrl_grp[] = {
935 "usp0_uart_nostreamctrl_grp" }; 954 "usp0_uart_nostreamctrl_grp" };
936static const char * const usp0grp[] = { "usp0grp" }; 955static const char * const usp0grp[] = { "usp0grp" };
937static const char * const usp1grp[] = { "usp1grp" }; 956static const char * const usp1grp[] = { "usp1grp" };
957static const char * const usp1_uart_nostreamctrl_grp[] = {
958 "usp1_uart_nostreamctrl_grp" };
938static const char * const i2c0grp[] = { "i2c0grp" }; 959static const char * const i2c0grp[] = { "i2c0grp" };
939static const char * const i2c1grp[] = { "i2c1grp" }; 960static const char * const i2c1grp[] = { "i2c1grp" };
940static const char * const pwm0grp[] = { "pwm0grp" }; 961static const char * const pwm0grp[] = { "pwm0grp" };
@@ -983,6 +1004,9 @@ static const struct sirfsoc_pmx_func sirfsoc_pmx_functions[] = {
983 usp0_uart_nostreamctrl_grp, 1004 usp0_uart_nostreamctrl_grp,
984 usp0_uart_nostreamctrl_padmux), 1005 usp0_uart_nostreamctrl_padmux),
985 SIRFSOC_PMX_FUNCTION("usp1", usp1grp, usp1_padmux), 1006 SIRFSOC_PMX_FUNCTION("usp1", usp1grp, usp1_padmux),
1007 SIRFSOC_PMX_FUNCTION("usp1_uart_nostreamctrl",
1008 usp1_uart_nostreamctrl_grp,
1009 usp1_uart_nostreamctrl_padmux),
986 SIRFSOC_PMX_FUNCTION("i2c0", i2c0grp, i2c0_padmux), 1010 SIRFSOC_PMX_FUNCTION("i2c0", i2c0grp, i2c0_padmux),
987 SIRFSOC_PMX_FUNCTION("i2c1", i2c1grp, i2c1_padmux), 1011 SIRFSOC_PMX_FUNCTION("i2c1", i2c1grp, i2c1_padmux),
988 SIRFSOC_PMX_FUNCTION("pwm0", pwm0grp, pwm0_padmux), 1012 SIRFSOC_PMX_FUNCTION("pwm0", pwm0grp, pwm0_padmux),