History

pinctrl: ingenic: Add OTG VBUS pin for the JZ4770

Add pin mux configuration for the OTG VBUS pin of the JZ4770.

Paul Cercueil committed 6 years ago

Commit ae75b531 parent 7009d041 file · +5 −0Browse files

Unified · Split

drivers/pinctrl/pinctrl-ingenic.c+5−0
@@ -686,6 +686,7 @@ static int jz4770_mac_rmii_pins[] = { · 685 unmodified lines
686 0xa9, 0xab, 0xaa, 0xac, 0xa5, 0xa4, 0xad, 0xae, 0xa6, 0xa8,686 0xa9, 0xab, 0xaa, 0xac, 0xa5, 0xa4, 0xad, 0xae, 0xa6, 0xa8,
687};687};
688static int jz4770_mac_mii_pins[] = { 0xa7, 0xaf, };688static int jz4770_mac_mii_pins[] = { 0xa7, 0xaf, };
689static int jz4770_otg_pins[] = { 0x8a, };
689 690
690static int jz4770_uart0_data_funcs[] = { 0, 0, };691static int jz4770_uart0_data_funcs[] = { 0, 0, };
691static int jz4770_uart0_hwflow_funcs[] = { 0, 0, };692static int jz4770_uart0_hwflow_funcs[] = { 0, 0, };
@@ -744,6 +745,7 @@ static int jz4770_pwm_pwm6_funcs[] = { 0, }; · 52 unmodified lines
744static int jz4770_pwm_pwm7_funcs[] = { 0, };745static int jz4770_pwm_pwm7_funcs[] = { 0, };
745static int jz4770_mac_rmii_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };746static int jz4770_mac_rmii_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
746static int jz4770_mac_mii_funcs[] = { 0, 0, };747static int jz4770_mac_mii_funcs[] = { 0, 0, };
748static int jz4770_otg_funcs[] = { 0, };
747 749
748static const struct group_desc jz4770_groups[] = {750static const struct group_desc jz4770_groups[] = {
749 INGENIC_PIN_GROUP("uart0-data", jz4770_uart0_data),751 INGENIC_PIN_GROUP("uart0-data", jz4770_uart0_data),
@@ -799,6 +801,7 @@ static const struct group_desc jz4770_groups[] = { · 49 unmodified lines
799 INGENIC_PIN_GROUP("pwm7", jz4770_pwm_pwm7),801 INGENIC_PIN_GROUP("pwm7", jz4770_pwm_pwm7),
800 INGENIC_PIN_GROUP("mac-rmii", jz4770_mac_rmii),802 INGENIC_PIN_GROUP("mac-rmii", jz4770_mac_rmii),
801 INGENIC_PIN_GROUP("mac-mii", jz4770_mac_mii),803 INGENIC_PIN_GROUP("mac-mii", jz4770_mac_mii),
804 INGENIC_PIN_GROUP("otg-vbus", jz4770_otg),
802};805};
803 806
804static const char *jz4770_uart0_groups[] = { "uart0-data", "uart0-hwflow", };807static const char *jz4770_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
@@ -841,6 +844,7 @@ static const char *jz4770_pwm5_groups[] = { "pwm5", }; · 36 unmodified lines
841static const char *jz4770_pwm6_groups[] = { "pwm6", };844static const char *jz4770_pwm6_groups[] = { "pwm6", };
842static const char *jz4770_pwm7_groups[] = { "pwm7", };845static const char *jz4770_pwm7_groups[] = { "pwm7", };
843static const char *jz4770_mac_groups[] = { "mac-rmii", "mac-mii", };846static const char *jz4770_mac_groups[] = { "mac-rmii", "mac-mii", };
847static const char *jz4770_otg_groups[] = { "otg-vbus", };
844 848
845static const struct function_desc jz4770_functions[] = {849static const struct function_desc jz4770_functions[] = {
846 { "uart0", jz4770_uart0_groups, ARRAY_SIZE(jz4770_uart0_groups), },850 { "uart0", jz4770_uart0_groups, ARRAY_SIZE(jz4770_uart0_groups), },
@@ -871,6 +875,7 @@ static const struct function_desc jz4770_functions[] = { · 24 unmodified lines
871 { "pwm6", jz4770_pwm6_groups, ARRAY_SIZE(jz4770_pwm6_groups), },875 { "pwm6", jz4770_pwm6_groups, ARRAY_SIZE(jz4770_pwm6_groups), },
872 { "pwm7", jz4770_pwm7_groups, ARRAY_SIZE(jz4770_pwm7_groups), },876 { "pwm7", jz4770_pwm7_groups, ARRAY_SIZE(jz4770_pwm7_groups), },
873 { "mac", jz4770_mac_groups, ARRAY_SIZE(jz4770_mac_groups), },877 { "mac", jz4770_mac_groups, ARRAY_SIZE(jz4770_mac_groups), },
878 { "otg", jz4770_otg_groups, ARRAY_SIZE(jz4770_otg_groups), },
874};879};
875 880
876static const struct ingenic_chip_info jz4770_chip_info = {881static const struct ingenic_chip_info jz4770_chip_info = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t