summaryrefslogtreecommitdiff
path: root/src/mainboard/google/mistral/mainboard.c
diff options
context:
space:
mode:
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)