summaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne/chip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/cezanne/chip.c')
-rw-r--r--src/soc/amd/cezanne/chip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/chip.c b/src/soc/amd/cezanne/chip.c
index 625f46ce8e..f184cb543b 100644
--- a/src/soc/amd/cezanne/chip.c
+++ b/src/soc/amd/cezanne/chip.c
@@ -1,10 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <amdblocks/aoac.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <fsp/api.h>
#include <soc/acpi.h>
+#include <soc/aoac_defs.h>
#include <soc/cpu.h>
#include <soc/data_fabric.h>
#include <soc/pci_devs.h>
@@ -57,6 +59,10 @@ static void set_mmio_dev_ops(struct device *dev)
case APU_UART1_BASE:
dev->ops = &cezanne_uart_mmio_ops;
break;
+ case APU_EMMC_BASE:
+ if (!dev->enabled)
+ power_off_aoac_device(FCH_AOAC_DEV_EMMC);
+ break;
}
}