summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/jasperlake_rvp
diff options
context:
space:
mode:
authorRonak Kanabar <ronak.kanabar@intel.com>2020-03-13 12:13:54 +0530
committerPatrick Georgi <pgeorgi@google.com>2020-04-20 06:09:42 +0000
commitda4272454981be0eb225bc5786935891181cf0f8 (patch)
tree974440d9fd49664a4d6385737bee4c966d9232d1 /src/mainboard/intel/jasperlake_rvp
parentc42cf911ad787364aea359deb7c5a1c24f9bdd35 (diff)
downloadcoreboot-da4272454981be0eb225bc5786935891181cf0f8.tar.xz
mb/intel/jasperlake_rvp: Add SD Card gpio config for JSLRVP
Configure write protect and card detect SD Card GPIO for JSLRVP as per schematics. BUG=None BRANCH=None TEST=Build, boot JSLRVP and verified SD Card detection. Change-Id: I8114d6980a2a542538b05f812ca2cffc15c88c22 Signed-off-by: Ronak Kanabar <ronak.kanabar@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39492 Reviewed-by: Maulik V Vaghela <maulik.v.vaghela@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/intel/jasperlake_rvp')
-rw-r--r--src/mainboard/intel/jasperlake_rvp/variants/jslrvp/devicetree.cb3
-rw-r--r--src/mainboard/intel/jasperlake_rvp/variants/jslrvp/gpio.c9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/devicetree.cb b/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/devicetree.cb
index f5915046ca..b632b7804c 100644
--- a/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/devicetree.cb
+++ b/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/devicetree.cb
@@ -124,6 +124,9 @@ chip soc/intel/jasperlake
# Enable S0ix
register "s0ix_enable" = "1"
+ # GPIO for SD card detect
+ register "sdcard_cd_gpio" = "VGPIO_39"
+
register "common_soc_config" = "{
.chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
.gspi[1] = {
diff --git a/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/gpio.c b/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/gpio.c
index 45ba5efd5b..726417a8cc 100644
--- a/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/gpio.c
+++ b/src/mainboard/intel/jasperlake_rvp/variants/jslrvp/gpio.c
@@ -19,6 +19,15 @@ static const struct pad_config gpio_table[] = {
/* I2S_MCLK */
PAD_CFG_NF(GPP_D18, NONE, DEEP, NF1),
+ /* SD_CD# */
+ PAD_CFG_NF(GPP_G5, UP_20K, PWROK, NF1),
+
+ /* SD_WP */
+ PAD_CFG_NF(GPP_G7, DN_20K, PWROK, NF1),
+
+ /* virtual GPIO for SD card detect */
+ PAD_CFG_GPI_GPIO_DRIVER(VGPIO_39, NONE, DEEP),
+
/* I2S1_SCLK */
PAD_CFG_NF(GPP_H15, NONE, DEEP, NF1),