|
15 | 15 |
|
16 | 16 | #include "pinctrl-intel.h"
|
17 | 17 |
|
18 |
| -#define CNL_PAD_OWN 0x020 |
19 |
| -#define CNL_PADCFGLOCK 0x080 |
20 |
| -#define CNL_HOSTSW_OWN 0x0b0 |
21 |
| -#define CNL_GPI_IE 0x120 |
| 18 | +#define CNL_PAD_OWN 0x020 |
| 19 | +#define CNL_PADCFGLOCK 0x080 |
| 20 | +#define CNL_LP_HOSTSW_OWN 0x0b0 |
| 21 | +#define CNL_H_HOSTSW_OWN 0x0c0 |
| 22 | +#define CNL_GPI_IE 0x120 |
22 | 23 |
|
23 | 24 | #define CNL_GPP(r, s, e, g) \
|
24 | 25 | { \
|
|
30 | 31 |
|
31 | 32 | #define CNL_NO_GPIO -1
|
32 | 33 |
|
33 |
| -#define CNL_COMMUNITY(b, s, e, g) \ |
| 34 | +#define CNL_COMMUNITY(b, s, e, o, g) \ |
34 | 35 | { \
|
35 | 36 | .barno = (b), \
|
36 | 37 | .padown_offset = CNL_PAD_OWN, \
|
37 | 38 | .padcfglock_offset = CNL_PADCFGLOCK, \
|
38 |
| - .hostown_offset = CNL_HOSTSW_OWN, \ |
| 39 | + .hostown_offset = (o), \ |
39 | 40 | .ie_offset = CNL_GPI_IE, \
|
40 | 41 | .pin_base = (s), \
|
41 | 42 | .npins = ((e) - (s) + 1), \
|
42 | 43 | .gpps = (g), \
|
43 | 44 | .ngpps = ARRAY_SIZE(g), \
|
44 | 45 | }
|
45 | 46 |
|
| 47 | +#define CNLLP_COMMUNITY(b, s, e, g) \ |
| 48 | + CNL_COMMUNITY(b, s, e, CNL_LP_HOSTSW_OWN, g) |
| 49 | + |
| 50 | +#define CNLH_COMMUNITY(b, s, e, g) \ |
| 51 | + CNL_COMMUNITY(b, s, e, CNL_H_HOSTSW_OWN, g) |
| 52 | + |
46 | 53 | /* Cannon Lake-H */
|
47 | 54 | static const struct pinctrl_pin_desc cnlh_pins[] = {
|
48 | 55 | /* GPP_A */
|
@@ -442,10 +449,10 @@ static const struct intel_function cnlh_functions[] = {
|
442 | 449 | };
|
443 | 450 |
|
444 | 451 | static const struct intel_community cnlh_communities[] = {
|
445 |
| - CNL_COMMUNITY(0, 0, 50, cnlh_community0_gpps), |
446 |
| - CNL_COMMUNITY(1, 51, 154, cnlh_community1_gpps), |
447 |
| - CNL_COMMUNITY(2, 155, 248, cnlh_community3_gpps), |
448 |
| - CNL_COMMUNITY(3, 249, 298, cnlh_community4_gpps), |
| 452 | + CNLH_COMMUNITY(0, 0, 50, cnlh_community0_gpps), |
| 453 | + CNLH_COMMUNITY(1, 51, 154, cnlh_community1_gpps), |
| 454 | + CNLH_COMMUNITY(2, 155, 248, cnlh_community3_gpps), |
| 455 | + CNLH_COMMUNITY(3, 249, 298, cnlh_community4_gpps), |
449 | 456 | };
|
450 | 457 |
|
451 | 458 | static const struct intel_pinctrl_soc_data cnlh_soc_data = {
|
@@ -803,9 +810,9 @@ static const struct intel_padgroup cnllp_community4_gpps[] = {
|
803 | 810 | };
|
804 | 811 |
|
805 | 812 | static const struct intel_community cnllp_communities[] = {
|
806 |
| - CNL_COMMUNITY(0, 0, 67, cnllp_community0_gpps), |
807 |
| - CNL_COMMUNITY(1, 68, 180, cnllp_community1_gpps), |
808 |
| - CNL_COMMUNITY(2, 181, 243, cnllp_community4_gpps), |
| 813 | + CNLLP_COMMUNITY(0, 0, 67, cnllp_community0_gpps), |
| 814 | + CNLLP_COMMUNITY(1, 68, 180, cnllp_community1_gpps), |
| 815 | + CNLLP_COMMUNITY(2, 181, 243, cnllp_community4_gpps), |
809 | 816 | };
|
810 | 817 |
|
811 | 818 | static const struct intel_pinctrl_soc_data cnllp_soc_data = {
|
|
0 commit comments