diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-01-07 11:16:35 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-01-12 16:03:45 +0000 |
commit | d1141ab5a49980de0d7da23879ce6ddf238471af (patch) | |
tree | a9e1347bb6c7066909a53e3ab82dfbb8a99d822e /src/southbridge | |
parent | 61af679838ab52318641828b6a77c81229033c77 (diff) | |
download | coreboot-d1141ab5a49980de0d7da23879ce6ddf238471af.tar.gz coreboot-d1141ab5a49980de0d7da23879ce6ddf238471af.tar.bz2 coreboot-d1141ab5a49980de0d7da23879ce6ddf238471af.zip |
intel/e7505,i82801dx: Refactor raminit
Avoid direct enable_smbus() call from northbridge code.
Change-Id: I077e455242db9fc0f86432bd1afab75cb6fb6f4c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38267
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/southbridge')
-rw-r--r-- | src/southbridge/intel/i82801dx/early_smbus.c | 5 | ||||
-rw-r--r-- | src/southbridge/intel/i82801dx/i82801dx.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/southbridge/intel/i82801dx/early_smbus.c b/src/southbridge/intel/i82801dx/early_smbus.c index 77b0aa084bb3..de0bc9397877 100644 --- a/src/southbridge/intel/i82801dx/early_smbus.c +++ b/src/southbridge/intel/i82801dx/early_smbus.c @@ -21,6 +21,11 @@ #include "i82801dx.h" +void i82801dx_early_init(void) +{ + enable_smbus(); +} + void enable_smbus(void) { pci_devfn_t dev = PCI_DEV(0x0, 0x1f, 0x3); diff --git a/src/southbridge/intel/i82801dx/i82801dx.h b/src/southbridge/intel/i82801dx/i82801dx.h index 50122d830b6a..8717e5943b29 100644 --- a/src/southbridge/intel/i82801dx/i82801dx.h +++ b/src/southbridge/intel/i82801dx/i82801dx.h @@ -35,6 +35,7 @@ #include "chip.h" void i82801dx_enable(struct device *dev); +void i82801dx_early_init(void); void enable_smbus(void); int smbus_read_byte(unsigned int device, unsigned int address); void aseg_smm_lock(void); |