aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/include
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2020-09-09 21:34:05 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-17 21:13:29 +0000
commit1c2b1b977ae4fb74435336b23ebb774f22563012 (patch)
treed0a1bcab3f96489dcb21cc69160c942c4e0e962a /src/soc/intel/cannonlake/include
parent748bfac734b0cabfa0e2684886e434ece4a077f1 (diff)
soc/intel/cannonlake: rename "RSVD" GPIOs to their correct names
The names of the GPIO_RSVD_* are documented in the PCH EDS, in Linux (linux/drivers/pinctrl/intel/pinctrl-cannonlake.c) and other places. Also, see soc/intel/tigerlake for reference. Change-Id: I59df09c8fd464e75f918455aa1972765abc51459 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45210 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Diffstat (limited to 'src/soc/intel/cannonlake/include')
-rw-r--r--src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h100
-rw-r--r--src/soc/intel/cannonlake/include/soc/gpio_soc_defs_cnp_h.h100
2 files changed, 100 insertions, 100 deletions
diff --git a/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h b/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h
index f5a926296e..b5d34dcb5f 100644
--- a/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h
+++ b/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h
@@ -57,7 +57,7 @@
#define GPP_A21 21
#define GPP_A22 22
#define GPP_A23 23
-#define GPIO_RSVD_0 24
+#define ESPI_CLK_LOOPBK 24
/* Group B */
#define GPP_B0 25
#define GPP_B1 26
@@ -83,8 +83,8 @@
#define GPP_B21 46
#define GPP_B22 47
#define GPP_B23 48
-#define GPIO_RSVD_1 49
-#define GPIO_RSVD_2 50
+#define GSPI0_CLK_LOOPBK 49
+#define GSPI1_CLK_LOOPBK 50
/* Group G */
#define GPP_G0 51
#define GPP_G1 52
@@ -95,17 +95,17 @@
#define GPP_G6 57
#define GPP_G7 58
/* Group SPI */
-#define GPIO_RSVD_3 59
-#define GPIO_RSVD_4 60
-#define GPIO_RSVD_5 61
-#define GPIO_RSVD_6 62
-#define GPIO_RSVD_7 63
-#define GPIO_RSVD_8 64
-#define GPIO_RSVD_9 65
-#define GPIO_RSVD_10 66
-#define GPIO_RSVD_11 67
+#define SPI0_IO_2 59
+#define SPI0_IO_3 60
+#define SPI0_MOSI 61
+#define SPI0_MISO 62
+#define SPI0_CS2_B 63
+#define SPI0_CS0_B 64
+#define SPI0_CS1_B 65
+#define SPI0_CLK 66
+#define SPI0_CLK_LOOPBK 67
-#define NUM_GPIO_COM0_PADS (GPIO_RSVD_11 - GPP_A0 + 1)
+#define NUM_GPIO_COM0_PADS (SPI0_CLK_LOOPBK - GPP_A0 + 1)
/* Group D */
#define GPP_D0 68
@@ -132,7 +132,7 @@
#define GPP_D21 89
#define GPP_D22 90
#define GPP_D23 91
-#define GPIO_RSVD_12 92
+#define GSPI2_CLK_LOOPBK 92
/* Group F */
#define GPP_F0 93
#define GPP_F1 94
@@ -188,7 +188,7 @@
#define CNV_GNEN 142
#define CNV_WFEN 143
#define CNV_WCEN 144
-#define CNV_BT_HOST_WAKEB 145
+#define CNV_BT_HOST_WAKE_B 145
#define CNV_BT_IF_SELECT 146
#define vCNV_BT_UART_TXD 147
#define vCNV_BT_UART_RXD 148
@@ -222,7 +222,7 @@
#define vSSP2_SFRM 176
#define vSSP2_TXD 177
#define vSSP2_RXD 178
-#define vCNV_GNSS_HOST_WAKEB 179
+#define vCNV_GNSS_HOST_WAKE_B 179
#define vSD3_CD_B 180
#define NUM_GPIO_COM1_PADS (vSD3_CD_B - GPP_D0 + 1)
@@ -278,26 +278,26 @@
#define GPP_E22 227
#define GPP_E23 228
/* Group Jtag */
-#define GPIO_RSVD_13 229
-#define GPIO_RSVD_14 230
-#define GPIO_RSVD_15 231
-#define GPIO_RSVD_16 232
-#define GPIO_RSVD_17 233
-#define GPIO_RSVD_18 234
-#define GPIO_RSVD_19 235
-#define GPIO_RSVD_20 236
-#define GPIO_RSVD_21 237
+#define PCH_TDO 229
+#define PCH_JTAGX 230
+#define PROC_PRDY_B 231
+#define PROC_PREQ_B 232
+#define CPU_TRST_B 233
+#define PCH_TDI 234
+#define PCH_TMS 235
+#define PCH_TCK 236
+#define ITP_PMODE 237
/* Group HVMOS */
-#define GPIO_RSVD_22 238
-#define GPIO_RSVD_23 239
-#define GPIO_RSVD_24 240
-#define GPIO_RSVD_25 241
-#define GPIO_RSVD_26 242
-#define GPIO_RSVD_27 243
+#define EDP_BKLTEN 238
+#define EDP_BKLTCTL 239
+#define EDP_VDDEN 240
+#define SYS_PWROK 241
+#define SYS_RESET_B 242
+#define CL_RST_B 243
-#define NUM_GPIO_COM4_PADS (GPIO_RSVD_27 - GPP_C0 + 1)
+#define NUM_GPIO_COM4_PADS (CL_RST_B - GPP_C0 + 1)
-/* Group GPD */
+/* Group GPD */
#define GPD0 244
#define GPD1 245
#define GPD2 246
@@ -316,27 +316,27 @@
/* Group AZA */
#define HDA_BCLK 256
-#define HDA_RSTB 257
+#define HDA_RST_B 257
#define HDA_SYNC 258
#define HDA_SDO 259
-#define HDA_SDI_0 260
-#define HDA_SDI_1 261
-#define SSP1_SFRM 262
-#define SSP1_TXD 263
+#define HDA_SDI0 260
+#define HDA_SDI1 261
+#define I2S1_SFRM 262
+#define I2S1_TXD 263
/* Group CPU */
-#define GPIO_RSVD_28 264
-#define GPIO_RSVD_29 265
-#define GPIO_RSVD_30 266
-#define GPIO_RSVD_31 267
-#define GPIO_RSVD_32 268
-#define GPIO_RSVD_33 269
-#define GPIO_RSVD_34 270
-#define GPIO_RSVD_35 271
-#define GPIO_RSVD_36 272
-#define GPIO_RSVD_37 273
-#define GPIO_RSVD_38 274
+#define HDACPU_SDI 264
+#define HDACPU_SDO 265
+#define HDACPU_SCLK 266
+#define PM_SYNC 267
+#define PECI_IO 268
+#define CPUPWRGD 269
+#define THRMTRIP_B 270
+#define PLTRST_CPU_B 271
+#define PM_DOWN 272
+#define TRIGGER_IN 273
+#define TRIGGER_OUT 274
-#define NUM_GPIO_COM3_PADS (GPIO_RSVD_38 - HDA_BCLK + 1)
+#define NUM_GPIO_COM3_PADS (TRIGGER_OUT - HDA_BCLK + 1)
#define TOTAL_PADS 275
diff --git a/src/soc/intel/cannonlake/include/soc/gpio_soc_defs_cnp_h.h b/src/soc/intel/cannonlake/include/soc/gpio_soc_defs_cnp_h.h
index dde0a65a2a..dc332d1fe4 100644
--- a/src/soc/intel/cannonlake/include/soc/gpio_soc_defs_cnp_h.h
+++ b/src/soc/intel/cannonlake/include/soc/gpio_soc_defs_cnp_h.h
@@ -53,7 +53,7 @@
#define GPP_A21 21
#define GPP_A22 22
#define GPP_A23 23
-#define GPIO_RSVD_0 24
+#define ESPI_CLK_LOOPBK 24
/* Group B */
#define GPP_B0 25
@@ -80,10 +80,10 @@
#define GPP_B21 46
#define GPP_B22 47
#define GPP_B23 48
-#define GPIO_RSVD_1 49
-#define GPIO_RSVD_2 50
+#define GSPI0_CLK_LOOPBK 49
+#define GSPI1_CLK_LOOPBK 50
-#define NUM_GPIO_COM0_PADS (GPIO_RSVD_2 - GPP_A0 + 1)
+#define NUM_GPIO_COM0_PADS (GSPI1_CLK_LOOPBK - GPP_A0 + 1)
/* Group C */
#define GPP_C0 51
@@ -148,22 +148,22 @@
#define GPP_G7 106
/* AZA */
-#define GPIO_RSVD_3 107
-#define GPIO_RSVD_4 108
-#define GPIO_RSVD_5 109
-#define GPIO_RSVD_6 110
-#define GPIO_RSVD_7 111
-#define GPIO_RSVD_8 112
-#define GPIO_RSVD_9 113
-#define GPIO_RSVD_10 114
+#define HDA_BCLK 107
+#define HDA_RST_B 108
+#define HDA_SYNC 109
+#define HDA_SDO 110
+#define HDA_SDI0 111
+#define HDA_SDI1 112
+#define I2S1_SFRM 113
+#define I2S1_TXD 114
/* VGPIO_0 */
#define CNV_BTEN 115
#define CNV_GNEN 116
#define CNV_WFEN 117
#define CNV_WCEN 118
-#define CNV_BT_HOST_WAKEB 119
-#define vCNV_GNSS_HOST_WAKEB 120
+#define CNV_BT_HOST_WAKE_B 119
+#define vCNV_GNSS_HOST_WAKE_B 120
#define vSD3_CD_B 121
#define CNV_BT_IF_SELECT 122
#define vCNV_BT_UART_TXD 123
@@ -181,11 +181,11 @@
#define vUART0_TXD 135
#define vUART0_RXD 136
#define vUART0_CTS_B 137
-#define vUART0_RTSB 138
+#define vUART0_RTS_B 138
#define vISH_UART0_TXD 139
#define vISH_UART0_RXD 140
#define vISH_UART0_CTS_B 141
-#define vISH_UART0_RTSB 142
+#define vISH_UART0_RTS_B 142
#define vISH_UART1_TXD 143
#define vISH_UART1_RXD 144
#define vISH_UART1_CTS_B 145
@@ -296,41 +296,41 @@
#define GPP_F23 239
/* SPI */
-#define GPIO_RSVD_11 240
-#define GPIO_RSVD_12 241
-#define GPIO_RSVD_13 242
-#define GPIO_RSVD_14 243
-#define GPIO_RSVD_15 244
-#define GPIO_RSVD_16 245
-#define GPIO_RSVD_17 246
-#define GPIO_RSVD_18 247
-#define GPIO_RSVD_19 248
+#define SPI0_IO_2 240
+#define SPI0_IO_3 241
+#define SPI0_MOSI 242
+#define SPI0_MISO 243
+#define SPI0_CS2_B 244
+#define SPI0_CS0_B 245
+#define SPI0_CS1_B 246
+#define SPI0_CLK 247
+#define SPI0_CLK_LOOPBK 248
-#define NUM_GPIO_COM3_PADS (GPIO_RSVD_19 - GPP_K0 + 1)
+#define NUM_GPIO_COM3_PADS (SPI0_CLK_LOOPBK - GPP_K0 + 1)
/* CPU */
-#define GPIO_RSVD_20 249
-#define GPIO_RSVD_21 250
-#define GPIO_RSVD_22 251
-#define GPIO_RSVD_23 252
-#define GPIO_RSVD_24 253
-#define GPIO_RSVD_25 254
-#define GPIO_RSVD_26 255
-#define GPIO_RSVD_27 256
-#define GPIO_RSVD_28 257
-#define GPIO_RSVD_29 258
-#define GPIO_RSVD_30 259
+#define HDACPU_SDI 249
+#define HDACPU_SDO 250
+#define HDACPU_SCLK 251
+#define PM_SYNC 252
+#define PECI_IO 253
+#define CPUPWRGD 254
+#define THRMTRIP_B 255
+#define PLTRST_CPU_B 256
+#define PM_DOWN 257
+#define TRIGGER_IN 258
+#define TRIGGER_OUT 259
/* JTAG */
-#define GPIO_RSVD_31 260
-#define GPIO_RSVD_32 261
-#define GPIO_RSVD_33 262
-#define GPIO_RSVD_34 263
-#define GPIO_RSVD_35 264
-#define GPIO_RSVD_36 265
-#define GPIO_RSVD_37 266
-#define GPIO_RSVD_38 267
-#define GPIO_RSVD_39 268
+#define PCH_TDO 260
+#define PCH_JTAGX 261
+#define PROC_PRDY_B 262
+#define PROC_PREQ_B 263
+#define CPU_TRST_B 264
+#define PCH_TDI 265
+#define PCH_TMS 266
+#define PCH_TCK 267
+#define ITP_PMODE 268
/* Group I */
#define GPP_I0 269
@@ -348,9 +348,9 @@
#define GPP_I12 281
#define GPP_I13 282
#define GPP_I14 283
-#define GPIO_RSVD_40 284
-#define GPIO_RSVD_41 285
-#define GPIO_RSVD_42 286
+#define SYS_PWROK 284
+#define SYS_RESET_B 285
+#define CL_RST_B 286
/* Group J */
#define GPP_J0 287
@@ -368,7 +368,7 @@
#define NUM_GPIO_COM4_PADS (GPP_J11 - GPP_I0 + 1)
-/* Group GPD */
+/* Group GPD */
#define GPD0 299
#define GPD1 300
#define GPD2 301