diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-10-04 14:53:56 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-10-13 19:39:20 +0000 |
commit | bd15ece78af605bca9fc092baa094c87d5b8244b (patch) | |
tree | 367384023fd4a437d2334706ae971ef0da77bad9 /src/soc/amd/mendocino/chip.c | |
parent | d6b6b2261667f0a4688fa0cf9f0699596d7efc93 (diff) |
soc/amd/*: Move emmc disabling to device ops
This allows for reduced use of chip_operations in the followup patch and
allows the allocator to skip over the used mmio.
Change-Id: I4052438185e7861792733b96a1298201c73fc3ff
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68113
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/soc/amd/mendocino/chip.c')
-rw-r--r-- | src/soc/amd/mendocino/chip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/amd/mendocino/chip.c b/src/soc/amd/mendocino/chip.c index 41b244669f..f71c28586f 100644 --- a/src/soc/amd/mendocino/chip.c +++ b/src/soc/amd/mendocino/chip.c @@ -2,13 +2,11 @@ /* TODO: Check if this is still correct */ -#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> @@ -20,6 +18,9 @@ extern struct device_operations soc_amd_i2c_mmio_ops; /* Supplied by uart.c */ extern struct device_operations mendocino_uart_mmio_ops; +/* Supplied by emmc.c */ +extern struct device_operations mendocino_emmc_mmio_ops; + struct device_operations cpu_bus_ops = { .read_resources = noop_read_resources, @@ -65,8 +66,7 @@ static void set_mmio_dev_ops(struct device *dev) dev->ops = &mendocino_uart_mmio_ops; break; case APU_EMMC_BASE: - if (!dev->enabled) - power_off_aoac_device(FCH_AOAC_DEV_EMMC); + dev->ops = &mendocino_emmc_mmio_ops; break; } } |