Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32042
Change subject: console/kconfig: Move ONBOARD_VGA_IS_PRIMARY to 'devices'
......................................................................
console/kconfig: Move ONBOARD_VGA_IS_PRIMARY to 'devices'
This has nothing to do with console options.
This also improves the help text to reflect what it actually does.
Change-Id: I039f4f6bbe144769d6a362192b225838ed3d9d43
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/console/Kconfig
M src/device/Kconfig
2 files changed, 10 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/32042/1
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 61ba667..fb87e67 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -176,13 +176,6 @@
# TODO: Deps?
# TODO: Improve description.
-config ONBOARD_VGA_IS_PRIMARY
- bool "Use onboard VGA as primary video device"
- default n
- depends on PCI
- help
- If not selected, the last adapter found will be used.
-
config CONSOLE_NE2K
bool "Network console over NE2000 compatible Ethernet adapter"
default n
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 8001b43..2da12bc 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -683,4 +683,14 @@
I2C controller is not (yet) available. The platform code needs to
provide bindings to manually toggle I2C lines.
+config ONBOARD_VGA_IS_PRIMARY
+ bool "Use onboard VGA as primary video device"
+ default n
+ depends on PCI
+ help
+ This option lets you select which VGA device will be used
+ to decode legacy VGA cycles. Not all chipsets implement this
+ however. If not selected, the last adapter found will be used,
+ else the onboard adapter is used.
+
endmenu
--
To view, visit https://review.coreboot.org/c/coreboot/+/32042
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I039f4f6bbe144769d6a362192b225838ed3d9d43
Gerrit-Change-Number: 32042
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33198
Change subject: sb/intel/common: Add macro to link a file in all stages
......................................................................
sb/intel/common: Add macro to link a file in all stages
It is easy to forget to link some files which breaks the build when
some Kconfig options get enabled.
Change-Id: I955dd2dc22cb3cfc4fdf1198cfd32f56475f97c9
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/southbridge/intel/common/Makefile.inc
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/33198/1
diff --git a/src/southbridge/intel/common/Makefile.inc b/src/southbridge/intel/common/Makefile.inc
index 4cf6e6f..ab5e5d8 100644
--- a/src/southbridge/intel/common/Makefile.inc
+++ b/src/southbridge/intel/common/Makefile.inc
@@ -13,6 +13,17 @@
## GNU General Public License for more details.
##
+# add SPI drivers per stage except smm
+# $1 condition
+# $2 filename
+define add_to_all_stages
+bootblock-$(1) += $(2)
+verstage-$(1) += $(2)
+romstage-$(1) += $(2)
+postcar-$(1) += $(2)
+ramstage-$(1) += $(2)
+endef
+
# CONFIG_HAVE_INTEL_FIRMWARE protects doing anything to the build.
subdirs-y += firmware
--
To view, visit https://review.coreboot.org/c/coreboot/+/33198
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I955dd2dc22cb3cfc4fdf1198cfd32f56475f97c9
Gerrit-Change-Number: 33198
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Frans Hendriks has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30811
Change subject: lib/prog_loaders.c: Add prog_locate_hook() for measured and verified boot.
......................................................................
lib/prog_loaders.c: Add prog_locate_hook() for measured and verified boot.
Before images are loaded from cbfs it needs to be measured and/or verified.
prog_locate_hook() is added and can be used to start measured/verified boot.
BUG=N/A
TEST=Created verified binary and verify logging on Facebook FBG-1701
Change-Id: I12207fc8f2e9ca45d048cf8c8d9c057f53e5c2c7
Signed-off-by: Frans Hendriks <fhendriks(a)eltan.com>
---
M src/include/program_loading.h
M src/lib/prog_loaders.c
2 files changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/30811/1
diff --git a/src/include/program_loading.h b/src/include/program_loading.h
index 468f0b3..a382daf 100644
--- a/src/include/program_loading.h
+++ b/src/include/program_loading.h
@@ -3,6 +3,7 @@
*
* Copyright 2015 Google Inc.
* Copyright (C) 2014 Imagination Technologies
+ * Copyright (C) 2018 Eltan B.V.
*
* 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
@@ -136,6 +137,7 @@
/* Locate the identified program to run. Return 0 on success. < 0 on error. */
int prog_locate(struct prog *prog);
+int prog_locate_hook(struct prog *prog);
/* Run the program described by prog. */
void prog_run(struct prog *prog);
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index b763417..4fa9a03 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -2,6 +2,7 @@
* This file is part of the coreboot project.
*
* Copyright 2015 Google Inc.
+ * Copyright (C) 2018 Eltan B.V.
*
* 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
@@ -39,6 +40,9 @@
{
struct cbfsf file;
+ if (prog_locate_hook(prog))
+ return -1;
+
cbfs_prepare_program_locate();
if (cbfs_boot_locate(&file, prog_name(prog), NULL))
@@ -74,6 +78,7 @@
halt();
}
+int __weak prog_locate_hook(struct prog *prog) {return 0; }
void __weak stage_cache_add(int stage_id,
const struct prog *stage) {}
void __weak stage_cache_load_stage(int stage_id,
--
To view, visit https://review.coreboot.org/c/coreboot/+/30811
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I12207fc8f2e9ca45d048cf8c8d9c057f53e5c2c7
Gerrit-Change-Number: 30811
Gerrit-PatchSet: 1
Gerrit-Owner: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-MessageType: newchange
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33563
Change subject: [UNTESTED]soc/intel/braswell: Use native code to update BSP microcode
......................................................................
[UNTESTED]soc/intel/braswell: Use native code to update BSP microcode
This removes the need to specify the microcode size and location in
Kconfig.
Change-Id: I9a391a3956b30dd8727bec669cb79a0a8588d5f0
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/drivers/intel/fsp1_1/cache_as_ram.S
M src/mainboard/facebook/fbg1701/Kconfig
M src/soc/intel/braswell/Kconfig
3 files changed, 10 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/33563/1
diff --git a/src/drivers/intel/fsp1_1/cache_as_ram.S b/src/drivers/intel/fsp1_1/cache_as_ram.S
index 3460b9d..733c523 100644
--- a/src/drivers/intel/fsp1_1/cache_as_ram.S
+++ b/src/drivers/intel/fsp1_1/cache_as_ram.S
@@ -53,6 +53,15 @@
* Find the FSP binary in cbfs.
* Make a fake stack that has the return value back to this code.
*/
+
+#if CONFIG(MICROCODE_UPDATE_PRE_RAM)
+update_microcode:
+ /* put the return address in %esp */
+ movl $end_microcode_update, %esp
+ jmp update_bsp_microcode
+end_microcode_update:
+#endif
+
lea fake_fsp_stack, %esp
jmp find_fsp
find_fsp_ret:
diff --git a/src/mainboard/facebook/fbg1701/Kconfig b/src/mainboard/facebook/fbg1701/Kconfig
index b3c589d..e92022b 100644
--- a/src/mainboard/facebook/fbg1701/Kconfig
+++ b/src/mainboard/facebook/fbg1701/Kconfig
@@ -56,16 +56,6 @@
hex
default 0x00800000
-config CPU_MICROCODE_CBFS_LEN
- hex
- default 0x10C00
- help
- This should be updated when the microcode patch changes.
-
-config CPU_MICROCODE_CBFS_LOC
- hex
- default 0xFFFE9400
-
config MRC_SETTINGS_CACHE_SIZE
hex
default 0x08000
diff --git a/src/soc/intel/braswell/Kconfig b/src/soc/intel/braswell/Kconfig
index 920179f83..45a0cf8 100644
--- a/src/soc/intel/braswell/Kconfig
+++ b/src/soc/intel/braswell/Kconfig
@@ -52,6 +52,7 @@
select CPU_INTEL_COMMON
select SOUTHBRIDGE_INTEL_COMMON_SMBUS
select C_ENVIRONMENT_BOOTBLOCK
+ select MICROCODE_UPDATE_PRE_RAM
config DCACHE_BSP_STACK_SIZE
hex
--
To view, visit https://review.coreboot.org/c/coreboot/+/33563
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9a391a3956b30dd8727bec669cb79a0a8588d5f0
Gerrit-Change-Number: 33563
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange