diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2017-09-27 14:53:34 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-10-02 22:27:19 +0000 |
commit | 16745e39b636ad58e0f43b254ceb7812b7fbe7f9 (patch) | |
tree | 86d437d98b34440da32c903e848171bed0b8a818 /src/soc/amd/stoneyridge/southbridge.c | |
parent | f7ace0da45d37da9482df3b0e38fe3cabbb9a1c0 (diff) |
amd/stoneyridge: Add pm_read32 and pm_write32 to southbridge
Duplicate existing pm_read and pm_write and create 32-bit register
access functions.
Change-Id: I916130a229dc7cef8dae1faf00a38501d3939979
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/21749
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'src/soc/amd/stoneyridge/southbridge.c')
-rw-r--r-- | src/soc/amd/stoneyridge/southbridge.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c index ebda770be2..8377eca9b0 100644 --- a/src/soc/amd/stoneyridge/southbridge.c +++ b/src/soc/amd/stoneyridge/southbridge.c @@ -58,6 +58,16 @@ u16 pm_read16(u8 reg) return read16((void *)(PM_MMIO_BASE + reg)); } +void pm_write32(u8 reg, u32 value) +{ + write32((void *)(PM_MMIO_BASE + reg), value); +} + +u32 pm_read32(u8 reg) +{ + return read32((void *)(PM_MMIO_BASE + reg)); +} + void sb_enable(device_t dev) { printk(BIOS_DEBUG, "%s\n", __func__); |