aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/amd/mandolin/Kconfig
diff options
context:
space:
mode:
authorNikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com>2020-11-11 16:23:25 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-11-25 09:13:41 +0000
commit6f32d80e1804de878dc750f649a15c24bd521a6f (patch)
tree17c1a4182cde1275e9aefba32f1af6a55e3bfbff /src/mainboard/amd/mandolin/Kconfig
parenteb8036b591b97145338cfd5ae4b7c9122ed55bef (diff)
mb/amd/mandolin: Add decode range for LPC debug card
Some LPC debug boards hard strap SIO address to be at 0x164e/0x164d vs 0x4e/0x4d. Add support for configurable SIO address to support these cards. BUG=b:159933344 TEST=boot with LPC debug card, verify serial output Change-Id: I103c61f21f13970dfa3b9a788b29964e478fb84c Signed-off-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47545 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/amd/mandolin/Kconfig')
-rw-r--r--src/mainboard/amd/mandolin/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/amd/mandolin/Kconfig b/src/mainboard/amd/mandolin/Kconfig
index dde7ac8bed..b779630d56 100644
--- a/src/mainboard/amd/mandolin/Kconfig
+++ b/src/mainboard/amd/mandolin/Kconfig
@@ -29,6 +29,24 @@ config AMD_LPC_DEBUG_CARD
PICASSO_CONSOLE_UART which selects the SoC's integrated memory-mapped
UART for coreboot console output.
+choice
+ prompt "SMSC/Microchip 1036 SuperIO config address"
+ depends on SUPERIO_SMSC_SIO1036
+ default SMSC_SIO1036_BASE_164E
+
+config SMSC_SIO1036_BASE_4E
+ bool "0x4e/0x4d base address"
+
+config SMSC_SIO1036_BASE_164E
+ bool "0x164e/0x164d base address"
+
+endchoice
+
+config SUPERIO_ADDR_BASE
+ hex
+ default 0x4e if SMSC_SIO1036_BASE_4E
+ default 0x164e if SMSC_SIO1036_BASE_164E
+
config CBFS_SIZE
hex
default 0x7cf000 if BOARD_AMD_MANDOLIN # Maximum size for the Mandolin FMAP