blob: e12e51dda947288655e8da8498785c5b5a33cc71 [file] [log] [blame]
Edward O'Callaghan962b6c02014-01-23 22:12:25 +11001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Edward O'Callaghan <eocallaghan@alterapraxis.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifndef SUPERIO_FINTEK_F71869AD_CHIP_H
22#define SUPERIO_FINTEK_F71869AD_CHIP_H
23
Edward O'Callaghandd2e8c32014-04-24 02:58:11 +100024#include <stdint.h>
Edward O'Callaghan962b6c02014-01-23 22:12:25 +110025
26struct superio_fintek_f71869ad_config {
Edward O'Callaghandd2e8c32014-04-24 02:58:11 +100027 /* Member variables are defined in devicetree.cb. */
28 uint8_t multi_function_register_1;
29 uint8_t multi_function_register_2;
30 uint8_t multi_function_register_3;
31 uint8_t multi_function_register_4;
32 uint8_t multi_function_register_5;
Edward O'Callaghan63f28c02014-04-26 15:21:45 +100033 /* HWM configuration registers */
34 uint8_t hwm_smbus_address;
35 uint8_t hwm_smbus_control_reg;
36 uint8_t hwm_fan_type_sel_reg;
37 uint8_t hwm_fan1_temp_adj_rate_reg;
38 uint8_t hwm_fan_mode_sel_reg;
39 uint8_t hwm_fan1_idx_rpm_mode;
40 uint8_t hwm_fan1_seg1_speed_count;
41 uint8_t hwm_fan1_seg2_speed_count;
42 uint8_t hwm_fan1_seg3_speed_count;
43 uint8_t hwm_fan1_temp_map_sel;
Edward O'Callaghan962b6c02014-01-23 22:12:25 +110044};
45
46#endif /* SUPERIO_FINTEK_F71869AD_CHIP_H */