Xiang Wang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37130 )
Change subject: arch/riscv: Add error detection for supports_extension
......................................................................
arch/riscv: Add error detection for supports_extension
Change-Id: I5df3d82b9a9b4968beea6040b86628b58fd8a45d
Signed-off-by: Xiang Wang <merle(a)hardenedlinux.org>
---
M src/arch/riscv/include/arch/cpu.h
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/30/37130/1
diff --git a/src/arch/riscv/include/arch/cpu.h b/src/arch/riscv/include/arch/cpu.h
index 72a8a69..dd70af7 100644
--- a/src/arch/riscv/include/arch/cpu.h
+++ b/src/arch/riscv/include/arch/cpu.h
@@ -49,7 +49,7 @@
* */
int soc_supports_extension(char ext);
-static inline int supports_extension(char ext)
+static inline int supports_extension_imp(char ext)
{
uintptr_t isa = read_csr(misa);
if (isa)
@@ -58,6 +58,13 @@
return soc_supports_extension(ext);
}
+#define supports_extension(c)\
+({\
+ _Static_assert(((c >= 'A') && (c <= 'Z')),\
+ "The parameter of supports_extension must be [A-Z]");\
+ supports_extension_imp(c);\
+})
+
/* If the SOC does not implement misa, the read misa will be zero.
* Such SOC requires a non-standard mechanism to detect machine XLEN.
* If the soc does not implement misa, implement this function.
--
To view, visit https://review.coreboot.org/c/coreboot/+/37130
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5df3d82b9a9b4968beea6040b86628b58fd8a45d
Gerrit-Change-Number: 37130
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Wang <merle(a)hardenedlinux.org>
Gerrit-MessageType: newchange
James has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37146 )
Change subject: mb/lenovo/x131e: remove non-applicable options from CMOS
......................................................................
mb/lenovo/x131e: remove non-applicable options from CMOS
These options do not work in the same way as on the Lenovo H8 EC.
Since they don't work correctly, drop them from the CMOS settings.
Change-Id: Iebc55afd5cc621df562fd7aa9557207147a8199b
Signed-off-by: James Ye <jye836(a)gmail.com>
---
M src/mainboard/lenovo/x131e/cmos.default
M src/mainboard/lenovo/x131e/cmos.layout
2 files changed, 2 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/37146/1
diff --git a/src/mainboard/lenovo/x131e/cmos.default b/src/mainboard/lenovo/x131e/cmos.default
index b01978a..ca10a85 100644
--- a/src/mainboard/lenovo/x131e/cmos.default
+++ b/src/mainboard/lenovo/x131e/cmos.default
@@ -3,12 +3,7 @@
power_on_after_fail=Disable
nmi=Enable
volume=0x3
-bluetooth=Enable
wwan=Enable
-wlan=Enable
-touchpad=Enable
sata_mode=AHCI
-fn_ctrl_swap=Disable
sticky_fn=Disable
-trackpoint=Enable
usb_always_on=Disable
diff --git a/src/mainboard/lenovo/x131e/cmos.layout b/src/mainboard/lenovo/x131e/cmos.layout
index 93c74fb..7696046 100644
--- a/src/mainboard/lenovo/x131e/cmos.layout
+++ b/src/mainboard/lenovo/x131e/cmos.layout
@@ -60,12 +60,9 @@
411 1 e 8 sata_mode
# coreboot config options: EC
-412 1 e 1 bluetooth
+#412 1 r 0 unused
413 1 e 1 wwan
-414 1 e 1 touchpad
-415 1 e 1 wlan
-416 1 e 1 trackpoint
-417 1 e 1 fn_ctrl_swap
+#414 4 r 0 unused
418 1 e 1 sticky_fn
419 2 e 12 usb_always_on
#421 3 r 0 unused
--
To view, visit https://review.coreboot.org/c/coreboot/+/37146
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iebc55afd5cc621df562fd7aa9557207147a8199b
Gerrit-Change-Number: 37146
Gerrit-PatchSet: 1
Gerrit-Owner: James <jye836(a)gmail.com>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: James <jye836(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Name of user not set #1002701 has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37532 )
Change subject: {northbridge,soc,southbridge}: Don't use both of _ADR and _HID
......................................................................
{northbridge,soc,southbridge}: Don't use both of _ADR and _HID
ACPI Version 6.3 Section 6.1: "A device object must contain either an _HID
object or an _ADR object, but should not contain both."
Change-Id: I48fb3e9e48893336416eb90f80957e5bd21d1711
Signed-off-by: Jorge Fernandez <jorgefm(a)cirsa.com>
---
M src/northbridge/amd/pi/00660F01/acpi/northbridge.asl
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/37532/1
diff --git a/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl b/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl
index d54f985..4a48aaf 100644
--- a/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl
+++ b/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl
@@ -16,7 +16,7 @@
/* Note: Only need HID on Primary Bus */
External (TOM1)
External (TOM2)
-Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */
+/* Name(_HID, EISAID("PNP0A08")) // PCI Express Root Bridge */
Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */
Name(_ADR, 0x00180000) /* Dev# = BSP Dev#, Func# = 0 */
--
To view, visit https://review.coreboot.org/c/coreboot/+/37532
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I48fb3e9e48893336416eb90f80957e5bd21d1711
Gerrit-Change-Number: 37532
Gerrit-PatchSet: 1
Gerrit-Owner: Name of user not set #1002701
Gerrit-MessageType: newchange