pinctrl: uniphier: add Ethernet pin-mux settings
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
		
							parent
							
								
									64c1cc4cc5
								
							
						
					
					
						commit
						fc9da85c60
					
				| 
						 | 
					@ -14,6 +14,9 @@ static const unsigned emmc_pins[] = {18, 19, 20, 21, 22, 23, 24, 25};
 | 
				
			||||||
static const int emmc_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0};
 | 
					static const int emmc_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0};
 | 
				
			||||||
static const unsigned emmc_dat8_pins[] = {26, 27, 28, 29};
 | 
					static const unsigned emmc_dat8_pins[] = {26, 27, 28, 29};
 | 
				
			||||||
static const int emmc_dat8_muxvals[] = {0, 0, 0, 0};
 | 
					static const int emmc_dat8_muxvals[] = {0, 0, 0, 0};
 | 
				
			||||||
 | 
					static const unsigned ether_rmii_pins[] = {6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
 | 
				
			||||||
 | 
										   16, 17};
 | 
				
			||||||
 | 
					static const int ether_rmii_muxvals[] = {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4};
 | 
				
			||||||
static const unsigned i2c0_pins[] = {63, 64};
 | 
					static const unsigned i2c0_pins[] = {63, 64};
 | 
				
			||||||
static const int i2c0_muxvals[] = {0, 0};
 | 
					static const int i2c0_muxvals[] = {0, 0};
 | 
				
			||||||
static const unsigned i2c1_pins[] = {65, 66};
 | 
					static const unsigned i2c1_pins[] = {65, 66};
 | 
				
			||||||
| 
						 | 
					@ -43,6 +46,7 @@ static const int usb2_muxvals[] = {0, 0};
 | 
				
			||||||
static const struct uniphier_pinctrl_group uniphier_ld11_groups[] = {
 | 
					static const struct uniphier_pinctrl_group uniphier_ld11_groups[] = {
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(emmc),
 | 
						UNIPHIER_PINCTRL_GROUP(emmc),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(emmc_dat8),
 | 
						UNIPHIER_PINCTRL_GROUP(emmc_dat8),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c3),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c3),
 | 
				
			||||||
| 
						 | 
					@ -59,6 +63,7 @@ static const struct uniphier_pinctrl_group uniphier_ld11_groups[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char * const uniphier_ld11_functions[] = {
 | 
					static const char * const uniphier_ld11_functions[] = {
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(emmc),
 | 
						UNIPHIER_PINMUX_FUNCTION(emmc),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c3),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c3),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,13 @@ static const unsigned emmc_pins[] = {18, 19, 20, 21, 22, 23, 24, 25};
 | 
				
			||||||
static const int emmc_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0};
 | 
					static const int emmc_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0};
 | 
				
			||||||
static const unsigned emmc_dat8_pins[] = {26, 27, 28, 29};
 | 
					static const unsigned emmc_dat8_pins[] = {26, 27, 28, 29};
 | 
				
			||||||
