aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/amd/bilby/Kconfig
diff options
context:
space:
mode:
authorRitul Guru <ritul.bits@gmail.com>2021-02-05 23:53:28 +0530
committerFelix Held <felix-coreboot@felixheld.de>2021-02-17 20:00:41 +0000
commit286c2f6d4a72473b919ea580786d5497f7ef2dec (patch)
tree1c08513c2ec451aeaff40b16e14417c134ce5394 /src/mainboard/amd/bilby/Kconfig
parent65819cd3644e96f191de04eae8219cab4bc86fb8 (diff)
mainboard/amd/bilby: Add Bilby CRB board
Bilby is the reference board for AMD Raven, Raven2 and Picasso APUs. Bilby mainboard code is taken from mandolin variant Cereme. These new files are a renamed copy and subsequent patches will be applied to create a working bilby implementation. Change-Id: I426966d782e259a971ec36bac2498bc62b4ce7e2 Signed-off-by: Ritul Guru <ritul.bits@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50315 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/mainboard/amd/bilby/Kconfig')
-rw-r--r--src/mainboard/amd/bilby/Kconfig136
1 files changed, 136 insertions, 0 deletions
diff --git a/src/mainboard/amd/bilby/Kconfig b/src/mainboard/amd/bilby/Kconfig
new file mode 100644
index 0000000000..dbeae24895
--- /dev/null
+++ b/src/mainboard/amd/bilby/Kconfig
@@ -0,0 +1,136 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+if BOARD_AMD_BILBY
+
+config BOARD_SPECIFIC_OPTIONS
+ def_bool y
+ select SOC_AMD_COMMON_BLOCK_USE_ESPI
+ select SOC_AMD_PICASSO
+ select BOARD_ROMSIZE_KB_16384
+ select AZALIA_PLUGIN_SUPPORT
+ select HAVE_ACPI_RESUME
+ select DRIVERS_UART_ACPI
+ select AMD_SOC_CONSOLE_UART if !AMD_LPC_DEBUG_CARD
+
+config FMDFILE
+ string
+ default "src/mainboard/amd/bilby/board.fmd"
+
+config AMD_LPC_DEBUG_CARD
+ bool "Enable LPC-Serial debug card on the debug header"
+ default n
+ select BILBY_LPC
+ select SUPERIO_SMSC_SIO1036
+ help
+ AMD's debug card contains an SMSC SIO1036 device which provides an
+ I/O-mapped UART in the system. This is mutually exclusive with
+ AMD_SOC_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 BILBY_SMSC_SIO1036_BASE_164E
+
+config BILBY_SMSC_SIO1036_BASE_4E
+ bool "0x4e/0x4d base address"
+
+config BILBY_SMSC_SIO1036_BASE_164E
+ bool "0x164e/0x164d base address"
+
+endchoice
+
+config SUPERIO_ADDR_BASE
+ hex
+ default 0x4e if BILBY_SMSC_SIO1036_BASE_4E
+ default 0x164e if BILBY_SMSC_SIO1036_BASE_164E
+
+config CBFS_SIZE
+ hex
+ default 0xfcf000 # Maximum size for the Bilby FMAP
+
+config MAINBOARD_DIR
+ string
+ default "amd/bilby"
+
+config MAINBOARD_PART_NUMBER
+ string
+ default "BILBY"
+
+config DEVICETREE
+ string
+ default "devicetree.cb"
+
+config ONBOARD_VGA_IS_PRIMARY
+ bool
+ default y
+
+config AMD_FWM_POSITION_INDEX
+ int
+ default 4
+ help
+ TODO: might need to be adapted for better placement of files in cbfs
+
+config MANDOLIN_HAVE_MCHP_FW
+ bool "Have Microchip EC firmware?"
+ default n
+
+config MANDOLIN_MCHP_FW_FILE
+ string
+ depends on MANDOLIN_HAVE_MCHP_FW
+ default "3rdparty/blobs/mainboard/amd/mandolin/EC_mandolin.bin" if BOARD_AMD_MANDOLIN
+ default "3rdparty/blobs/mainboard/amd/mandolin/EC_cereme.bin" if BOARD_AMD_BILBY
+ help
+ The EC firmware blob is usually the first 128kByte of the stock
+ firmware image.
+if !AMD_LPC_DEBUG_CARD
+choice
+ prompt "State of IOMux for LPC/eMMC signals"
+ default BILBY_IOMUX_USE_EMMC
+ help
+ Bilby is designed to use either LPC or eMMC signals. Use this
+ selection to determine which are configured for this image.
+
+config BILBY_IOMUX_USE_LPC
+ bool "LPC signals"
+
+config BILBY_IOMUX_USE_EMMC
+ bool "eMMC signals"
+
+endchoice
+endif # !AMD_LPC_DEBUG_CARD
+
+config BILBY_LPC
+ bool
+ default y if BILBY_IOMUX_USE_LPC
+ help
+ Picasso's LPC bus signals are MUXed with some of the EMMC signals.
+ Select this option if LPC signals are required.
+
+#TODO: remove this hack to not break graphics in combination with SeaBIOS
+config VGA_BIOS_DGPU_ID
+ string
+ default "1002,15d8"
+ help
+ The default VGA BIOS PCI vendor/device ID should be set to the
+ result of the map_oprom_vendev() function in northbridge.c.
+
+config VGA_BIOS_DGPU_FILE
+ string
+ default "3rdparty/amd_blobs/picasso/Raven2GenericVbios.bin"
+
+config EFS_SPI_READ_MODE
+ int
+ default 0 if EM100
+ default 3
+
+config EFS_SPI_SPEED
+ int
+ default 3 if EM100
+ default 0
+
+config EFS_SPI_MICRON_FLAG
+ int
+ default 0
+
+endif # BOARD_AMD_BILBY