2015-03-15 04:29:35 +01:00
|
|
|
##
|
|
|
|
## This file is part of the coreboot project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2009-2010 coresystems GmbH
|
|
|
|
##
|
|
|
|
## 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.
|
|
|
|
##
|
|
|
|
|
2015-04-04 01:58:28 +02:00
|
|
|
config ARCH_X86
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
select PCI
|
|
|
|
|
Introduce stage-specific architecture for coreboot
Make all three coreboot stages (bootblock, romstage and ramstage) aware of the
architecture specific to that stage i.e. we will have CONFIG_ARCH variables for
each of the three stages. This allows us to have an SOC with any combination of
architectures and thus every stage can be made to run on a completely different
architecture independent of others. Thus, bootblock can have an x86 arch whereas
romstage and ramstage can have arm32 and arm64 arch respectively. These stage
specific CONFIG_ARCH_ variables enable us to select the proper set of toolchain
and compiler flags for every stage.
These options can be considered as either arch or modes eg: x86 running in
different modes or ARM having different arch types (v4, v7, v8). We have got rid
of the original CONFIG_ARCH option completely as every stage can have any
architecture of its own. Thus, almost all the components of coreboot are
identified as being part of one of the three stages (bootblock, romstage or
ramstage). The components which cannot be classified as such e.g. smm, rmodules
can have their own compiler toolset which is for now set to *_i386. Hence, all
special classes are treated in a similar way and the compiler toolset is defined
using create_class_compiler defined in Makefile.
In order to meet these requirements, changes have been made to CC, LD, OBJCOPY
and family to add CC_bootblock, CC_romstage, CC_ramstage and similarly others.
Additionally, CC_x86_32 and CC_armv7 handle all the special classes. All the
toolsets are defined using create_class_compiler.
Few additional macros have been introduced to identify the class to be used at
various points, e.g.: CC_$(class) derives the $(class) part from the name of
the stage being compiled.
We have also got rid of COREBOOT_COMPILER, COREBOOT_ASSEMBLER and COREBOOT_LINKER
as they do not make any sense for coreboot as a whole. All these attributes are
associated with each of the stages.
Change-Id: I923f3d4fb097d21071030b104c372cc138c68c7b
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: http://review.coreboot.org/5577
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
2014-04-23 19:18:48 +02:00
|
|
|
config ARCH_BOOTBLOCK_X86_32
|
2013-07-07 22:52:37 +02:00
|
|
|
bool
|
Introduce stage-specific architecture for coreboot
Make all three coreboot stages (bootblock, romstage and ramstage) aware of the
architecture specific to that stage i.e. we will have CONFIG_ARCH variables for
each of the three stages. This allows us to have an SOC with any combination of
architectures and thus every stage can be made to run on a completely different
architecture independent of others. Thus, bootblock can have an x86 arch whereas
romstage and ramstage can have arm32 and arm64 arch respectively. These stage
specific CONFIG_ARCH_ variables enable us to select the proper set of toolchain
and compiler flags for every stage.
These options can be considered as either arch or modes eg: x86 running in
different modes or ARM having different arch types (v4, v7, v8). We have got rid
of the original CONFIG_ARCH option completely as every stage can have any
architecture of its own. Thus, almost all the components of coreboot are
identified as being part of one of the three stages (bootblock, romstage or
ramstage). The components which cannot be classified as such e.g. smm, rmodules
can have their own compiler toolset which is for now set to *_i386. Hence, all
special classes are treated in a similar way and the compiler toolset is defined
using create_class_compiler defined in Makefile.
In order to meet these requirements, changes have been made to CC, LD, OBJCOPY
and family to add CC_bootblock, CC_romstage, CC_ramstage and similarly others.
Additionally, CC_x86_32 and CC_armv7 handle all the special classes. All the
toolsets are defined using create_class_compiler.
Few additional macros have been introduced to identify the class to be used at
various points, e.g.: CC_$(class) derives the $(class) part from the name of
the stage being compiled.
We have also got rid of COREBOOT_COMPILER, COREBOOT_ASSEMBLER and COREBOOT_LINKER
as they do not make any sense for coreboot as a whole. All these attributes are
associated with each of the stages.
Change-Id: I923f3d4fb097d21071030b104c372cc138c68c7b
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: http://review.coreboot.org/5577
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
2014-04-23 19:18:48 +02:00
|
|
|
default n
|
|
|
|
select ARCH_X86
|
|
|
|
|
2015-01-14 19:51:47 +01:00
|
|
|
config ARCH_VERSTAGE_X86_32
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
Introduce stage-specific architecture for coreboot
Make all three coreboot stages (bootblock, romstage and ramstage) aware of the
architecture specific to that stage i.e. we will have CONFIG_ARCH variables for
each of the three stages. This allows us to have an SOC with any combination of
architectures and thus every stage can be made to run on a completely different
architecture independent of others. Thus, bootblock can have an x86 arch whereas
romstage and ramstage can have arm32 and arm64 arch respectively. These stage
specific CONFIG_ARCH_ variables enable us to select the proper set of toolchain
and compiler flags for every stage.
These options can be considered as either arch or modes eg: x86 running in
different modes or ARM having different arch types (v4, v7, v8). We have got rid
of the original CONFIG_ARCH option completely as every stage can have any
architecture of its own. Thus, almost all the components of coreboot are
identified as being part of one of the three stages (bootblock, romstage or
ramstage). The components which cannot be classified as such e.g. smm, rmodules
can have their own compiler toolset which is for now set to *_i386. Hence, all
special classes are treated in a similar way and the compiler toolset is defined
using create_class_compiler defined in Makefile.
In order to meet these requirements, changes have been made to CC, LD, OBJCOPY
and family to add CC_bootblock, CC_romstage, CC_ramstage and similarly others.
Additionally, CC_x86_32 and CC_armv7 handle all the special classes. All the
toolsets are defined using create_class_compiler.
Few additional macros have been introduced to identify the class to be used at
various points, e.g.: CC_$(class) derives the $(class) part from the name of
the stage being compiled.
We have also got rid of COREBOOT_COMPILER, COREBOOT_ASSEMBLER and COREBOOT_LINKER
as they do not make any sense for coreboot as a whole. All these attributes are
associated with each of the stages.
Change-Id: I923f3d4fb097d21071030b104c372cc138c68c7b
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: http://review.coreboot.org/5577
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
2014-04-23 19:18:48 +02:00
|
|
|
config ARCH_ROMSTAGE_X86_32
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_RAMSTAGE_X86_32
|
|
|
|
bool
|
|
|
|
default n
|
2013-07-07 22:52:37 +02:00
|
|
|
|
2009-10-07 18:15:40 +02:00
|
|
|
# This is an SMP option. It relates to starting up APs.
|
|
|
|
# It is usually set in mainboard/*/Kconfig.
|
|
|
|
# TODO: Improve description.
|
2012-07-29 19:18:03 +02:00
|
|
|
config AP_IN_SIPI_WAIT
|
|
|
|
bool
|
|
|
|
default n
|
2012-10-15 22:38:09 +02:00
|
|
|
depends on ARCH_X86 && SMP
|
2009-08-29 04:59:35 +02:00
|
|
|
|
2012-04-06 03:03:50 +02:00
|
|
|
# Aligns 16bit entry code in bootblock so that hyper-threading CPUs
|
|
|
|
# can boot AP CPUs to enable their shared caches.
|
|
|
|
config SIPI_VECTOR_IN_ROM
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
depends on ARCH_X86
|
|
|
|
|
2009-08-12 17:00:51 +02:00
|
|
|
config RAMBASE
|
|
|
|
hex
|
|
|
|
default 0x100000
|
|
|
|
|
2013-07-22 20:17:18 +02:00
|
|
|
# This is something you almost certainly don't want to mess with.
|
|
|
|
# How many SIPIs do we send when starting up APs and cores?
|
|
|
|
# The answer in 2000 or so was '2'. Nowadays, on many systems,
|
|
|
|
# it is 1. Set a safe default here, and you can override it
|
|
|
|
# on reasonable platforms.
|
|
|
|
config NUM_IPI_STARTS
|
|
|
|
int
|
|
|
|
default 2
|
|
|
|
|
2010-02-09 13:21:10 +01:00
|
|
|
config ROMCC
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2014-12-31 19:55:19 +01:00
|
|
|
config LATE_CBMEM_INIT
|
|
|
|
def_bool n
|
|
|
|
help
|
|
|
|
Enable this in chipset's Kconfig if northbridge does not implement
|
|
|
|
early get_top_of_ram() call for romstage. CBMEM tables will be
|
|
|
|
allocated late in ramstage, after PCI devices resources are known.
|
|
|
|
|
2010-12-17 00:37:17 +01:00
|
|
|
config PC80_SYSTEM
|
|
|
|
bool
|
Introduce stage-specific architecture for coreboot
Make all three coreboot stages (bootblock, romstage and ramstage) aware of the
architecture specific to that stage i.e. we will have CONFIG_ARCH variables for
each of the three stages. This allows us to have an SOC with any combination of
architectures and thus every stage can be made to run on a completely different
architecture independent of others. Thus, bootblock can have an x86 arch whereas
romstage and ramstage can have arm32 and arm64 arch respectively. These stage
specific CONFIG_ARCH_ variables enable us to select the proper set of toolchain
and compiler flags for every stage.
These options can be considered as either arch or modes eg: x86 running in
different modes or ARM having different arch types (v4, v7, v8). We have got rid
of the original CONFIG_ARCH option completely as every stage can have any
architecture of its own. Thus, almost all the components of coreboot are
identified as being part of one of the three stages (bootblock, romstage or
ramstage). The components which cannot be classified as such e.g. smm, rmodules
can have their own compiler toolset which is for now set to *_i386. Hence, all
special classes are treated in a similar way and the compiler toolset is defined
using create_class_compiler defined in Makefile.
In order to meet these requirements, changes have been made to CC, LD, OBJCOPY
and family to add CC_bootblock, CC_romstage, CC_ramstage and similarly others.
Additionally, CC_x86_32 and CC_armv7 handle all the special classes. All the
toolsets are defined using create_class_compiler.
Few additional macros have been introduced to identify the class to be used at
various points, e.g.: CC_$(class) derives the $(class) part from the name of
the stage being compiled.
We have also got rid of COREBOOT_COMPILER, COREBOOT_ASSEMBLER and COREBOOT_LINKER
as they do not make any sense for coreboot as a whole. All these attributes are
associated with each of the stages.
Change-Id: I923f3d4fb097d21071030b104c372cc138c68c7b
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: http://review.coreboot.org/5577
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
2014-04-23 19:18:48 +02:00
|
|
|
default y if ARCH_X86
|
2010-12-17 00:37:17 +01:00
|
|
|
|
2012-11-14 07:08:50 +01:00
|
|
|
config BOOTBLOCK_MAINBOARD_INIT
|
|
|
|
string
|
|
|
|
|
2009-12-31 13:56:53 +01:00
|
|
|
config BOOTBLOCK_NORTHBRIDGE_INIT
|
|
|
|
string
|
|
|
|
|
2011-01-14 08:40:24 +01:00
|
|
|
config HAVE_CMOS_DEFAULT
|
|
|
|
def_bool n
|
|
|
|
|
|
|
|
config CMOS_DEFAULT_FILE
|
|
|
|
string
|
2013-05-28 13:46:12 +02:00
|
|
|
default "src/mainboard/$(MAINBOARDDIR)/cmos.default"
|
2011-01-14 08:40:24 +01:00
|
|
|
depends on HAVE_CMOS_DEFAULT
|
|
|
|
|
2009-12-31 13:56:53 +01:00
|
|
|
config BOOTBLOCK_SOUTHBRIDGE_INIT
|
|
|
|
string
|
2011-01-05 03:27:53 +01:00
|
|
|
|
2012-03-16 19:28:15 +01:00
|
|
|
config IOAPIC_INTERRUPTS_ON_FSB
|
|
|
|
bool
|
|
|
|
default y if !IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS
|
|
|
|
|
|
|
|
config IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2012-10-05 21:54:38 +02:00
|
|
|
config HPET_ADDRESS
|
|
|
|
hex
|
|
|
|
default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
|
|
|
|
|
2012-11-14 00:04:12 +01:00
|
|
|
config ID_SECTION_OFFSET
|
|
|
|
hex
|
|
|
|
default 0x80
|