|
15 | 15 |
|
16 | 16 | #include "pinctrl-intel.h"
|
17 | 17 |
|
18 |
| -#define TGL_PAD_OWN 0x020 |
19 |
| -#define TGL_PADCFGLOCK 0x080 |
20 |
| -#define TGL_HOSTSW_OWN 0x0b0 |
21 |
| -#define TGL_GPI_IS 0x100 |
22 |
| -#define TGL_GPI_IE 0x120 |
| 18 | +#define TGL_PAD_OWN 0x020 |
| 19 | +#define TGL_LP_PADCFGLOCK 0x080 |
| 20 | +#define TGL_H_PADCFGLOCK 0x090 |
| 21 | +#define TGL_LP_HOSTSW_OWN 0x0b0 |
| 22 | +#define TGL_H_HOSTSW_OWN 0x0c0 |
| 23 | +#define TGL_GPI_IS 0x100 |
| 24 | +#define TGL_GPI_IE 0x120 |
23 | 25 |
|
24 | 26 | #define TGL_GPP(r, s, e, g) \
|
25 | 27 | { \
|
|
29 | 31 | .gpio_base = (g), \
|
30 | 32 | }
|
31 | 33 |
|
32 |
| -#define TGL_COMMUNITY(b, s, e, g) \ |
| 34 | +#define TGL_COMMUNITY(b, s, e, pl, ho, g) \ |
33 | 35 | { \
|
34 | 36 | .barno = (b), \
|
35 | 37 | .padown_offset = TGL_PAD_OWN, \
|
36 |
| - .padcfglock_offset = TGL_PADCFGLOCK, \ |
37 |
| - .hostown_offset = TGL_HOSTSW_OWN, \ |
| 38 | + .padcfglock_offset = (pl), \ |
| 39 | + .hostown_offset = (ho), \ |
38 | 40 | .is_offset = TGL_GPI_IS, \
|
39 | 41 | .ie_offset = TGL_GPI_IE, \
|
40 | 42 | .pin_base = (s), \
|
|
43 | 45 | .ngpps = ARRAY_SIZE(g), \
|
44 | 46 | }
|
45 | 47 |
|
| 48 | +#define TGL_LP_COMMUNITY(b, s, e, g) \ |
| 49 | + TGL_COMMUNITY(b, s, e, TGL_LP_PADCFGLOCK, TGL_LP_HOSTSW_OWN, g) |
| 50 | + |
| 51 | +#define TGL_H_COMMUNITY(b, s, e, g) \ |
| 52 | + TGL_COMMUNITY(b, s, e, TGL_H_PADCFGLOCK, TGL_H_HOSTSW_OWN, g) |
| 53 | + |
46 | 54 | /* Tiger Lake-LP */
|
47 | 55 | static const struct pinctrl_pin_desc tgllp_pins[] = {
|
48 | 56 | /* GPP_B */
|
@@ -367,10 +375,10 @@ static const struct intel_padgroup tgllp_community5_gpps[] = {
|
367 | 375 | };
|
368 | 376 |
|
369 | 377 | static const struct intel_community tgllp_communities[] = {
|
370 |
| - TGL_COMMUNITY(0, 0, 66, tgllp_community0_gpps), |
371 |
| - TGL_COMMUNITY(1, 67, 170, tgllp_community1_gpps), |
372 |
| - TGL_COMMUNITY(2, 171, 259, tgllp_community4_gpps), |
373 |
| - TGL_COMMUNITY(3, 260, 276, tgllp_community5_gpps), |
| 378 | + TGL_LP_COMMUNITY(0, 0, 66, tgllp_community0_gpps), |
| 379 | + TGL_LP_COMMUNITY(1, 67, 170, tgllp_community1_gpps), |
| 380 | + TGL_LP_COMMUNITY(2, 171, 259, tgllp_community4_gpps), |
| 381 | + TGL_LP_COMMUNITY(3, 260, 276, tgllp_community5_gpps), |
374 | 382 | };
|
375 | 383 |
|
376 | 384 | static const struct intel_pinctrl_soc_data tgllp_soc_data = {
|
@@ -723,11 +731,11 @@ static const struct intel_padgroup tglh_community5_gpps[] = {
|
723 | 731 | };
|
724 | 732 |
|
725 | 733 | static const struct intel_community tglh_communities[] = {
|
726 |
| - TGL_COMMUNITY(0, 0, 78, tglh_community0_gpps), |
727 |
| - TGL_COMMUNITY(1, 79, 180, tglh_community1_gpps), |
728 |
| - TGL_COMMUNITY(2, 181, 217, tglh_community3_gpps), |
729 |
| - TGL_COMMUNITY(3, 218, 266, tglh_community4_gpps), |
730 |
| - TGL_COMMUNITY(4, 267, 290, tglh_community5_gpps), |
| 734 | + TGL_H_COMMUNITY(0, 0, 78, tglh_community0_gpps), |
| 735 | + TGL_H_COMMUNITY(1, 79, 180, tglh_community1_gpps), |
| 736 | + TGL_H_COMMUNITY(2, 181, 217, tglh_community3_gpps), |
| 737 | + TGL_H_COMMUNITY(3, 218, 266, tglh_community4_gpps), |
| 738 | + TGL_H_COMMUNITY(4, 267, 290, tglh_community5_gpps), |
731 | 739 | };
|
732 | 740 |
|
733 | 741 | static const struct intel_pinctrl_soc_data tglh_soc_data = {
|
|
0 commit comments