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>
This commit is contained in:
parent
e1a6ea6c48
commit
c46242f904
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -63,9 +63,9 @@ struct southbridge_intel_i82801gx_config {
|
|||
/* Enable linear PCIe Root Port function numbers starting at zero */
|
||||
bool pcie_port_coalesce;
|
||||
|
||||
int c4onc3_enable:1;
|
||||
int docking_supported:1;
|
||||
int p_cnt_throttling_supported:1;
|
||||
bool c4onc3_enable;
|
||||
bool docking_supported;
|
||||
bool p_cnt_throttling_supported;
|
||||
int c3_latency;
|
||||
|
||||
/* Additional LPC IO decode ranges */
|
||||
|
|
Loading…
Reference in New Issue