diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2023-03-19 07:43:32 +0100 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2023-04-08 03:35:39 +0000 |
commit | c46242f904b64daee36e6d478e1d88c623fb3c44 (patch) | |
tree | 6934a4683165d50d17327fe5906746603ef5a615 /src/mainboard | |
parent | e1a6ea6c4871a4647d591cf296073758767fa612 (diff) |
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')
-rw-r--r-- | src/mainboard/apple/macbook21/devicetree.cb | 4 | ||||
-rw-r--r-- | src/mainboard/asus/p5gc-mx/devicetree.cb | 2 | ||||
-rw-r--r-- | src/mainboard/getac/p470/devicetree.cb | 2 | ||||
-rw-r--r-- | src/mainboard/gigabyte/ga-945gcm-s2l/devicetree.cb | 2 | ||||
-rw-r--r-- | src/mainboard/ibase/mb899/devicetree.cb | 2 | ||||
-rw-r--r-- | src/mainboard/intel/d945gclf/devicetree.cb | 2 | ||||
-rw-r--r-- | src/mainboard/kontron/986lcd-m/devicetree.cb | 2 | ||||
-rw-r--r-- | src/mainboard/lenovo/t60/devicetree.cb | 6 | ||||
-rw-r--r-- | src/mainboard/lenovo/x60/devicetree.cb | 6 | ||||
-rw-r--r-- | src/mainboard/roda/rk886ex/devicetree.cb | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/src/mainboard/apple/macbook21/devicetree.cb b/src/mainboard/apple/macbook21/devicetree.cb index dd701da7ed..fd86e939b9 100644 --- a/src/mainboard/apple/macbook21/devicetree.cb +++ b/src/mainboard/apple/macbook21/devicetree.cb @@ -52,10 +52,10 @@ chip northbridge/intel/i945 register "ide_enable_primary" = "true" register "ide_enable_secondary" = "true" - register "c4onc3_enable" = "1" + register "c4onc3_enable" = "true" register "c3_latency" = "0x23" - register "p_cnt_throttling_supported" = "1" + register "p_cnt_throttling_supported" = "true" register "gen1_dec" = "0x000c0681" register "gen2_dec" = "0x000c1641" diff --git a/src/mainboard/asus/p5gc-mx/devicetree.cb b/src/mainboard/asus/p5gc-mx/devicetree.cb index f6d5f76ebb..c464222a76 100644 --- a/src/mainboard/asus/p5gc-mx/devicetree.cb +++ b/src/mainboard/asus/p5gc-mx/devicetree.cb @@ -33,7 +33,7 @@ chip northbridge/intel/i945 register "ide_enable_primary" = "true" register "ide_enable_secondary" = "false" - register "p_cnt_throttling_supported" = "0" + register "p_cnt_throttling_supported" = "false" # SuperIO Power Management Events register "gen1_dec" = "0x00040291" diff --git a/src/mainboard/getac/p470/devicetree.cb b/src/mainboard/getac/p470/devicetree.cb index b12335e947..86bae671d7 100644 --- a/src/mainboard/getac/p470/devicetree.cb +++ b/src/mainboard/getac/p470/devicetree.cb @@ -43,7 +43,7 @@ chip northbridge/intel/i945 register "c3_latency" = "85" register "docking_supported" = "1" - register "p_cnt_throttling_supported" = "1" + register "p_cnt_throttling_supported" = "true" register "gen1_dec" = "0x001c02e1" register "gen2_dec" = "0x00fc0601" diff --git a/src/mainboard/gigabyte/ga-945gcm-s2l/devicetree.cb b/src/mainboard/gigabyte/ga-945gcm-s2l/devicetree.cb index 576be34973..0aa91b24ec 100644 --- a/src/mainboard/gigabyte/ga-945gcm-s2l/devicetree.cb +++ b/src/mainboard/gigabyte/ga-945gcm-s2l/devicetree.cb @@ -58,7 +58,7 @@ chip northbridge/intel/i945 register "ide_enable_secondary" = "false" register "c3_latency" = "85" - register "p_cnt_throttling_supported" = "0" + register "p_cnt_throttling_supported" = "false" register "gen1_dec" = "0x000c0801" # ??? register "gen2_dec" = "0x00040291" # Environment Controller diff --git a/src/mainboard/ibase/mb899/devicetree.cb b/src/mainboard/ibase/mb899/devicetree.cb index 611bd96dad..93f36404f0 100644 --- a/src/mainboard/ibase/mb899/devicetree.cb +++ b/src/mainboard/ibase/mb899/devicetree.cb @@ -33,7 +33,7 @@ chip northbridge/intel/i945 register "ide_enable_secondary" = "false" register "c3_latency" = "85" - register "p_cnt_throttling_supported" = "0" + register "p_cnt_throttling_supported" = "false" register "gen1_dec" = "0x00fc0291" register "gen4_dec" = "0x00000301" diff --git a/src/mainboard/intel/d945gclf/devicetree.cb b/src/mainboard/intel/d945gclf/devicetree.cb index 4007e7ecc4..70a3819c4b 100644 --- a/src/mainboard/intel/d945gclf/devicetree.cb +++ b/src/mainboard/intel/d945gclf/devicetree.cb @@ -34,7 +34,7 @@ chip northbridge/intel/i945 register "ide_enable_primary" = "true" register "ide_enable_secondary" = "false" register "c3_latency" = "85" - register "p_cnt_throttling_supported" = "0" + register "p_cnt_throttling_supported" = "false" register "gen1_dec" = "0x0007c0681" # SuperIO Power Management diff --git a/src/mainboard/kontron/986lcd-m/devicetree.cb b/src/mainboard/kontron/986lcd-m/devicetree.cb index cd67480aa6..5e392e681b 100644 --- a/src/mainboard/kontron/986lcd-m/devicetree.cb +++ b/src/mainboard/kontron/986lcd-m/devicetree.cb @@ -33,7 +33,7 @@ chip northbridge/intel/i945 register "ide_enable_primary" = "true" register "ide_enable_secondary" = "true" register "c3_latency" = "85" - register "p_cnt_throttling_supported" = "0" + register "p_cnt_throttling_supported" = "false" # ICH-7 generic decode IO ports range for LPC register "gen1_dec" = "0x00fc0a01" # HWM diff --git a/src/mainboard/lenovo/t60/devicetree.cb b/src/mainboard/lenovo/t60/devicetree.cb index 913b732395..f72b2e90cd 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 d7c86a5282..f63acf7325 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" diff --git a/src/mainboard/roda/rk886ex/devicetree.cb b/src/mainboard/roda/rk886ex/devicetree.cb index a3b00c1db7..52c96dee33 100644 --- a/src/mainboard/roda/rk886ex/devicetree.cb +++ b/src/mainboard/roda/rk886ex/devicetree.cb @@ -38,7 +38,7 @@ chip northbridge/intel/i945 register "c3_latency" = "0x23" register "docking_supported" = "1" - register "p_cnt_throttling_supported" = "1" + register "p_cnt_throttling_supported" = "true" register "sata_mode" = "SATA_MODE_IDE_LEGACY_COMBINED" register "ide_enable_primary" = "true" |