From 6b0fc80ff2af15d47ff7e8560768c9ed752594c0 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Thu, 2 Aug 2018 15:56:34 -0600 Subject: soc/amd/stoneyridge: Enable spread spectrum in bootblock setup_spread_spectrum is called in early_init, meaning the console is not initialized yet. So you won't see boot block booting twice. BUG=b:111610455 TEST=booted grunt and verified that AmdInitReset does not reboot. I had AGESA patched to skip the JTAG check. Change-Id: Ia036ea513ac67d4b8bcf5a78029d969a4ae012a6 Signed-off-by: Raul E Rangel Reviewed-on: https://review.coreboot.org/27813 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/stoneyridge/sb_util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/soc/amd/stoneyridge/sb_util.c') diff --git a/src/soc/amd/stoneyridge/sb_util.c b/src/soc/amd/stoneyridge/sb_util.c index 26c86e8238..9daf0bbf8d 100644 --- a/src/soc/amd/stoneyridge/sb_util.c +++ b/src/soc/amd/stoneyridge/sb_util.c @@ -36,6 +36,16 @@ u16 pm_read16(u8 reg) return read16((void *)(PM_MMIO_BASE + reg)); } +void misc_write32(u8 reg, u32 value) +{ + write32((void *)(MISC_MMIO_BASE + reg), value); +} + +u32 misc_read32(u8 reg) +{ + return read32((void *)(MISC_MMIO_BASE + reg)); +} + void pm_write32(u8 reg, u32 value) { write32((void *)(PM_MMIO_BASE + reg), value); -- cgit v1.2.3