Hello Zheng Bao,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/48955
to review the following change.
Change subject: WIP:src/amd/common: Detect SOC type before access SPI 0x2C
......................................................................
WIP:src/amd/common: Detect SOC type before access SPI 0x2C
Change-Id: Id493597b3854296a285d2337b7cf9fd01394d169
Signed-off-by: Zheng Bao <fishbaozi(a)gmail.com>
---
M src/soc/amd/common/block/spi/fch_spi.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/48955/1
diff --git a/src/soc/amd/common/block/spi/fch_spi.c b/src/soc/amd/common/block/spi/fch_spi.c
index c39147a..910521a 100644
--- a/src/soc/amd/common/block/spi/fch_spi.c
+++ b/src/soc/amd/common/block/spi/fch_spi.c
@@ -60,6 +60,7 @@
{
lpc_enable_spi_rom(SPI_ROM_ENABLE);
lpc_enable_spi_prefetch();
- fch_spi_disable_4dw_burst();
+ if (!CONFIG(SOC_AMD_CEZANNE))
+ fch_spi_disable_4dw_burst();
fch_spi_config_modes();
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/48955
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id493597b3854296a285d2337b7cf9fd01394d169
Gerrit-Change-Number: 48955
Gerrit-PatchSet: 1
Gerrit-Owner: Bao Zheng <fishbaozi(a)gmail.com>
Gerrit-Reviewer: Zheng Bao
Gerrit-MessageType: newchange
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49175 )
Change subject: device/Kconfig: Use more fine grained Kconfig for graphics init
......................................................................
device/Kconfig: Use more fine grained Kconfig for graphics init
Add MAINBOARD_HAS_NATIVE_ASPEED_VGA_INIT.
Change-Id: Iee2d7d89a54418a5a93a57da37462c5cfb17c11c
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/device/Kconfig
M src/drivers/aspeed/ast2050/Kconfig
2 files changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/49175/1
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 789e239..baa7110 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -46,6 +46,13 @@
Selected by mainboards / drivers that provide native graphics
init for Intel GPUs within coreboot.
+config MAINBOARD_HAS_NATIVE_ASPEED_VGA_INIT
+ def_bool n
+ select MAINBOARD_HAS_NATIVE_VGA_INIT
+ help
+ Selected by mainboards / drivers that provide native graphics
+ init for Aspeed GPUs within coreboot.
+
config MAINBOARD_FORCE_NATIVE_VGA_INIT
def_bool n
depends on MAINBOARD_HAS_NATIVE_VGA_INIT || MAINBOARD_HAS_LIBGFXINIT
diff --git a/src/drivers/aspeed/ast2050/Kconfig b/src/drivers/aspeed/ast2050/Kconfig
index 7d2c728..5023b1f 100644
--- a/src/drivers/aspeed/ast2050/Kconfig
+++ b/src/drivers/aspeed/ast2050/Kconfig
@@ -1,4 +1,4 @@
config DRIVERS_ASPEED_AST2050
bool
select DRIVERS_ASPEED_AST_COMMON
- select MAINBOARD_HAS_NATIVE_VGA_INIT
+ select MAINBOARD_HAS_NATIVE_ASPEED_VGA_INIT
--
To view, visit https://review.coreboot.org/c/coreboot/+/49175
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iee2d7d89a54418a5a93a57da37462c5cfb17c11c
Gerrit-Change-Number: 49175
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: newchange
Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49203 )
Change subject: arch/riscv: Use same indents for switch/case
......................................................................
arch/riscv: Use same indents for switch/case
Use same indents for switch/case to fix linter issues.
Change-Id: I004103113e4002dded95f804d44bab7c7c4e7c43
Signed-off-by: Felix Singer <felixsinger(a)posteo.net>
---
M src/arch/riscv/trap_handler.c
1 file changed, 29 insertions(+), 29 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/49203/1
diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c
index 32b2c40..6147a20 100644
--- a/src/arch/riscv/trap_handler.c
+++ b/src/arch/riscv/trap_handler.c
@@ -32,10 +32,10 @@
static const char *mstatus_to_previous_mode(uintptr_t ms)
{
switch (ms & MSTATUS_MPP) {
- case 0x00000000: return "user";
- case 0x00000800: return "supervisor";
- case 0x00001000: return "hypervisor";
- case 0x00001800: return "machine";
+ case 0x00000000: return "user";
+ case 0x00000800: return "supervisor";
+ case 0x00001000: return "hypervisor";
+ case 0x00001800: return "machine";
}
return "unknown";
@@ -116,31 +116,31 @@
}
switch (tf->cause) {
- case CAUSE_MISALIGNED_FETCH:
- case CAUSE_FETCH_ACCESS:
- case CAUSE_ILLEGAL_INSTRUCTION:
- case CAUSE_BREAKPOINT:
- case CAUSE_LOAD_ACCESS:
- case CAUSE_STORE_ACCESS:
- case CAUSE_USER_ECALL:
- case CAUSE_HYPERVISOR_ECALL:
- case CAUSE_MACHINE_ECALL:
- print_trap_information(tf);
- break;
- case CAUSE_SUPERVISOR_ECALL:
- handle_sbi(tf);
- return;
- case CAUSE_MISALIGNED_LOAD:
- case CAUSE_MISALIGNED_STORE:
- print_trap_information(tf);
- handle_misaligned(tf);
- return;
- default:
- printk(BIOS_EMERG, "================================\n");
- printk(BIOS_EMERG, "coreboot: can not handle a trap:\n");
- printk(BIOS_EMERG, "================================\n");
- print_trap_information(tf);
- break;
+ case CAUSE_MISALIGNED_FETCH:
+ case CAUSE_FETCH_ACCESS:
+ case CAUSE_ILLEGAL_INSTRUCTION:
+ case CAUSE_BREAKPOINT:
+ case CAUSE_LOAD_ACCESS:
+ case CAUSE_STORE_ACCESS:
+ case CAUSE_USER_ECALL:
+ case CAUSE_HYPERVISOR_ECALL:
+ case CAUSE_MACHINE_ECALL:
+ print_trap_information(tf);
+ break;
+ case CAUSE_SUPERVISOR_ECALL:
+ handle_sbi(tf);
+ return;
+ case CAUSE_MISALIGNED_LOAD:
+ case CAUSE_MISALIGNED_STORE:
+ print_trap_information(tf);
+ handle_misaligned(tf);
+ return;
+ default:
+ printk(BIOS_EMERG, "================================\n");
+ printk(BIOS_EMERG, "coreboot: can not handle a trap:\n");
+ printk(BIOS_EMERG, "================================\n");
+ print_trap_information(tf);
+ break;
}
die("Can't recover from trap. Halting.\n");
--
To view, visit https://review.coreboot.org/c/coreboot/+/49203
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I004103113e4002dded95f804d44bab7c7c4e7c43
Gerrit-Change-Number: 49203
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-MessageType: newchange
John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47656 )
Change subject: soc/intel/tigerlake: Add Method _L73 for USB overcurrent indication
......................................................................
soc/intel/tigerlake: Add Method _L73 for USB overcurrent indication
There is a ACPI error message about no handler or method for GPE73 while
plugging a USB3 flash driver to a type-C-to-A dongle. The PMC_GPE0_DW2
is routed to GPP_E and GPP_E9/USB_OC0# is mapped to GPE73. This change
adds a dummy GPE Method _L73 for USB overcurrent indication. Kernel
driver suspends the bus and host controller which avoids the host halted
in USB overcurrent state.
BUG=b:155158498;173054070
TEST=Built images for Voxel and Delbin boards. Verified GPE73 is enabled
and unmasked. There is no handler or method error message for GPE73
while plugging a USB3 flash driver to a type-C-to-A dongle.
Signed-off-by: John Zhao <john.zhao(a)intel.com>
Change-Id: I25fca6de44ce5c513fb6f7c4cfe46c5b7686fb20
---
M src/soc/intel/tigerlake/acpi/tcss.asl
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/47656/1
diff --git a/src/soc/intel/tigerlake/acpi/tcss.asl b/src/soc/intel/tigerlake/acpi/tcss.asl
index 9893833..d888e86 100644
--- a/src/soc/intel/tigerlake/acpi/tcss.asl
+++ b/src/soc/intel/tigerlake/acpi/tcss.asl
@@ -311,6 +311,12 @@
\_SB.PCI0.TRP2.HPME()
\_SB.PCI0.TRP3.HPME()
}
+
+ /* USB_OC0# */
+ Method(_L73, 0 , serialized)
+ {
+ Printf("USB Overcurrent Indicator");
+ }
}
Scope (\_SB.PCI0)
--
To view, visit https://review.coreboot.org/c/coreboot/+/47656
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I25fca6de44ce5c513fb6f7c4cfe46c5b7686fb20
Gerrit-Change-Number: 47656
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newchange
Vani Ganji has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35961 )
Change subject: Mic_Bias voltage changed to 2.9V for Earpods Mic
......................................................................
Mic_Bias voltage changed to 2.9V for Earpods Mic
Earpods Mic is not working with 2.6Volts and it requires
a volatge greater than 2.7Volts.
BUG=b:134361881
Change-Id: Iceb62d4940a1d93404dc3f69884c1289f462f587
Signed-off-by: Vani Ganji <vani.ganji(a)intel.com>
---
M src/mainboard/google/poppy/variants/atlas/devicetree.cb
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/61/35961/1
diff --git a/src/mainboard/google/poppy/variants/atlas/devicetree.cb b/src/mainboard/google/poppy/variants/atlas/devicetree.cb
index ac86e79..b42313f 100644
--- a/src/mainboard/google/poppy/variants/atlas/devicetree.cb
+++ b/src/mainboard/google/poppy/variants/atlas/devicetree.cb
@@ -347,7 +347,7 @@
register "c_mic_btn_thr" = "0x3e"
register "btn_avg" = "4"
register "adc_1bit_rpt" = "1"
- register "micbias_lvl" = "2600"
+ register "micbias_lvl" = "2900"
register "mic_amp_in_sel" = ""diff""
device i2c 1a on end
end
--
To view, visit https://review.coreboot.org/c/coreboot/+/35961
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iceb62d4940a1d93404dc3f69884c1289f462f587
Gerrit-Change-Number: 35961
Gerrit-PatchSet: 1
Gerrit-Owner: Vani Ganji <vani.ganji(a)intel.com>
Gerrit-MessageType: newchange