1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  linux/drivers/mfd/lpc_ich.h
4  *
5  *  Copyright (c) 2012 Extreme Engineering Solution, Inc.
6  *  Author: Aaron Sierra <asierra@xes-inc.com>
7  */
8 #ifndef LPC_ICH_H
9 #define LPC_ICH_H
10 
11 #include <linux/platform_data/intel-spi.h>
12 
13 /* GPIO resources */
14 #define ICH_RES_GPIO	0
15 #define ICH_RES_GPE0	1
16 
17 /* GPIO compatibility */
18 enum {
19 	ICH_I3100_GPIO,
20 	ICH_V5_GPIO,
21 	ICH_V6_GPIO,
22 	ICH_V7_GPIO,
23 	ICH_V9_GPIO,
24 	ICH_V10CORP_GPIO,
25 	ICH_V10CONS_GPIO,
26 	AVOTON_GPIO,
27 };
28 
29 struct lpc_ich_info {
30 	char name[32];
31 	unsigned int iTCO_version;
32 	unsigned int gpio_version;
33 	enum intel_spi_type spi_type;
34 	u8 use_gpio;
35 };
36 
37 #endif
38