From 99198b2f7624f2293c849c6b7a96e10c84129555 Mon Sep 17 00:00:00 2001 From: Johnny Lin Date: Mon, 6 Apr 2020 20:09:21 +0800 Subject: drivers/ipmi: Add IPMI KCS support in romstage It's necessary to run IPMI commands in romstage for writing error SEL such as memory initialization error SEL, and also for other usages such as starting FRB2 timer, OEM commands, etc. Add CONFIG_BMC_KCS_BASE for BMC KCS port address that can be used across romstage and ramstage. Change-Id: Ie3198965670454b123e570f9056673fdf515f52b Signed-off-by: Johnny Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/40234 Reviewed-by: Philipp Deppenwiese Reviewed-by: Jonathan Zhang Tested-by: build bot (Jenkins) --- src/drivers/ipmi/Kconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/drivers/ipmi/Kconfig') diff --git a/src/drivers/ipmi/Kconfig b/src/drivers/ipmi/Kconfig index 37cfc0d230..44ed17e548 100644 --- a/src/drivers/ipmi/Kconfig +++ b/src/drivers/ipmi/Kconfig @@ -18,3 +18,18 @@ config IPMI_FRU_SINGLE_RW_SZ IPMB messages are limited to 32-bytes total. When the data size is larger than this value, IPMI can complete reading/writing the data over multiple commands. + +config IPMI_KCS_ROMSTAGE + bool + default n + depends on IPMI_KCS + help + IPMI KCS support in romstage. + +config BMC_KCS_BASE + hex + default 0xca2 + depends on IPMI_KCS + help + The PNP base address of BMC KCS. It must be equal to the + pnp port value defined in devicetree for chip drivers/ipmi. -- cgit v1.2.3