summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-12-20 22:44:08 +0100
committerShelley Chen <shchen@google.com>2023-12-26 17:06:03 +0000
commit1b60e5c5c92e96b11a87d2649a0045bb451d9de1 (patch)
tree1de0398df72901e67fe22e6441cbd9475d0a0917 /src/soc
parent06f4f65d241d1908c5d72cd0455351194ce52ca7 (diff)
soc/amd/picasso/fsp_s_params: use is_dev_enabled
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I5b692aaa2e3f768cc03bca71eff3ceb1a8733ad3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79670 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/picasso/fsp_s_params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/picasso/fsp_s_params.c b/src/soc/amd/picasso/fsp_s_params.c
index f69245d0c8..c35612dd59 100644
--- a/src/soc/amd/picasso/fsp_s_params.c
+++ b/src/soc/amd/picasso/fsp_s_params.c
@@ -58,7 +58,7 @@ static void fsps_update_emmc_config(FSP_S_CONFIG *scfg,
/* Make sure that the FSP knows that the EMMC controller should be disabled when the
corresponding MMIO device is disabled */
- if (!DEV_PTR(emmc)->enabled)
+ if (!is_dev_enabled(DEV_PTR(emmc)))
val = SD_DISABLE;
scfg->emmc0_mode = val;