soc/amd/picasso: Use read*p
This avoids compiler warnings on 64bit builds that complains about casting pointer to non matching integer size. Change-Id: I29fdb73ae1c0508796a21b650bf4fd1ac6688021 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63726 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Felix Held
parent
eb8bbb6c04
commit
4c684877d1
@@ -109,7 +109,7 @@ static void sb_rfmux_config_override(void)
|
||||
|
||||
for (port = 0; port < USB_PD_PORT_COUNT; port++) {
|
||||
if (cfg->usb_pd_config_override[port].rfmux_override_en) {
|
||||
write32((void *)(USB_PD_PORT_CONTROL + PD_PORT_MUX_OFFSET(port)),
|
||||
write32p(USB_PD_PORT_CONTROL + PD_PORT_MUX_OFFSET(port),
|
||||
cfg->usb_pd_config_override[port].rfmux_config
|
||||
| USB_PD_RFMUX_OVERRIDE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user