summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/picasso')
-rw-r--r--src/soc/amd/picasso/psp_verstage/fch.c5
-rw-r--r--src/soc/amd/picasso/psp_verstage/psp_verstage.c3
-rw-r--r--src/soc/amd/picasso/psp_verstage/psp_verstage.h1
-rw-r--r--src/soc/amd/picasso/southbridge.c18
4 files changed, 4 insertions, 23 deletions
diff --git a/src/soc/amd/picasso/psp_verstage/fch.c b/src/soc/amd/picasso/psp_verstage/fch.c
index b813770b4a..e6c70f62ee 100644
--- a/src/soc/amd/picasso/psp_verstage/fch.c
+++ b/src/soc/amd/picasso/psp_verstage/fch.c
@@ -102,11 +102,6 @@ uintptr_t *map_spi_rom(void)
return addr;
}
-void sb_enable_legacy_io(void)
-{
- pm_io_write32(PM_DECODE_EN, pm_io_read32(PM_DECODE_EN) | LEGACY_IO_EN);
-}
-
static uint32_t map_fch_devices(void)
{
void *bar;
diff --git a/src/soc/amd/picasso/psp_verstage/psp_verstage.c b/src/soc/amd/picasso/psp_verstage/psp_verstage.c
index f367dce6fd..8ef2dcde34 100644
--- a/src/soc/amd/picasso/psp_verstage/psp_verstage.c
+++ b/src/soc/amd/picasso/psp_verstage/psp_verstage.c
@@ -2,6 +2,7 @@
#include "psp_verstage.h"
+#include <amdblocks/acpimmio.h>
#include <bl_uapp/bl_syscall_public.h>
#include <boot_device.h>
#include <cbfs.h>
@@ -237,7 +238,7 @@ void Main(void)
verstage_mainboard_early_init();
svc_write_postcode(POSTCODE_LATE_INIT);
- sb_enable_legacy_io();
+ fch_io_enable_legacy_io();
verstage_soc_init();
verstage_mainboard_init();
diff --git a/src/soc/amd/picasso/psp_verstage/psp_verstage.h b/src/soc/amd/picasso/psp_verstage/psp_verstage.h
index ef5c452500..4f85d7caa1 100644
--- a/src/soc/amd/picasso/psp_verstage/psp_verstage.h
+++ b/src/soc/amd/picasso/psp_verstage/psp_verstage.h
@@ -55,6 +55,5 @@ uint32_t unmap_fch_devices(void);
uint32_t verstage_soc_early_init(void);
void verstage_soc_init(void);
uintptr_t *map_spi_rom(void);
-void sb_enable_legacy_io(void);
#endif /* PSP_VERSTAGE_H */
diff --git a/src/soc/amd/picasso/southbridge.c b/src/soc/amd/picasso/southbridge.c
index bc801a34b4..3110deaa02 100644
--- a/src/soc/amd/picasso/southbridge.c
+++ b/src/soc/amd/picasso/southbridge.c
@@ -91,20 +91,6 @@ const struct irq_idx_name *sb_get_apic_reg_association(size_t *size)
return irq_association;
}
-static void sb_enable_cf9_io(void)
-{
- uint32_t reg = pm_read32(PM_DECODE_EN);
-
- pm_write32(PM_DECODE_EN, reg | CF9_IO_EN);
-}
-
-static void sb_enable_legacy_io(void)
-{
- uint32_t reg = pm_read32(PM_DECODE_EN);
-
- pm_write32(PM_DECODE_EN, reg | LEGACY_IO_EN);
-}
-
void sb_clk_output_48Mhz(void)
{
u32 ctrl;
@@ -131,8 +117,8 @@ void fch_pre_init(void)
fch_spi_early_init();
enable_acpimmio_decode_pm04();
fch_smbus_init();
- sb_enable_cf9_io();
- sb_enable_legacy_io();
+ fch_enable_cf9_io();
+ fch_enable_legacy_io();
enable_aoac_devices();
sb_reset_i2c_slaves();