|
14 | 14 |
|
15 | 15 | #include "pinctrl-intel.h" |
16 | 16 |
|
17 | | -#define ADL_PAD_OWN 0x0a0 |
18 | | -#define ADL_PADCFGLOCK 0x110 |
19 | | -#define ADL_HOSTSW_OWN 0x150 |
20 | | -#define ADL_GPI_IS 0x200 |
21 | | -#define ADL_GPI_IE 0x220 |
| 17 | +#define ADL_N_PAD_OWN 0x020 |
| 18 | +#define ADL_N_PADCFGLOCK 0x080 |
| 19 | +#define ADL_N_HOSTSW_OWN 0x0b0 |
| 20 | +#define ADL_N_GPI_IS 0x100 |
| 21 | +#define ADL_N_GPI_IE 0x120 |
| 22 | + |
| 23 | +#define ADL_S_PAD_OWN 0x0a0 |
| 24 | +#define ADL_S_PADCFGLOCK 0x110 |
| 25 | +#define ADL_S_HOSTSW_OWN 0x150 |
| 26 | +#define ADL_S_GPI_IS 0x200 |
| 27 | +#define ADL_S_GPI_IE 0x220 |
22 | 28 |
|
23 | 29 | #define ADL_GPP(r, s, e, g) \ |
24 | 30 | { \ |
|
28 | 34 | .gpio_base = (g), \ |
29 | 35 | } |
30 | 36 |
|
31 | | -#define ADL_COMMUNITY(b, s, e, g) \ |
| 37 | +#define ADL_N_COMMUNITY(b, s, e, g) \ |
| 38 | + { \ |
| 39 | + .barno = (b), \ |
| 40 | + .padown_offset = ADL_N_PAD_OWN, \ |
| 41 | + .padcfglock_offset = ADL_N_PADCFGLOCK, \ |
| 42 | + .hostown_offset = ADL_N_HOSTSW_OWN, \ |
| 43 | + .is_offset = ADL_N_GPI_IS, \ |
| 44 | + .ie_offset = ADL_N_GPI_IE, \ |
| 45 | + .pin_base = (s), \ |
| 46 | + .npins = ((e) - (s) + 1), \ |
| 47 | + .gpps = (g), \ |
| 48 | + .ngpps = ARRAY_SIZE(g), \ |
| 49 | + } |
| 50 | + |
| 51 | +#define ADL_S_COMMUNITY(b, s, e, g) \ |
32 | 52 | { \ |
33 | 53 | .barno = (b), \ |
34 | | - .padown_offset = ADL_PAD_OWN, \ |
35 | | - .padcfglock_offset = ADL_PADCFGLOCK, \ |
36 | | - .hostown_offset = ADL_HOSTSW_OWN, \ |
37 | | - .is_offset = ADL_GPI_IS, \ |
38 | | - .ie_offset = ADL_GPI_IE, \ |
| 54 | + .padown_offset = ADL_S_PAD_OWN, \ |
| 55 | + .padcfglock_offset = ADL_S_PADCFGLOCK, \ |
| 56 | + .hostown_offset = ADL_S_HOSTSW_OWN, \ |
| 57 | + .is_offset = ADL_S_GPI_IS, \ |
| 58 | + .ie_offset = ADL_S_GPI_IE, \ |
39 | 59 | .pin_base = (s), \ |
40 | 60 | .npins = ((e) - (s) + 1), \ |
41 | 61 | .gpps = (g), \ |
@@ -342,10 +362,10 @@ static const struct intel_padgroup adln_community5_gpps[] = { |
342 | 362 | }; |
343 | 363 |
|
344 | 364 | static const struct intel_community adln_communities[] = { |
345 | | - ADL_COMMUNITY(0, 0, 66, adln_community0_gpps), |
346 | | - ADL_COMMUNITY(1, 67, 168, adln_community1_gpps), |
347 | | - ADL_COMMUNITY(2, 169, 248, adln_community4_gpps), |
348 | | - ADL_COMMUNITY(3, 249, 256, adln_community5_gpps), |
| 365 | + ADL_N_COMMUNITY(0, 0, 66, adln_community0_gpps), |
| 366 | + ADL_N_COMMUNITY(1, 67, 168, adln_community1_gpps), |
| 367 | + ADL_N_COMMUNITY(2, 169, 248, adln_community4_gpps), |
| 368 | + ADL_N_COMMUNITY(3, 249, 256, adln_community5_gpps), |
349 | 369 | }; |
350 | 370 |
|
351 | 371 | static const struct intel_pinctrl_soc_data adln_soc_data = { |
@@ -713,11 +733,11 @@ static const struct intel_padgroup adls_community5_gpps[] = { |
713 | 733 | }; |
714 | 734 |
|
715 | 735 | static const struct intel_community adls_communities[] = { |
716 | | - ADL_COMMUNITY(0, 0, 94, adls_community0_gpps), |
717 | | - ADL_COMMUNITY(1, 95, 150, adls_community1_gpps), |
718 | | - ADL_COMMUNITY(2, 151, 199, adls_community3_gpps), |
719 | | - ADL_COMMUNITY(3, 200, 269, adls_community4_gpps), |
720 | | - ADL_COMMUNITY(4, 270, 303, adls_community5_gpps), |
| 736 | + ADL_S_COMMUNITY(0, 0, 94, adls_community0_gpps), |
| 737 | + ADL_S_COMMUNITY(1, 95, 150, adls_community1_gpps), |
| 738 | + ADL_S_COMMUNITY(2, 151, 199, adls_community3_gpps), |
| 739 | + ADL_S_COMMUNITY(3, 200, 269, adls_community4_gpps), |
| 740 | + ADL_S_COMMUNITY(4, 270, 303, adls_community5_gpps), |
721 | 741 | }; |
722 | 742 |
|
723 | 743 | static const struct intel_pinctrl_soc_data adls_soc_data = { |
|
0 commit comments