blob: 028d3b65dae72f66a4445e85c6fa161e01d9fc60 [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001# SPDX-License-Identifier: GPL-2.0-only
Piotr Króldcd2f172016-05-27 12:04:13 +02002
Piotr Król83b4fb92017-11-29 16:34:44 +01003if BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || BOARD_PCENGINES_APU4 || \
4 BOARD_PCENGINES_APU5
Piotr Króldcd2f172016-05-27 12:04:13 +02005
Elyes HAOUASf0c5be22018-11-27 20:36:44 +01006config BOARD_SPECIFIC_OPTIONS
Piotr Króldcd2f172016-05-27 12:04:13 +02007 def_bool y
8 select CPU_AMD_PI_00730F01
9 select NORTHBRIDGE_AMD_PI_00730F01
10 select SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkki657d68b2019-12-03 12:36:09 +020011 select DEFAULT_POST_ON_LPC
Piotr Króldcd2f172016-05-27 12:04:13 +020012 select SUPERIO_NUVOTON_NCT5104D
13 select HAVE_PIRQ_TABLE
Piotr Króldcd2f172016-05-27 12:04:13 +020014 select HAVE_ACPI_TABLES
15 select BOARD_ROMSIZE_KB_8192
Michael Niewöhner87cc8892020-09-07 14:26:09 +020016 select HAVE_SPD_IN_CBFS
Jes B. Klinkec6b041a12022-04-19 14:00:33 -070017 select MEMORY_MAPPED_TPM
Michał Żygowski54fcb782018-08-03 18:23:52 +020018 select SEABIOS_ADD_SERCON_PORT_FILE if PAYLOAD_SEABIOS
Michał Żygowski8e46d422020-03-20 16:19:55 +010019 select PCIEXP_ASPM
20 select PCIEXP_CLK_PM
21 select PCIEXP_COMMON_CLOCK
22 select PCIEXP_L1_SUB_STATE
Piotr Króldcd2f172016-05-27 12:04:13 +020023
24config MAINBOARD_DIR
Patrick Georgi0bb83462019-11-22 20:58:58 +010025 default "pcengines/apu2"
Piotr Króldcd2f172016-05-27 12:04:13 +020026
Kamil Wcislo70b92452017-10-12 11:55:16 +020027config VARIANT_DIR
Kamil Wcislo70b92452017-10-12 11:55:16 +020028 default "apu2" if BOARD_PCENGINES_APU2
29 default "apu3" if BOARD_PCENGINES_APU3
Piotr Król83b4fb92017-11-29 16:34:44 +010030 default "apu4" if BOARD_PCENGINES_APU4
Kamil Wcislo70b92452017-10-12 11:55:16 +020031 default "apu5" if BOARD_PCENGINES_APU5
32
33config DEVICETREE
Patrick Georgib8fba862020-06-17 21:06:53 +020034 default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
Kamil Wcislo70b92452017-10-12 11:55:16 +020035
Piotr Króldcd2f172016-05-27 12:04:13 +020036config MAINBOARD_PART_NUMBER
Kamil Wcislo70b92452017-10-12 11:55:16 +020037 default "apu2" if BOARD_PCENGINES_APU2
38 default "apu3" if BOARD_PCENGINES_APU3
Piotr Król83b4fb92017-11-29 16:34:44 +010039 default "apu4" if BOARD_PCENGINES_APU4
Kamil Wcislo70b92452017-10-12 11:55:16 +020040 default "apu5" if BOARD_PCENGINES_APU5
Piotr Króldcd2f172016-05-27 12:04:13 +020041
42config MAX_CPUS
43 int
44 default 4
45
46config IRQ_SLOT_COUNT
47 int
48 default 11
49
50config ONBOARD_VGA_IS_PRIMARY
51 bool
52 default y
53
Piotr Króldcd2f172016-05-27 12:04:13 +020054config AGESA_BINARY_PI_FILE
55 string
56 default "3rdparty/blobs/mainboard/pcengines/apu2/AGESA.bin"
57
58choice
59 prompt "J19 pins 1-10"
Michał Żygowskicc16ec12018-09-24 13:17:40 +020060 default APU2_PINMUX_UART_C
Piotr Króldcd2f172016-05-27 12:04:13 +020061
62config APU2_PINMUX_OFF_C
63 bool "disable"
64
65config APU2_PINMUX_GPIO0
66 bool "GPIO"
Piotr Król83b4fb92017-11-29 16:34:44 +010067 depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || \
68 BOARD_PCENGINES_APU4
Piotr Króldcd2f172016-05-27 12:04:13 +020069
70config APU2_PINMUX_UART_C
71 bool "UART 0x3e8"
72
73endchoice
74
75choice
76 prompt "J19 pins 11-20"
Michał Żygowskicc16ec12018-09-24 13:17:40 +020077 default APU2_PINMUX_UART_D
Piotr Króldcd2f172016-05-27 12:04:13 +020078
79config APU2_PINMUX_OFF_D
80 bool "disable"
81
82config APU2_PINMUX_GPIO1
83 bool "GPIO"
Piotr Król83b4fb92017-11-29 16:34:44 +010084 depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || \
85 BOARD_PCENGINES_APU4
Piotr Króldcd2f172016-05-27 12:04:13 +020086
87config APU2_PINMUX_UART_D
88 bool "UART 0x2e8"
89
90endchoice
91
Patrick Georgi44a46a12017-01-28 13:12:09 +010092config DIMM_SPD_SIZE
Patrick Georgi44a46a12017-01-28 13:12:09 +010093 default 128
94
Piotr Kleinschmidt73546052019-10-09 11:47:03 +020095config AGESA_USE_1_0_0_4_HEADER
96 bool
97 default y
98 help
99 Due to a bug in AGESA 1.0.0.A affecting boards without UMA, it is
100 impossible to use the newest blob. Using an older 1.0.0.4 blob
101 workarounds the problem, however some headers changes between blob
102 revisions. This option removes the changes in headers introduced
103 with AGESA 1.0.0.A to fit the 1.0.0.4 revision.
104
Piotr Króldcd2f172016-05-27 12:04:13 +0200105endif # BOARD_PCENGINES_APU2