diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-06-24 20:49:05 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2022-06-26 21:58:05 +0000 |
commit | 5a55a455cd03000aeb6a0b085e0779f99b85e26c (patch) | |
tree | 8bd5beefd032c35827f8bc9be87176ffe526f41e /src/soc/intel/baytrail/southcluster.c | |
parent | 1cc775ef9d4efd041db5dde45d822f54a3b27466 (diff) |
soc/intel/baytrail,braswell: Do resource transition
Change-Id: Ia44be7d63b0e6e16a49695d430715a7e5785d530
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55925
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/baytrail/southcluster.c')
-rw-r--r-- | src/soc/intel/baytrail/southcluster.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/soc/intel/baytrail/southcluster.c b/src/soc/intel/baytrail/southcluster.c index 57205459db..1afea590a2 100644 --- a/src/soc/intel/baytrail/southcluster.c +++ b/src/soc/intel/baytrail/southcluster.c @@ -23,22 +23,16 @@ #include "chip.h" #include <acpi/acpigen.h> -static inline void add_mmio_resource(struct device *dev, int i, unsigned long addr, - unsigned long size) -{ - mmio_resource_kb(dev, i, addr >> 10, size >> 10); -} - static void sc_add_mmio_resources(struct device *dev) { - add_mmio_resource(dev, 0xfeb, ABORT_BASE_ADDRESS, ABORT_BASE_SIZE); - add_mmio_resource(dev, PBASE, PMC_BASE_ADDRESS, PMC_BASE_SIZE); - add_mmio_resource(dev, IOBASE, IO_BASE_ADDRESS, IO_BASE_SIZE); - add_mmio_resource(dev, IBASE, ILB_BASE_ADDRESS, ILB_BASE_SIZE); - add_mmio_resource(dev, SBASE, SPI_BASE_ADDRESS, SPI_BASE_SIZE); - add_mmio_resource(dev, MPBASE, MPHY_BASE_ADDRESS, MPHY_BASE_SIZE); - add_mmio_resource(dev, PUBASE, PUNIT_BASE_ADDRESS, PUNIT_BASE_SIZE); - add_mmio_resource(dev, RCBA, RCBA_BASE_ADDRESS, RCBA_BASE_SIZE); + mmio_range(dev, 0xfeb, ABORT_BASE_ADDRESS, ABORT_BASE_SIZE); + mmio_range(dev, PBASE, PMC_BASE_ADDRESS, PMC_BASE_SIZE); + mmio_range(dev, IOBASE, IO_BASE_ADDRESS, IO_BASE_SIZE); + mmio_range(dev, IBASE, ILB_BASE_ADDRESS, ILB_BASE_SIZE); + mmio_range(dev, SBASE, SPI_BASE_ADDRESS, SPI_BASE_SIZE); + mmio_range(dev, MPBASE, MPHY_BASE_ADDRESS, MPHY_BASE_SIZE); + mmio_range(dev, PUBASE, PUNIT_BASE_ADDRESS, PUNIT_BASE_SIZE); + mmio_range(dev, RCBA, RCBA_BASE_ADDRESS, RCBA_BASE_SIZE); } /* Default IO range claimed by the LPC device. The upper bound is exclusive. */ |