summaryrefslogtreecommitdiff
path: root/src/mainboard/google/mistral/mainboard.c
diff options
context:
space:
mode:
authorShaik Sajida Bhanu <sbhanu@codeaurora.org>2021-08-30 12:09:46 +0530
committerJulius Werner <jwerner@chromium.org>2021-09-16 17:16:14 +0000
commit7bf3d0cbd8c36504795be940acdab9b78c5afa31 (patch)
tree24457a16adcc2ab29c0d5c4917c498b7c69d370b /src/mainboard/google/mistral/mainboard.c
parente3cf008d88447b8a9ee3c08f755dcee4ada80a77 (diff)
mainboard/google: Update the TLMM registers for sdhc
Update the TLMM register values for eMMC and SD card on Trogdor, Herobrine and Mistral boards. BUG=b:196936525 TEST=Validated on qualcomm sc7280 and sc7180 development board and checked basic boot up. Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org> Change-Id: Iccdb7757027c6de424a82e4374bad802501ac83c Reviewed-on: https://review.coreboot.org/c/coreboot/+/57450 Reviewed-by: Shelley Chen <shchen@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/mistral/mainboard.c')
-rw-r--r--src/mainboard/google/mistral/mainboard.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/mistral/mainboard.c b/src/mainboard/google/mistral/mainboard.c
index 804afb4135..e45ff8fef6 100644
--- a/src/mainboard/google/mistral/mainboard.c
+++ b/src/mainboard/google/mistral/mainboard.c
@@ -1,8 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
+#include <device/mmio.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include <soc/usb.h>
+#include <soc/addressmap.h>
static struct usb_board_data usb1_board_data = {
.parameter_override_x0 = 0x63,
@@ -17,6 +19,12 @@ static void setup_usb(void)
setup_usb_host(HSUSB_HS_PORT_1, &usb1_board_data);
}
+static void configure_sdhci(void)
+{
+ /* Program eMMC drive strength to 16/10/10 mA */
+ write32((void *)SDC1_TLMM_CFG_ADDR, 0x9FE4);
+}
+
static void mainboard_init(struct device *dev)
{
/* Copy WIFI calibration data into CBMEM. */
@@ -24,6 +32,7 @@ static void mainboard_init(struct device *dev)
cbmem_add_vpd_calibration_data();
setup_usb();
+ configure_sdhci();
}
static void mainboard_enable(struct device *dev)