Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  linux/drivers/mfd/lpc_ich.h
0004  *
0005  *  Copyright (c) 2012 Extreme Engineering Solution, Inc.
0006  *  Author: Aaron Sierra <asierra@xes-inc.com>
0007  */
0008 #ifndef LPC_ICH_H
0009 #define LPC_ICH_H
0010 
0011 #include <linux/platform_data/x86/spi-intel.h>
0012 
0013 /* GPIO resources */
0014 #define ICH_RES_GPIO    0
0015 #define ICH_RES_GPE0    1
0016 
0017 /* GPIO compatibility */
0018 enum {
0019     ICH_I3100_GPIO,
0020     ICH_V5_GPIO,
0021     ICH_V6_GPIO,
0022     ICH_V7_GPIO,
0023     ICH_V9_GPIO,
0024     ICH_V10CORP_GPIO,
0025     ICH_V10CONS_GPIO,
0026     AVOTON_GPIO,
0027 };
0028 
0029 struct lpc_ich_info {
0030     char name[32];
0031     unsigned int iTCO_version;
0032     unsigned int gpio_version;
0033     enum intel_spi_type spi_type;
0034     u8 use_gpio;
0035 };
0036 
0037 #endif