From 085a2268083cfe1d22f696c9070726dcf2dc160f Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 4 Jan 2019 16:11:50 +0100 Subject: superio/*: Link early initialization into bootblock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows to set up the SuperIO in the C_ENVIRONMENT_BOOTBLOCK bootblocks. It is likely unnecessary to do this in verstage. This also renames COMMON_ROMSTAGE to COMMON_PRE_RAM. Change-Id: I3d999611baa1e79c79fe6b1f01822ebaa5f85daf Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/30672 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Felix Held --- src/superio/nuvoton/common/Kconfig | 4 ++-- src/superio/nuvoton/common/nuvoton.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/superio/nuvoton/common') diff --git a/src/superio/nuvoton/common/Kconfig b/src/superio/nuvoton/common/Kconfig index 869f1fe955..0af671f512 100644 --- a/src/superio/nuvoton/common/Kconfig +++ b/src/superio/nuvoton/common/Kconfig @@ -14,6 +14,6 @@ ## # Generic Nuvoton romstage driver - Just enough UART initialisation code for -# romstage. -config SUPERIO_NUVOTON_COMMON_ROMSTAGE +# pre-ram. +config SUPERIO_NUVOTON_COMMON_PRE_RAM bool diff --git a/src/superio/nuvoton/common/nuvoton.h b/src/superio/nuvoton/common/nuvoton.h index 614b039be5..4cb2b6f48e 100644 --- a/src/superio/nuvoton/common/nuvoton.h +++ b/src/superio/nuvoton/common/nuvoton.h @@ -15,8 +15,8 @@ * GNU General Public License for more details. */ -#ifndef SUPERIO_NUVOTON_COMMON_ROMSTAGE_H -#define SUPERIO_NUVOTON_COMMON_ROMSTAGE_H +#ifndef SUPERIO_NUVOTON_COMMON_PRE_RAM_H +#define SUPERIO_NUVOTON_COMMON_PRE_RAM_H #include #include @@ -25,4 +25,4 @@ void nuvoton_pnp_enter_conf_state(pnp_devfn_t dev); void nuvoton_pnp_exit_conf_state(pnp_devfn_t dev); void nuvoton_enable_serial(pnp_devfn_t dev, u16 iobase); -#endif /* SUPERIO_NUVOTON_COMMON_ROMSTAGE_H */ +#endif /* SUPERIO_NUVOTON_COMMON_PRE_RAM_H */ -- cgit v1.2.3