aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/southbridge.c
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@scarletltd.com>2018-05-01 14:44:14 -0600
committerMartin Roth <martinroth@google.com>2018-05-02 20:49:10 +0000
commit12deac1421b4832b8a63da8dea5da7f5d11ea263 (patch)
tree54544a7510a2b569271f70a04cfa25ee766e4399 /src/soc/amd/stoneyridge/southbridge.c
parentfe588985f2e9a9ba4c2839f5e65c3f69d96751b3 (diff)
soc/amd/stoneyridge: remove sb_set_readspeed function
The sb_set_readspeed() was touching the wrong register and the read speed settings are handled by sb_set_spi100(). Nothing was using the function, so remove it. Change-Id: I23b20cf559ee759ba94d49ff6810a9baa64e86fb Signed-off-by: Marc Jones <marc.jones@scarletltd.com> Reviewed-on: https://review.coreboot.org/25969 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/amd/stoneyridge/southbridge.c')
-rw-r--r--src/soc/amd/stoneyridge/southbridge.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index a767e0c297..eb8820f250 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -442,15 +442,6 @@ void sb_disable_4dw_burst(void)
& ~SPI_RD4DW_EN_HOST);
}
-void sb_set_readspeed(u16 norm, u16 fast)
-{
- uintptr_t base = sb_spibase();
- write16((void *)base + SPI_CNTRL1, (read16((void *)base + SPI_CNTRL1)
- & ~SPI_CNTRL1_SPEED_MASK)
- | (norm << SPI_NORM_SPEED_SH)
- | (fast << SPI_FAST_SPEED_SH));
-}
-
void sb_read_mode(u32 mode)
{
uintptr_t base = sb_spibase();