soc/amd/cezanne: add basic early FCH initialization to bootblock
Change-Id: I1c6d32a5498a7adcee3c8c3145f85e9dba26bf7e Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48475 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
4be064a1d8
commit
153f92adbe
|
@ -5,6 +5,7 @@ ifeq ($(CONFIG_SOC_AMD_CEZANNE),y)
|
|||
all-y += config.c
|
||||
|
||||
bootblock-y += bootblock.c
|
||||
bootblock-y += early_fch.c
|
||||
|
||||
romstage-y += romstage.c
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <amdblocks/amd_pci_mmconf.h>
|
||||
#include <bootblock_common.h>
|
||||
#include <cpu/x86/tsc.h>
|
||||
#include <soc/southbridge.h>
|
||||
#include <stdint.h>
|
||||
|
||||
asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
|
||||
|
@ -20,8 +21,10 @@ asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
|
|||
|
||||
void bootblock_soc_early_init(void)
|
||||
{
|
||||
fch_pre_init();
|
||||
}
|
||||
|
||||
void bootblock_soc_init(void)
|
||||
{
|
||||
fch_early_init();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <amdblocks/acpimmio.h>
|
||||
#include <amdblocks/smbus.h>
|
||||
#include <console/console.h>
|
||||
#include <soc/southbridge.h>
|
||||
|
||||
/* Before console init */
|
||||
void fch_pre_init(void)
|
||||
{
|
||||
enable_acpimmio_decode_pm04();
|
||||
fch_smbus_init();
|
||||
fch_enable_cf9_io();
|
||||
fch_enable_legacy_io();
|
||||
}
|
||||
|
||||
/* After console init */
|
||||
void fch_early_init(void)
|
||||
{
|
||||
fch_print_pmxc0_status();
|
||||
}
|
|
@ -5,4 +5,7 @@
|
|||
|
||||
#include <soc/iomap.h>
|
||||
|
||||
void fch_pre_init(void);
|
||||
void fch_early_init(void);
|
||||
|
||||
#endif /* AMD_CEZANNE_SOUTHBRIDGE_H */
|
||||
|
|
Loading…
Reference in New Issue