summaryrefslogtreecommitdiff
path: root/src/mainboard/google/trogdor/mainboard.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-08 08:53:19 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-09 23:59:40 +0000
commitca20fc3c6d252215ba50990cb203af31a0e3cb59 (patch)
tree7bb08396998be965054dc9a64a95bda3c78b899b /src/mainboard/google/trogdor/mainboard.c
parent60803c12fca18cea4ff2fdc6a5de4e7c1a47f38f (diff)
mb/google/{herobrine,peach_pit,trogdor}: Use {read,write}32p()
Change-Id: I2e1978f20b085f609cbeb0907374383f2d11fbf0 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70474 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/trogdor/mainboard.c')
-rw-r--r--src/mainboard/google/trogdor/mainboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c
index 99c325e28a..f1409ce390 100644
--- a/src/mainboard/google/trogdor/mainboard.c
+++ b/src/mainboard/google/trogdor/mainboard.c
@@ -280,9 +280,9 @@ static void display_startup(void)
static void configure_sdhci(void)
{
/* Program eMMC drive strength to 16/16/16 mA */
- write32((void *)SDC1_TLMM_CFG_ADDR, 0x9FFF);
+ write32p(SDC1_TLMM_CFG_ADDR, 0x9FFF);
/* Program SD card drive strength to 16/10/10 mA */
- write32((void *)SDC2_TLMM_CFG_ADDR, 0x1FE4);
+ write32p(SDC2_TLMM_CFG_ADDR, 0x1FE4);
}
static void mainboard_init(struct device *dev)