16 #define FAN_CRUISE_CONTROL_DISABLED 0
17 #define FAN_CRUISE_CONTROL_SPEED 1
18 #define FAN_CRUISE_CONTROL_THERMAL 2
19 #define FAN_SPEED_5625 0
29 { 0x3c, 5625 }, { 0x41, 5192 }, { 0x47, 4753 }, { 0x4e, 4326 },
30 { 0x56, 3924 }, { 0x5f, 3552 }, { 0x69, 3214 }, { 0x74, 2909 },
31 { 0x80, 2636 }, { 0x8d, 2393 }, { 0x9b, 2177 }, { 0xaa, 1985 },
32 { 0xba, 1814 }, { 0xcb, 1662 }, { 0xdd, 1527 }, { 0xf0, 1406 }
41 { 30, 86 }, { 33, 91 }, { 36, 96 }, { 39, 102 },
42 { 42, 107 }, { 45, 113 }, { 48, 118 }, { 51, 123 },
43 { 54, 129 }, { 57, 134 }, { 60, 140 }, { 63, 145 },
44 { 66, 150 }, { 69, 156 }, { 72, 161 }, { 75, 167 }
49 unsigned int cpufan_control = 0, sysfan_control = 0;
50 unsigned int cpufan_speed = 0, sysfan_speed = 0;
51 unsigned int cpufan_temperature = 0, sysfan_temperature = 0;
74 switch (cpufan_control) {
78 switch (sysfan_control) {
85 switch (cpufan_control) {
92 printk(
BIOS_DEBUG,
"Fan Cruise Control setting CPU fan to activation at %d deg C/%d deg F\n",
100 switch (sysfan_control) {
107 printk(
BIOS_DEBUG,
"Fan Cruise Control setting system fan to activation at %d deg C/%d deg F\n",
138 for (i = 1; i <= 3; i++) {
139 char cmos_option_name[] =
"ethernetx";
140 snprintf(cmos_option_name,
sizeof(cmos_option_name),
143 if (!ethernet_disable)
149 "Disabling Ethernet NIC: Cannot find 00:1c.%d!\n",
struct chip_operations mainboard_ops
#define printk(level,...)
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
void install_intel_vga_int15_handler(int active_lfp_, int pfit_, int display_, int panel_type_)
@ GMA_INT15_BOOT_DISPLAY_DEFAULT
@ GMA_INT15_ACTIVE_LFP_INT_LVDS
@ GMA_INT15_PANEL_FIT_DEFAULT
static void pnp_write_hwm5_index(u16 base, u8 reg, u8 value)
static void nuvoton_hwm_select_bank(const u16 base, const u8 bank)
struct temperature temperatures[]
static void hwm_setup(void)
#define FAN_CRUISE_CONTROL_THERMAL
#define FAN_CRUISE_CONTROL_DISABLED
static void mainboard_init(void *chip_info)
#define FAN_CRUISE_CONTROL_SPEED
static void mainboard_enable(struct device *dev)
struct fan_speed fan_speeds[]
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
unsigned int get_uint_option(const char *name, const unsigned int fallback)
void(* init)(void *chip_info)
int snprintf(char *buf, size_t size, const char *fmt,...)
Note: This file is only for POSIX compatibility, and is meant to be chain-included via string....