static const int emmc_dat8_muxvals[] = {0, 0, 0, 0};
 | 
					static const int emmc_dat8_muxvals[] = {0, 0, 0, 0};
 | 
				
			||||||
 | 
					static const unsigned ether_rgmii_pins[] = {30, 31, 32, 33, 34, 35, 36, 37, 38,
 | 
				
			||||||
 | 
										    39, 40, 41, 42, 43, 44, 45};
 | 
				
			||||||
 | 
					static const int ether_rgmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 | 
				
			||||||
 | 
										  0, 0, 0, 0};
 | 
				
			||||||
 | 
					static const unsigned ether_rmii_pins[] = {30, 31, 32, 33, 34, 35, 36, 37, 39,
 | 
				
			||||||
 | 
										   41, 42, 45};
 | 
				
			||||||
 | 
					static const int ether_rmii_muxvals[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
 | 
				
			||||||
static const unsigned i2c0_pins[] = {63, 64};
 | 
					static const unsigned i2c0_pins[] = {63, 64};
 | 
				
			||||||
static const int i2c0_muxvals[] = {0, 0};
 | 
					static const int i2c0_muxvals[] = {0, 0};
 | 
				
			||||||
static const unsigned i2c1_pins[] = {65, 66};
 | 
					static const unsigned i2c1_pins[] = {65, 66};
 | 
				
			||||||
| 
						 | 
					@ -47,6 +54,8 @@ static const int usb3_muxvals[] = {0, 0};
 | 
				
			||||||
static const struct uniphier_pinctrl_group uniphier_ld20_groups[] = {
 | 
					static const struct uniphier_pinctrl_group uniphier_ld20_groups[] = {
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(emmc),
 | 
						UNIPHIER_PINCTRL_GROUP(emmc),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(emmc_dat8),
 | 
						UNIPHIER_PINCTRL_GROUP(emmc_dat8),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c3),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c3),
 | 
				
			||||||
| 
						 | 
					@ -65,6 +74,8 @@ static const struct uniphier_pinctrl_group uniphier_ld20_groups[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char * const uniphier_ld20_functions[] = {
 | 
					static const char * const uniphier_ld20_functions[] = {
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(emmc),
 | 
						UNIPHIER_PINMUX_FUNCTION(emmc),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c3),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c3),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,6 +27,14 @@ static const unsigned emmc_pins[] = {21, 22, 23, 24, 25, 26, 27};
 | 
				
			||||||
static const int emmc_muxvals[] = {0, 1, 1, 1, 1, 1, 1};
 | 
					static const int emmc_muxvals[] = {0, 1, 1, 1, 1, 1, 1};
 | 
				
			||||||
static const unsigned emmc_dat8_pins[] = {28, 29, 30, 31};
 | 
					static const unsigned emmc_dat8_pins[] = {28, 29, 30, 31};
 | 
				
			||||||
static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
					static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
				
			||||||
 | 
					static const unsigned ether_mii_pins[] = {32, 33, 34, 35, 36, 37, 38, 39, 40,
 | 
				
			||||||
 | 
										  41, 42, 43, 136, 137, 138, 139, 140,
 | 
				
			||||||
 | 
										  141, 142};
 | 
				
			||||||
 | 
					static const int ether_mii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 | 
				
			||||||
 | 
										4, 4, 4, 4, 4, 4, 4};
 | 
				
			||||||
 | 
					static const unsigned ether_rmii_pins[] = {32, 33, 34, 35, 36, 37, 38, 39, 40,
 | 
				
			||||||
 | 
										   41, 42, 43};
 | 
				
			||||||
 | 
					static const int ether_rmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
 | 
				
			||||||
static const unsigned i2c0_pins[] = {102, 103};
 | 
					static const unsigned i2c0_pins[] = {102, 103};
 | 
				
			||||||
static const int i2c0_muxvals[] = {0, 0};
 | 
					static const int i2c0_muxvals[] = {0, 0};
 | 
				
			||||||
static const unsigned i2c1_pins[] = {104, 105};
 | 
					static const unsigned i2c1_pins[] = {104, 105};
 | 
				
			||||||
| 
						 | 
					@ -64,6 +72,8 @@ static const int usb2b_muxvals[] = {23, 23};
 | 
				
			||||||
static const struct uniphier_pinctrl_group uniphier_ld4_groups[] = {
 | 
					static const struct uniphier_pinctrl_group uniphier_ld4_groups[] = {
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
				
			||||||
| 
						 | 
					@ -84,6 +94,8 @@ static const struct uniphier_pinctrl_group uniphier_ld4_groups[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char * const uniphier_ld4_functions[] = {
 | 
					static const char * const uniphier_ld4_functions[] = {
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
						UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,6 +24,14 @@ static const unsigned emmc_pins[] = {36, 37, 38, 39, 40, 41, 42};
 | 
				
			||||||
static const int emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1};
 | 
					static const int emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1};
 | 
				
			||||||
static const unsigned emmc_dat8_pins[] = {43, 44, 45, 46};
 | 
					static const unsigned emmc_dat8_pins[] = {43, 44, 45, 46};
 | 
				
			||||||
static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
					static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
				
			||||||
 | 
					static const unsigned ether_rgmii_pins[] = {143, 144, 145, 146, 147, 148, 149,
 | 
				
			||||||
 | 
										    150, 151, 152, 153, 154, 155, 156,
 | 
				
			||||||
 | 
										    157, 158};
 | 
				
			||||||
 | 
					static const int ether_rgmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 | 
				
			||||||
 | 
										  0, 0, 0, 0};
 | 
				
			||||||
 | 
					static const unsigned ether_rmii_pins[] = {143, 144, 145, 146, 147, 148, 149,
 | 
				
			||||||
 | 
										   150, 152, 154, 155, 158};
 | 
				
			||||||
 | 
					static const int ether_rmii_muxvals[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1};
 | 
				
			||||||
static const unsigned i2c0_pins[] = {109, 110};
 | 
					static const unsigned i2c0_pins[] = {109, 110};
 | 
				
			||||||
static const int i2c0_muxvals[] = {0, 0};
 | 
					static const int i2c0_muxvals[] = {0, 0};
 | 
				
			||||||
static const unsigned i2c1_pins[] = {111, 112};
 | 
					static const unsigned i2c1_pins[] = {111, 112};
 | 
				
			||||||
| 
						 | 
					@ -63,6 +71,8 @@ static const int usb3_muxvals[] = {0, 0};
 | 
				
			||||||
static const struct uniphier_pinctrl_group uniphier_ld6b_groups[] = {
 | 
					static const struct uniphier_pinctrl_group uniphier_ld6b_groups[] = {
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
				
			||||||
| 
						 | 
					@ -84,6 +94,8 @@ static const struct uniphier_pinctrl_group uniphier_ld6b_groups[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char * const uniphier_ld6b_functions[] = {
 | 
					static const char * const uniphier_ld6b_functions[] = {
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
						UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,6 +16,22 @@ static const unsigned emmc_pins[] = {40, 41, 42, 43, 51, 52, 53};
 | 
				
			||||||
static const int emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1};
 | 
					static const int emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1};
 | 
				
			||||||
static const unsigned emmc_dat8_pins[] = {44, 45, 46, 47};
 | 
					static const unsigned emmc_dat8_pins[] = {44, 45, 46, 47};
 | 
				
			||||||
static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
					static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
				
			||||||
 | 
					static const unsigned ether_mii_pins[] = {160, 161, 162, 163, 164, 165, 166,
 | 
				
			||||||
 | 
										  167, 168, 169, 170, 171, 172, 173,
 | 
				
			||||||
 | 
										  174, 175, 176, 177, 178, 179};
 | 
				
			||||||
 | 
					static const int ether_mii_muxvals[] = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 | 
				
			||||||
 | 
										0, 0, 0, 0, 0, 0, 0};
 | 
				
			||||||
 | 
					static const unsigned ether_rgmii_pins[] = {160, 161, 162, 163, 164, 165, 167,
 | 
				
			||||||
 | 
										    168, 169, 170, 171, 172, 176, 177,
 | 
				
			||||||
 | 
										    178, 179};
 | 
				
			||||||
 | 
					static const int ether_rgmii_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 | 
				
			||||||
 | 
										  0, 0, 0, 0};
 | 
				
			||||||
 | 
					static const unsigned ether_rmii_pins[] = {160, 161, 162, 165, 168, 169, 172,
 | 
				
			||||||
 | 
										   173, 176, 177, 178, 179};
 | 
				
			||||||
 | 
					static const int ether_rmii_muxvals[] = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
 | 
				
			||||||
 | 
					static const unsigned ether_rmiib_pins[] = {161, 162, 165, 167, 168, 169, 172,
 | 
				
			||||||
 | 
										    173, 176, 177, 178, 179};
 | 
				
			||||||
 | 
					static const int ether_rmiib_muxvals[] = {0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0};
 | 
				
			||||||
static const unsigned i2c0_pins[] = {142, 143};
 | 
					static const unsigned i2c0_pins[] = {142, 143};
 | 
				
			||||||
static const int i2c0_muxvals[] = {0, 0};
 | 
					static const int i2c0_muxvals[] = {0, 0};
 | 
				
			||||||
static const unsigned i2c1_pins[] = {144, 145};
 | 
					static const unsigned i2c1_pins[] = {144, 145};
 | 
				
			||||||
| 
						 | 
					@ -56,6 +72,10 @@ static const int usb3_muxvals[] = {0, 0};
 | 
				
			||||||
static const struct uniphier_pinctrl_group uniphier_pro4_groups[] = {
 | 
					static const struct uniphier_pinctrl_group uniphier_pro4_groups[] = {
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmiib),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
				
			||||||
| 
						 | 
					@ -77,6 +97,9 @@ static const struct uniphier_pinctrl_group uniphier_pro4_groups[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char * const uniphier_pro4_functions[] = {
 | 
					static const char * const uniphier_pro4_functions[] = {
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
						UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,6 +20,19 @@ static const unsigned emmc_pins[] = {36, 37, 38, 39, 40, 41, 42};
 | 
				
			||||||
static const int emmc_muxvals[] = {9, 9, 9, 9, 9, 9, 9};
 | 
					static const int emmc_muxvals[] = {9, 9, 9, 9, 9, 9, 9};
 | 
				
			||||||
static const unsigned emmc_dat8_pins[] = {43, 44, 45, 46};
 | 
					static const unsigned emmc_dat8_pins[] = {43, 44, 45, 46};
 | 
				
			||||||
static const int emmc_dat8_muxvals[] = {9, 9, 9, 9};
 | 
					static const int emmc_dat8_muxvals[] = {9, 9, 9, 9};
 | 
				
			||||||
 | 
					static const unsigned ether_mii_pins[] = {143, 144, 145, 146, 147, 148, 149,
 | 
				
			||||||
 | 
										  150, 151, 152, 153, 154, 155, 156,
 | 
				
			||||||
 | 
										  158, 159, 199, 200, 201, 202};
 | 
				
			||||||
 | 
					static const int ether_mii_muxvals[] = {8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10,
 | 
				
			||||||
 | 
										10, 10, 10, 10, 10, 12, 12, 12, 12};
 | 
				
			||||||
 | 
					static const unsigned ether_rgmii_pins[] = {143, 144, 145, 146, 147, 148, 149,
 | 
				
			||||||
 | 
										    150, 151, 152, 153, 154, 155, 156,
 | 
				
			||||||
 | 
										    157, 158};
 | 
				
			||||||
 | 
					static const int ether_rgmii_muxvals[] = {8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
 | 
				
			||||||
 | 
										  8, 8, 8, 8};
 | 
				
			||||||
 | 
					static const unsigned ether_rmii_pins[] = {143, 144, 145, 146, 147, 148, 149,
 | 
				
			||||||
 | 
										   150, 152, 154, 155, 158};
 | 
				
			||||||
 | 
					static const int ether_rmii_muxvals[] = {8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9};
 | 
				
			||||||
static const unsigned i2c0_pins[] = {109, 110};
 | 
					static const unsigned i2c0_pins[] = {109, 110};
 | 
				
			||||||
static const int i2c0_muxvals[] = {8, 8};
 | 
					static const int i2c0_muxvals[] = {8, 8};
 | 
				
			||||||
static const unsigned i2c1_pins[] = {111, 112};
 | 
					static const unsigned i2c1_pins[] = {111, 112};
 | 
				
			||||||
| 
						 | 
					@ -63,6 +76,9 @@ static const int usb3_muxvals[] = {8, 8};
 | 
				
			||||||
static const struct uniphier_pinctrl_group uniphier_pxs2_groups[] = {
 | 
					static const struct uniphier_pinctrl_group uniphier_pxs2_groups[] = {
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
				
			||||||
| 
						 | 
					@ -86,6 +102,9 @@ static const struct uniphier_pinctrl_group uniphier_pxs2_groups[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char * const uniphier_pxs2_functions[] = {
 | 
					static const char * const uniphier_pxs2_functions[] = {
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
						UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rgmii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,6 +41,14 @@ static const unsigned emmc_pins[] = {21, 22, 23, 24, 25, 26, 27};
 | 
				
			||||||
static const int emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1};
 | 
					static const int emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1};
 | 
				
			||||||
static const unsigned emmc_dat8_pins[] = {28, 29, 30, 31};
 | 
					static const unsigned emmc_dat8_pins[] = {28, 29, 30, 31};
 | 
				
			||||||
static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
					static const int emmc_dat8_muxvals[] = {1, 1, 1, 1};
 | 
				
			||||||
 | 
					static const unsigned ether_mii_pins[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14,
 | 
				
			||||||
 | 
										  61, 63, 64, 65, 66, 67, 68};
 | 
				
			||||||
 | 
					static const int ether_mii_muxvals[] = {13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
 | 
				
			||||||
 | 
										13, 13, 27, 27, 27, 27, 27, 27, 27};
 | 
				
			||||||
 | 
					static const unsigned ether_rmii_pins[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13,
 | 
				
			||||||
 | 
										   14};
 | 
				
			||||||
 | 
					static const int ether_rmii_muxvals[] = {13, 13, 13, 13, 13, 13, 13, 13, 13,
 | 
				
			||||||
 | 
										 13, 13, 13};
 | 
				
			||||||
static const unsigned i2c0_pins[] = {102, 103};
 | 
					static const unsigned i2c0_pins[] = {102, 103};
 | 
				
			||||||
static const int i2c0_muxvals[] = {0, 0};
 | 
					static const int i2c0_muxvals[] = {0, 0};
 | 
				
			||||||
static const unsigned i2c1_pins[] = {104, 105};
 | 
					static const unsigned i2c1_pins[] = {104, 105};
 | 
				
			||||||
| 
						 | 
					@ -74,6 +82,8 @@ static const int usb2_muxvals[] = {1, 1};
 | 
				
			||||||
static const struct uniphier_pinctrl_group uniphier_sld8_groups[] = {
 | 
					static const struct uniphier_pinctrl_group uniphier_sld8_groups[] = {
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
						UNIPHIER_PINCTRL_GROUP_SPL(emmc_dat8),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINCTRL_GROUP(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c0),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c1),
 | 
				
			||||||
	UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
						UNIPHIER_PINCTRL_GROUP(i2c2),
 | 
				
			||||||
| 
						 | 
					@ -92,6 +102,8 @@ static const struct uniphier_pinctrl_group uniphier_sld8_groups[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char * const uniphier_sld8_functions[] = {
 | 
					static const char * const uniphier_sld8_functions[] = {
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
						UNIPHIER_PINMUX_FUNCTION_SPL(emmc),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_mii),
 | 
				
			||||||
 | 
						UNIPHIER_PINMUX_FUNCTION(ether_rmii),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c0),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c1),
 | 
				
			||||||
	UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
						UNIPHIER_PINMUX_FUNCTION(i2c2),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue