blob: a645bcc1f622e3b06dc1f6463c49fa033ba035ad [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
2
Keith Huiedd38462020-04-19 00:55:48 -04003if BOARD_ASUS_P2B || BOARD_ASUS_P2B_D || BOARD_ASUS_P2B_DS || BOARD_ASUS_P2B_F || BOARD_ASUS_P2B_LS || BOARD_ASUS_P3B_F
Keith Hui6f1494b2020-02-02 20:23:03 -05004
5config BASE_ASUS_P2B_D
6 def_bool n
7 select SDRAMPWR_4DIMM
8 select HAVE_MP_TABLE
Uwe Hermannbca3b922009-08-26 17:10:00 +00009
Elyes HAOUASf0c5be22018-11-27 20:36:44 +010010config BOARD_SPECIFIC_OPTIONS
Jens Rottmann9a684fc2010-08-30 16:36:51 +000011 def_bool y
Kyösti Mälkki10bdee12023-04-11 01:00:17 +030012 select ACPI_NO_CUSTOM_MADT
Uwe Hermann53c72762010-03-13 20:36:11 +000013 select CPU_INTEL_SLOT_1
Uwe Hermannbca3b922009-08-26 17:10:00 +000014 select NORTHBRIDGE_INTEL_I440BX
15 select SOUTHBRIDGE_INTEL_I82371EB
16 select SUPERIO_WINBOND_W83977TF
17 select HAVE_PIRQ_TABLE
Uwe Hermannd65509d2009-10-16 17:37:20 +000018 select BOARD_ROMSIZE_KB_256
Keith Huib29cc1a2020-05-19 23:36:51 -040019 select HAVE_OPTION_TABLE
Keith Huiedd38462020-04-19 00:55:48 -040020 select SDRAMPWR_4DIMM if BOARD_ASUS_P2B_LS || BOARD_ASUS_P3B_F
Keith Huid6d9a4e2020-02-02 18:33:52 -050021 select HAVE_ACPI_TABLES if BOARD_ASUS_P2B || BOARD_ASUS_P2B_LS
Keith Huib7c11c62020-02-02 20:36:26 -050022 select BASE_ASUS_P2B_D if BOARD_ASUS_P2B_D || BOARD_ASUS_P2B_DS
Keith Hui6f1494b2020-02-02 20:23:03 -050023
24config MAX_CPUS
25 int
26 default 2 if BASE_ASUS_P2B_D
Uwe Hermannbca3b922009-08-26 17:10:00 +000027
28config MAINBOARD_DIR
Patrick Georgi0bb83462019-11-22 20:58:58 +010029 default "asus/p2b"
Uwe Hermannbca3b922009-08-26 17:10:00 +000030
31config MAINBOARD_PART_NUMBER
Keith Huibf7d6f12020-02-02 18:03:22 -050032 default "P2B" if BOARD_ASUS_P2B
Keith Hui6f1494b2020-02-02 20:23:03 -050033 default "P2B-D" if BOARD_ASUS_P2B_D
Keith Huib7c11c62020-02-02 20:36:26 -050034 default "P2B-DS" if BOARD_ASUS_P2B_DS
Keith Hui7e269ad2020-02-02 19:23:47 -050035 default "P2B-F" if BOARD_ASUS_P2B_F
Keith Huid6d9a4e2020-02-02 18:33:52 -050036 default "P2B-LS" if BOARD_ASUS_P2B_LS
Keith Huiedd38462020-04-19 00:55:48 -040037 default "P3B-F" if BOARD_ASUS_P3B_F
Keith Huibf7d6f12020-02-02 18:03:22 -050038
39config VARIANT_DIR
Keith Huibf7d6f12020-02-02 18:03:22 -050040 default "p2b" if BOARD_ASUS_P2B
Keith Hui6f1494b2020-02-02 20:23:03 -050041 default "p2b-d" if BOARD_ASUS_P2B_D
Keith Huib7c11c62020-02-02 20:36:26 -050042 default "p2b-ds" if BOARD_ASUS_P2B_DS
Keith Hui7e269ad2020-02-02 19:23:47 -050043 default "p2b-f" if BOARD_ASUS_P2B_F
Keith Huid6d9a4e2020-02-02 18:33:52 -050044 default "p2b-ls" if BOARD_ASUS_P2B_LS
Keith Huiedd38462020-04-19 00:55:48 -040045 default "p3b-f" if BOARD_ASUS_P3B_F
Keith Hui7e269ad2020-02-02 19:23:47 -050046
Keith Hui4ec683d2020-03-28 21:54:17 -040047config OVERRIDE_DEVICETREE
Patrick Georgib8fba862020-06-17 21:06:53 +020048 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
Uwe Hermannbca3b922009-08-26 17:10:00 +000049
Uwe Hermannbca3b922009-08-26 17:10:00 +000050config IRQ_SLOT_COUNT
51 int
Keith Huiedd38462020-04-19 00:55:48 -040052 default 8 if BOARD_ASUS_P2B_LS || BOARD_ASUS_P3B_F
Keith Huib7c11c62020-02-02 20:36:26 -050053 default 7 if BOARD_ASUS_P2B_F || BOARD_ASUS_P2B_DS
Uwe Hermannbca3b922009-08-26 17:10:00 +000054 default 6
Uwe Hermannbca3b922009-08-26 17:10:00 +000055
Keith Huibf7d6f12020-02-02 18:03:22 -050056endif