summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/dedede/variants/baseboard/gpio.c
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2020-04-17 10:16:52 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-04-20 06:25:50 +0000
commitda38715ec3cef00ffa893a2adbee30674bf5f9a4 (patch)
tree8fb26f5a187a876ce182dd3d03bef09873896dbb /src/mainboard/google/dedede/variants/baseboard/gpio.c
parent816c5cb9fc431a46368e7b8f3596d92653a831e0 (diff)
downloadcoreboot-da38715ec3cef00ffa893a2adbee30674bf5f9a4.tar.gz
coreboot-da38715ec3cef00ffa893a2adbee30674bf5f9a4.tar.bz2
coreboot-da38715ec3cef00ffa893a2adbee30674bf5f9a4.zip
mb/google/dedede: Read DRAM population strap
Configure DRAM population strap GPIO according to the schematics. Configure an internal pull-up to support the boards in which the strap is not populated. Read the strap and pass that information to FSP for memory initialization. BUG=b:152275658, b:154301008 TEST=Build and boot the mainboard. Ensure that the strap information is read as expected and passed to FSP. Change-Id: I69583f35ffc219bae9ce06bd4ba9898ed0d4d21d Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39812 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/dedede/variants/baseboard/gpio.c')
-rw-r--r--src/mainboard/google/dedede/variants/baseboard/gpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/google/dedede/variants/baseboard/gpio.c b/src/mainboard/google/dedede/variants/baseboard/gpio.c
index d12d2c464d5c..a4ce97d8a5bb 100644
--- a/src/mainboard/google/dedede/variants/baseboard/gpio.c
+++ b/src/mainboard/google/dedede/variants/baseboard/gpio.c
@@ -348,7 +348,7 @@ static const struct pad_config gpio_table[] = {
/* S0 : RAM_STRAP_4 */
- PAD_NC(GPP_S0, NONE),
+ PAD_CFG_GPI(GPP_S0, UP_5K, DEEP),
/* S1 : RSVD_STRAP */
PAD_NC(GPP_S1, NONE),
/* S2 : DMIC1_CLK */
@@ -416,6 +416,9 @@ static const struct pad_config early_gpio_table[] = {
/* H19 : BT_DISABLE_L */
PAD_CFG_GPO(GPP_H19, 0, DEEP),
+
+ /* S0 : RAM_STRAP_4 */
+ PAD_CFG_GPI(GPP_S0, UP_5K, DEEP),
};
const struct pad_config *__weak variant_gpio_table(size_t *num)