superio/ite/it8772f/chip.h: Use 'bool' when appropriate
Change-Id: I20c3298a920396718f0dc036e57faf8e46b82b2c Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70253 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -79,11 +79,11 @@ chip northbridge/intel/haswell
|
|||||||
end
|
end
|
||||||
chip superio/ite/it8772f
|
chip superio/ite/it8772f
|
||||||
# Skip keyboard init
|
# Skip keyboard init
|
||||||
register "skip_keyboard" = "1"
|
register "skip_keyboard" = "true"
|
||||||
# Enable PECI on TMPIN3
|
# Enable PECI on TMPIN3
|
||||||
register "peci_tmpin" = "3"
|
register "peci_tmpin" = "3"
|
||||||
# Enable FAN2
|
# Enable FAN2
|
||||||
register "fan2_enable" = "1"
|
register "fan2_enable" = "true"
|
||||||
|
|
||||||
device pnp 2e.0 off end # FDC
|
device pnp 2e.0 off end # FDC
|
||||||
device pnp 2e.1 on # Serial Port 1
|
device pnp 2e.1 on # Serial Port 1
|
||||||
|
@@ -73,7 +73,7 @@ chip soc/intel/broadwell
|
|||||||
end
|
end
|
||||||
chip superio/ite/it8772f
|
chip superio/ite/it8772f
|
||||||
# Skip keyboard init
|
# Skip keyboard init
|
||||||
register "skip_keyboard" = "1"
|
register "skip_keyboard" = "true"
|
||||||
# Enable PECI on TMPIN3
|
# Enable PECI on TMPIN3
|
||||||
register "peci_tmpin" = "3"
|
register "peci_tmpin" = "3"
|
||||||
# Disable use of TMPIN1
|
# Disable use of TMPIN1
|
||||||
@@ -81,7 +81,7 @@ chip soc/intel/broadwell
|
|||||||
# Enable Thermal Diode on TMPIN2
|
# Enable Thermal Diode on TMPIN2
|
||||||
register "tmpin2_mode" = "1"
|
register "tmpin2_mode" = "1"
|
||||||
# Enable FAN2
|
# Enable FAN2
|
||||||
register "fan2_enable" = "1"
|
register "fan2_enable" = "true"
|
||||||
# Default FAN2 speed
|
# Default FAN2 speed
|
||||||
register "fan2_speed" = "0x4d"
|
register "fan2_speed" = "0x4d"
|
||||||
|
|
||||||
|
@@ -69,11 +69,11 @@ chip northbridge/intel/sandybridge
|
|||||||
# Enable GPIO52 as USBPWRON1#
|
# Enable GPIO52 as USBPWRON1#
|
||||||
register "gpio_set5" = "0x06"
|
register "gpio_set5" = "0x06"
|
||||||
# Skip keyboard init
|
# Skip keyboard init
|
||||||
register "skip_keyboard" = "1"
|
register "skip_keyboard" = "true"
|
||||||
# Enable PECI on TMPIN3
|
# Enable PECI on TMPIN3
|
||||||
register "peci_tmpin" = "3"
|
register "peci_tmpin" = "3"
|
||||||
# Enable FAN3
|
# Enable FAN3
|
||||||
register "fan3_enable" = "1"
|
register "fan3_enable" = "true"
|
||||||
|
|
||||||
device pnp 2e.0 off end # FDC
|
device pnp 2e.0 off end # FDC
|
||||||
device pnp 2e.1 on # Serial Port 1
|
device pnp 2e.1 on # Serial Port 1
|
||||||
|
@@ -4,6 +4,8 @@
|
|||||||
#define SUPERIO_ITE_IT8772F_CHIP_H
|
#define SUPERIO_ITE_IT8772F_CHIP_H
|
||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#include "it8772f.h"
|
#include "it8772f.h"
|
||||||
|
|
||||||
struct superio_ite_it8772f_config {
|
struct superio_ite_it8772f_config {
|
||||||
@@ -15,7 +17,7 @@ struct superio_ite_it8772f_config {
|
|||||||
u8 gpio_set5;
|
u8 gpio_set5;
|
||||||
u8 gpio_set6;
|
u8 gpio_set6;
|
||||||
|
|
||||||
u8 skip_keyboard;
|
bool skip_keyboard;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enable external temperature sensor to use PECI GetTemp()
|
* Enable external temperature sensor to use PECI GetTemp()
|
||||||
@@ -32,9 +34,9 @@ struct superio_ite_it8772f_config {
|
|||||||
/*
|
/*
|
||||||
* Enable a FAN for software control.
|
* Enable a FAN for software control.
|
||||||
*/
|
*/
|
||||||
u8 fan1_enable;
|
bool fan1_enable;
|
||||||
u8 fan2_enable;
|
bool fan2_enable;
|
||||||
u8 fan3_enable;
|
bool fan3_enable;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default FAN speed
|
* Default FAN speed
|
||||||
|
Reference in New Issue
Block a user