summaryrefslogtreecommitdiffstats
path: root/src/mainboard/lenovo
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-03-19 07:43:32 +0100
committerElyes Haouas <ehaouas@noos.fr>2023-04-08 03:35:39 +0000
commitc46242f904b64daee36e6d478e1d88c623fb3c44 (patch)
tree6934a4683165d50d17327fe5906746603ef5a615 /src/mainboard/lenovo
parente1a6ea6c4871a4647d591cf296073758767fa612 (diff)
downloadcoreboot-c46242f904b64daee36e6d478e1d88c623fb3c44.tar.gz
coreboot-c46242f904b64daee36e6d478e1d88c623fb3c44.tar.bz2
coreboot-c46242f904b64daee36e6d478e1d88c623fb3c44.zip
sb/intel/i82801gx/chip.h: Use 'bool' instead of 'int'
This to fix following error using Clang-16.0.0: /cb-build/coreboot-toolchain.0/clang/APPLE_IMAC52/mainboard/apple/macbook21/static.c:66:19: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] .c4onc3_enable = 1, ^ /cb-build/coreboot-toolchain.0/clang/APPLE_IMAC52/mainboard/apple/macbook21/static.c:75:32: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] .p_cnt_throttling_supported = 1, ^ Change-Id: I691b51a97b359655c406bff28ee6562636d11015 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73796 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/mainboard/lenovo')
-rw-r--r--src/mainboard/lenovo/t60/devicetree.cb6
-rw-r--r--src/mainboard/lenovo/x60/devicetree.cb6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mainboard/lenovo/t60/devicetree.cb b/src/mainboard/lenovo/t60/devicetree.cb
index 913b7323951a..f72b2e90cd79 100644
--- a/src/mainboard/lenovo/t60/devicetree.cb
+++ b/src/mainboard/lenovo/t60/devicetree.cb
@@ -58,10 +58,10 @@ chip northbridge/intel/i945
register "gpe0_en" = "0x11000006"
register "alt_gp_smi_en" = "0x1000"
- register "c4onc3_enable" = "1"
+ register "c4onc3_enable" = "true"
register "c3_latency" = "0x23"
- register "docking_supported" = "1"
- register "p_cnt_throttling_supported" = "1"
+ register "docking_supported" = "true"
+ register "p_cnt_throttling_supported" = "true"
register "gen1_dec" = "0x007c1601"
register "gen2_dec" = "0x000c15e1"
diff --git a/src/mainboard/lenovo/x60/devicetree.cb b/src/mainboard/lenovo/x60/devicetree.cb
index d7c86a52822e..f63acf73250e 100644
--- a/src/mainboard/lenovo/x60/devicetree.cb
+++ b/src/mainboard/lenovo/x60/devicetree.cb
@@ -51,11 +51,11 @@ chip northbridge/intel/i945
register "gpe0_en" = "0x11000006"
register "alt_gp_smi_en" = "0x1000"
- register "c4onc3_enable" = "1"
+ register "c4onc3_enable" = "true"
register "c3_latency" = "0x23"
- register "docking_supported" = "1"
- register "p_cnt_throttling_supported" = "1"
+ register "docking_supported" = "true"
+ register "p_cnt_throttling_supported" = "true"
register "gen1_dec" = "0x007c1601"
register "gen2_dec" = "0x000c15e1"