diff options
Diffstat (limited to 'src/mainboard/google/herobrine/mainboard.c')
-rw-r--r-- | src/mainboard/google/herobrine/mainboard.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/herobrine/mainboard.c b/src/mainboard/google/herobrine/mainboard.c index dc60e6e2c4..6f8d19d8d1 100644 --- a/src/mainboard/google/herobrine/mainboard.c +++ b/src/mainboard/google/herobrine/mainboard.c @@ -6,15 +6,25 @@ #include <soc/clock.h> #include <console/console.h> #include <device/device.h> +#include <device/mmio.h> #include <bootblock_common.h> #include <soc/clock.h> +static void configure_sdhci(void) +{ + /* Program eMMC drive strength to 16/10/10 mA */ + write32((void *)SDC1_TLMM_CFG_ADDR, 0x9FE4); + /* Program SD card drive strength to 16/10/10 mA */ + write32((void *)SDC2_TLMM_CFG_ADDR, 0x1FE4); +} + static void mainboard_init(struct device *dev) { /* Configure clock for eMMC */ clock_configure_sdcc(1, 384 * MHz); /* Configure clock for SD card */ clock_configure_sdcc(2, 50 * MHz); + configure_sdhci(); } static void mainboard_enable(struct device *dev) |