Acked-by: Stefan Reinauer <stepan@coresystems.de
This patch adds artec dbe61 support, removes all mainboard.c, and
adds
the code to dtc so that it takes these properties from the top level
dts:
/{
.
.
.
mainboard-vendor = "AMD";
mainboard-part-number = "Norwich";
}
statictree.h will have:
extern const char *mainboard_vendor, *mainboard_part_number;
and statictree.c will have:
const char *mainboard_vendor = "AMD";
const char *mainboard_part_number = "Norwich";
It is an error to NOT have the vendor and part number in the top
level dts.
thanks
ron
Get rid of mainboard.c in all mainboard directories.
Modify dtc so that it creates declarations (in statictree.h) and
generates the char *
for mainboard name and part # (in statictree.c).
Failure to set up a mainboard-vendor
OR mainboard-part-number property in the mainboard dts will get a
helpful and descriptive error message (tested).
This may be a first for the linuxbios config
tools.
Add Georgi's patch for the bug in flattree.c; assign *cp = 0.
git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@394 f3766cd6-281f-0410-b1cd-43a5c92072e9
101 lines
2.6 KiB
Text
101 lines
2.6 KiB
Text
##
|
|
## This file is part of the LinuxBIOS project.
|
|
##
|
|
## Copyright (C) 2006 Segher Boessenkool <segher@kernel.crashing.org>
|
|
## Copyright (C) 2006-2007 coresystems GmbH
|
|
## (Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH)
|
|
## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
|
|
##
|
|
## This program is free software; you can redistribute it and/or modify
|
|
## it under the terms of the GNU General Public License as published by
|
|
## the Free Software Foundation; version 2 of the License.
|
|
##
|
|
## This program is distributed in the hope that it will be useful,
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
## GNU General Public License for more details.
|
|
##
|
|
## You should have received a copy of the GNU General Public License
|
|
## along with this program; if not, write to the Free Software
|
|
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
##
|
|
|
|
menu "Mainboard"
|
|
|
|
choice
|
|
prompt "Mainboard vendor"
|
|
default VENDOR_EMULATION
|
|
|
|
config VENDOR_ADL
|
|
bool "Advanced Digital Logic"
|
|
help
|
|
Select this option for various systems from
|
|
Advanced Digital Logic
|
|
|
|
config VENDOR_AMD
|
|
bool "AMD"
|
|
help
|
|
Select this option for various systems from
|
|
Advanced Micro Devices, Inc
|
|
|
|
config VENDOR_ARTECGROUP
|
|
bool "Artec Group"
|
|
help
|
|
Select this option for various systems from
|
|
the Artec Group
|
|
|
|
config VENDOR_EMULATION
|
|
bool "Emulated systems"
|
|
help
|
|
Select this option for various system emulators, such as QEMU.
|
|
|
|
endchoice
|
|
|
|
source "mainboard/emulation/Kconfig"
|
|
source "mainboard/adl/Kconfig"
|
|
source "mainboard/amd/Kconfig"
|
|
source "mainboard/artecgroup/Kconfig"
|
|
|
|
choice
|
|
prompt "ROM chip size"
|
|
default LINUXBIOS_ROMSIZE_KB_256
|
|
|
|
config LINUXBIOS_ROMSIZE_KB_128
|
|
bool "128 KB"
|
|
help
|
|
Choose this option if you have a 128 KB ROM chip.
|
|
|
|
config LINUXBIOS_ROMSIZE_KB_256
|
|
bool "256 KB"
|
|
help
|
|
Choose this option if you have a 256 KB ROM chip.
|
|
|
|
config LINUXBIOS_ROMSIZE_KB_512
|
|
bool "512 KB"
|
|
help
|
|
Choose this option if you have a 512 KB ROM chip.
|
|
|
|
config LINUXBIOS_ROMSIZE_KB_1024
|
|
bool "1024 KB (1 MB)"
|
|
help
|
|
Choose this option if you have a 1024 KB (1 MB) ROM chip.
|
|
|
|
config LINUXBIOS_ROMSIZE_KB_2048
|
|
bool "2048 KB (2 MB)"
|
|
help
|
|
Choose this option if you have a 2048 KB (2 MB) ROM chip.
|
|
|
|
endchoice
|
|
|
|
config LINUXBIOS_ROMSIZE_KB
|
|
int
|
|
default 128 if LINUXBIOS_ROMSIZE_KB_128
|
|
default 256 if LINUXBIOS_ROMSIZE_KB_256
|
|
default 512 if LINUXBIOS_ROMSIZE_KB_512
|
|
default 1024 if LINUXBIOS_ROMSIZE_KB_1024
|
|
default 2048 if LINUXBIOS_ROMSIZE_KB_2048
|
|
help
|
|
Map the config names to an integer.
|
|
|
|
endmenu
|
|
|