diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2020-12-01 00:34:11 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2020-12-02 21:27:21 +0000 |
commit | 875e5aa96c8d9e767d24b99015abb66bf7e0ef75 (patch) | |
tree | 4499acee68d6d7c43d5603650dd34ea4b4e12b15 /src/soc/amd/common/block/smbus/smbus.c | |
parent | 6443ad4a53ab65a2a9c1d29f422644e450c04cd7 (diff) | |
download | coreboot-875e5aa96c8d9e767d24b99015abb66bf7e0ef75.tar.xz |
soc/amd: factor out SMBUS controller registers into common header
The patch also rewrites the bit definition using shifts to make them
easier to read.
The older non-SoC chips can probably also use the new header file, but
for this patch the scope is limited to soc/amd, since the older non-SoC
chips don't use the SMBUS controller code in soc/amd/common.
TEST=Timeless build for amd/mandolin and amd/gardenia doesn't change.
Change-Id: Ifd5e7e64a41f1cb20cdc4d6ad1e675d7f2de352b
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48188
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd/common/block/smbus/smbus.c')
-rw-r--r-- | src/soc/amd/common/block/smbus/smbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/smbus/smbus.c b/src/soc/amd/common/block/smbus/smbus.c index e30448312d..e94adf5bc6 100644 --- a/src/soc/amd/common/block/smbus/smbus.c +++ b/src/soc/amd/common/block/smbus/smbus.c @@ -5,7 +5,7 @@ #include <device/smbus_host.h> #include <amdblocks/acpimmio.h> #include <amdblocks/acpimmio_map.h> -#include <soc/southbridge.h> +#include <amdblocks/smbus.h> /* * Between 1-10 seconds, We should never timeout normally |