From 70b92456eb2f507b6d6ce24212219e7dfbb59747 Mon Sep 17 00:00:00 2001 From: Kamil Wcislo Date: Thu, 12 Oct 2017 11:55:16 +0200 Subject: mainboard/pcengines/apu2: add apu3 and apu5 variants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apu3 and apu5 are additional variants of apu2 board. Apu3 has no LPC connector exposed, but has additional USB header. It has also 2 slots for SIM cards and one of the gpios is used to control switching between them. Apu5 is differing by having 6 SIM card slots (3 SIMSWAP switches). This patch adds support for those other variants by not introducing additional code redundancy. Change-Id: I4fded98fed7a8085062cdea035ecac3d608cd2a0 Signed-off-by: Kamil Wcislo Reviewed-on: https://review.coreboot.org/21981 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/mainboard/pcengines/apu2/Kconfig | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'src/mainboard/pcengines/apu2/Kconfig') diff --git a/src/mainboard/pcengines/apu2/Kconfig b/src/mainboard/pcengines/apu2/Kconfig index cbcbb7cd63..432963ed0e 100644 --- a/src/mainboard/pcengines/apu2/Kconfig +++ b/src/mainboard/pcengines/apu2/Kconfig @@ -14,7 +14,7 @@ # GNU General Public License for more details. # -if BOARD_PCENGINES_APU2 +if BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || BOARD_PCENGINES_APU5 config BOARD_SPECIFIC_OPTIONS # dummy def_bool y @@ -37,9 +37,21 @@ config MAINBOARD_DIR string default pcengines/apu2 +config VARIANT_DIR + string + default "apu2" if BOARD_PCENGINES_APU2 + default "apu3" if BOARD_PCENGINES_APU3 + default "apu5" if BOARD_PCENGINES_APU5 + +config DEVICETREE + string + default "variants/$(CONFIG_VARIANT_DIR)/devicetree.cb" + config MAINBOARD_PART_NUMBER string - default "apu2" + default "apu2" if BOARD_PCENGINES_APU2 + default "apu3" if BOARD_PCENGINES_APU3 + default "apu5" if BOARD_PCENGINES_APU5 config MAX_CPUS int @@ -63,13 +75,16 @@ config AGESA_BINARY_PI_FILE choice prompt "J19 pins 1-10" - default APU2_PINMUX_OFF_C + default APU2_PINMUX_OFF_C if BOARD_PCENGINES_APU2 || \ + BOARD_PCENGINES_APU3 + default APU2_PINMUX_UART_C if BOARD_PCENGINES_APU5 config APU2_PINMUX_OFF_C bool "disable" config APU2_PINMUX_GPIO0 bool "GPIO" + depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 config APU2_PINMUX_UART_C bool "UART 0x3e8" @@ -78,13 +93,16 @@ endchoice choice prompt "J19 pins 11-20" - default APU2_PINMUX_OFF_D + default APU2_PINMUX_OFF_D if BOARD_PCENGINES_APU2 || \ + BOARD_PCENGINES_APU3 + default APU2_PINMUX_UART_D if BOARD_PCENGINES_APU5 config APU2_PINMUX_OFF_D bool "disable" config APU2_PINMUX_GPIO1 bool "GPIO" + depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 config APU2_PINMUX_UART_D bool "UART 0x2e8" -- cgit v1.2.3