mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / soc / qualcomm / sc7280 / qcom_qup_se.c
blob2ed4c854f634ddf886ef68a080539623d15e01de
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <soc/qcom_qup_se.h>
5 struct qup qup[QUPV3_SE_MAX] = {
6 [QUPV3_0_SE0] = { .regs = (void *)QUP_SERIAL0_BASE,
7 .pin = { GPIO(0), GPIO(1), GPIO(2), GPIO(3) },
8 .func = { GPIO0_FUNC_QUP0_L0, GPIO1_FUNC_QUP0_L1,
9 GPIO2_FUNC_QUP0_L2, GPIO3_FUNC_QUP0_L3 }
11 [QUPV3_0_SE1] = { .regs = (void *)QUP_SERIAL1_BASE,
12 .pin = { GPIO(4), GPIO(5), GPIO(6), GPIO(7) },
13 .func = { GPIO4_FUNC_QUP0_L0, GPIO5_FUNC_QUP0_L1,
14 GPIO6_FUNC_QUP0_L2, GPIO7_FUNC_QUP0_L3 }
16 [QUPV3_0_SE2] = { .regs = (void *)QUP_SERIAL2_BASE,
17 .pin = { GPIO(8), GPIO(9), GPIO(10), GPIO(11) },
18 .func = { GPIO8_FUNC_QUP0_L0, GPIO9_FUNC_QUP0_L1,
19 GPIO10_FUNC_QUP0_L2, GPIO11_FUNC_QUP0_L3 }
21 [QUPV3_0_SE3] = { .regs = (void *)QUP_SERIAL3_BASE,
22 .pin = { GPIO(12), GPIO(13), GPIO(14), GPIO(15) },
23 .func = { GPIO12_FUNC_QUP0_L0, GPIO13_FUNC_QUP0_L1,
24 GPIO14_FUNC_QUP0_L2, GPIO15_FUNC_QUP0_L3 }
26 [QUPV3_0_SE4] = { .regs = (void *)QUP_SERIAL4_BASE,
27 .pin = { GPIO(16), GPIO(17), GPIO(18), GPIO(19) },
28 .func = { GPIO16_FUNC_QUP0_L0, GPIO17_FUNC_QUP0_L1,
29 GPIO18_FUNC_QUP0_L2, GPIO19_FUNC_QUP0_L3 }
31 [QUPV3_0_SE5] = { .regs = (void *)QUP_SERIAL5_BASE,
32 .pin = { GPIO(20), GPIO(21), GPIO(22), GPIO(23) },
33 .func = { GPIO20_FUNC_QUP0_L0, GPIO21_FUNC_QUP0_L1,
34 GPIO22_FUNC_QUP0_L2, GPIO23_FUNC_QUP0_L3 }
36 [QUPV3_0_SE6] = { .regs = (void *)QUP_SERIAL6_BASE,
37 .pin = { GPIO(24), GPIO(25), GPIO(26), GPIO(27) },
38 .func = { GPIO24_FUNC_QUP0_L0, GPIO25_FUNC_QUP0_L1,
39 GPIO26_FUNC_QUP0_L2, GPIO27_FUNC_QUP0_L3 }
41 [QUPV3_0_SE7] = { .regs = (void *)QUP_SERIAL7_BASE,
42 .pin = { GPIO(28), GPIO(29), GPIO(30), GPIO(31) },
43 .func = { GPIO28_FUNC_QUP0_L0, GPIO29_FUNC_QUP0_L1,
44 GPIO30_FUNC_QUP0_L2, GPIO31_FUNC_QUP0_L3 }
46 [QUPV3_1_SE0] = { .regs = (void *)QUP_SERIAL8_BASE,
47 .pin = { GPIO(32), GPIO(33), GPIO(34), GPIO(35) },
48 .func = { GPIO32_FUNC_QUP1_L0, GPIO33_FUNC_QUP1_L1,
49 GPIO34_FUNC_QUP1_L2, GPIO35_FUNC_QUP1_L3 }
51 [QUPV3_1_SE1] = { .regs = (void *)QUP_SERIAL9_BASE,
52 .pin = { GPIO(36), GPIO(37), GPIO(38), GPIO(39) },
53 .func = { GPIO36_FUNC_QUP1_L0, GPIO37_FUNC_QUP1_L1,
54 GPIO38_FUNC_QUP1_L2, GPIO39_FUNC_QUP1_L3 }
56 [QUPV3_1_SE2] = { .regs = (void *)QUP_SERIAL10_BASE,
57 .pin = { GPIO(40), GPIO(41), GPIO(42), GPIO(43) },
58 .func = { GPIO40_FUNC_QUP1_L0, GPIO41_FUNC_QUP1_L1,
59 GPIO42_FUNC_QUP1_L2, GPIO43_FUNC_QUP1_L3 }
61 [QUPV3_1_SE3] = { .regs = (void *)QUP_SERIAL11_BASE,
62 .pin = { GPIO(44), GPIO(45), GPIO(46), GPIO(47) },
63 .func = { GPIO44_FUNC_QUP1_L0, GPIO45_FUNC_QUP1_L1,
64 GPIO46_FUNC_QUP1_L2, GPIO47_FUNC_QUP1_L3 }
66 [QUPV3_1_SE4] = { .regs = (void *)QUP_SERIAL12_BASE,
67 .pin = { GPIO(48), GPIO(49), GPIO(50), GPIO(51) },
68 .func = { GPIO48_FUNC_QUP1_L0, GPIO49_FUNC_QUP1_L1,
69 GPIO50_FUNC_QUP1_L2, GPIO51_FUNC_QUP1_L3 }
71 [QUPV3_1_SE5] = { .regs = (void *)QUP_SERIAL13_BASE,
72 .pin = { GPIO(52), GPIO(53), GPIO(54), GPIO(55) },
73 .func = { GPIO52_FUNC_QUP1_L0, GPIO53_FUNC_QUP1_L1,
74 GPIO54_FUNC_QUP1_L2, GPIO55_FUNC_QUP1_L3 }
76 [QUPV3_1_SE6] = { .regs = (void *)QUP_SERIAL14_BASE,
77 .pin = { GPIO(56), GPIO(57), GPIO(58), GPIO(59) },
78 .func = { GPIO56_FUNC_QUP1_L0, GPIO57_FUNC_QUP1_L1,
79 GPIO58_FUNC_QUP1_L2, GPIO59_FUNC_QUP1_L3 }
81 [QUPV3_1_SE7] = { .regs = (void *)QUP_SERIAL15_BASE,
82 .pin = { GPIO(60), GPIO(61), GPIO(62), GPIO(63) },
83 .func = { GPIO60_FUNC_QUP1_L0, GPIO61_FUNC_QUP1_L1,
84 GPIO62_FUNC_QUP1_L2, GPIO63_FUNC_QUP1_L3 }