From 1b60e5c5c92e96b11a87d2649a0045bb451d9de1 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 20 Dec 2023 22:44:08 +0100 Subject: soc/amd/picasso/fsp_s_params: use is_dev_enabled Signed-off-by: Felix Held Change-Id: I5b692aaa2e3f768cc03bca71eff3ceb1a8733ad3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79670 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/soc/amd/picasso/fsp_s_params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3