Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
This commit is contained in:
26
include/linux/i2c/bq27520.h
Normal file
26
include/linux/i2c/bq27520.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_BQ27520_H
|
||||
#define __LINUX_BQ27520_H
|
||||
struct bq27520_platform_data {
|
||||
const char *name;
|
||||
unsigned int soc_int;
|
||||
unsigned int bi_tout;
|
||||
unsigned int chip_en; /* CE */
|
||||
const char *vreg_name; /* regulater used by bq27520 */
|
||||
int vreg_value; /* its value */
|
||||
int enable_dlog; /* if enable on-chip coulomb counter data logger */
|
||||
};
|
||||
|
||||
#endif /* __LINUX_BQ27520_H */
|
||||
46
include/linux/i2c/isa1200.h
Normal file
46
include/linux/i2c/isa1200.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* isa1200.h - ISA1200 Haptic Motor driver
|
||||
*
|
||||
* Copyright (C) 2009 Samsung Electronics
|
||||
* Kyungmin Park <kyungmin.park@samsung.com>
|
||||
* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_ISA1200_H
|
||||
#define __LINUX_ISA1200_H
|
||||
|
||||
enum mode_control {
|
||||
POWER_DOWN_MODE = 0,
|
||||
PWM_INPUT_MODE,
|
||||
PWM_GEN_MODE,
|
||||
WAVE_GEN_MODE
|
||||
};
|
||||
|
||||
union pwm_div_freq {
|
||||
unsigned int pwm_div; /* PWM gen mode */
|
||||
unsigned int pwm_freq; /* PWM input mode */
|
||||
};
|
||||
|
||||
struct isa1200_platform_data {
|
||||
const char *name;
|
||||
unsigned int pwm_ch_id; /* pwm channel id */
|
||||
unsigned int max_timeout;
|
||||
unsigned int hap_en_gpio;
|
||||
bool overdrive_high; /* high/low overdrive */
|
||||
bool overdrive_en; /* enable/disable overdrive */
|
||||
enum mode_control mode_ctrl; /* input/generation/wave */
|
||||
union pwm_div_freq pwm_fd;
|
||||
bool smart_en; /* smart mode enable/disable */
|
||||
bool is_erm;
|
||||
bool ext_clk_en;
|
||||
unsigned int chip_en;
|
||||
unsigned int duty;
|
||||
int (*power_on)(int on);
|
||||
int (*dev_setup)(bool on);
|
||||
};
|
||||
|
||||
#endif /* __LINUX_ISA1200_H */
|
||||
38
include/linux/i2c/isl9519.h
Normal file
38
include/linux/i2c/isl9519.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
#ifndef __ISL9519_H__
|
||||
#define __ISL9519_H__
|
||||
|
||||
/**
|
||||
* struct isl_platform_data
|
||||
* @chgcurrent: max current the islchip can draw
|
||||
* @valid_irq: interrupt for insertion/removal notification
|
||||
* @valid_n_gpio: gpio to debounce insertion/removal
|
||||
* @valid_config: machine specific func to configure gpio line
|
||||
* @max_system_voltage: the max voltage isl should charge battery to
|
||||
* @min_system_voltage: the min voltage isl should trkl charge the
|
||||
* battery
|
||||
* @term_current: the batt current when isl charging should stop
|
||||
* @input_current: the max current isl should pull from the adapter
|
||||
*/
|
||||
struct isl_platform_data {
|
||||
int chgcurrent;
|
||||
int valid_n_gpio;
|
||||
int (*chg_detection_config) (void);
|
||||
int max_system_voltage;
|
||||
int min_system_voltage;
|
||||
int term_current;
|
||||
int input_current;
|
||||
};
|
||||
|
||||
#endif
|
||||
33
include/linux/i2c/smb137b.h
Normal file
33
include/linux/i2c/smb137b.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
#ifndef __SMB137B_H__
|
||||
#define __SMB137B_H__
|
||||
|
||||
/**
|
||||
* struct smb137b_platform_data
|
||||
* structure to pass board specific information to the smb137b charger driver
|
||||
* @chgcurrent: max current the smb137bchip can draw
|
||||
* @valid_n_gpio: gpio to debounce insertion/removal
|
||||
* @chg_detection_config: machine specific func to configure
|
||||
* insertion/removal gpio line
|
||||
* @batt_mah_rating: the battery current rating
|
||||
*/
|
||||
struct smb137b_platform_data {
|
||||
int valid_n_gpio;
|
||||
int (*chg_detection_config) (void);
|
||||
int batt_mah_rating;
|
||||
};
|
||||
|
||||
void smb137b_otg_power(int on);
|
||||
|
||||
#endif
|
||||
@@ -11,11 +11,6 @@
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
#ifndef __LINUX_I2C_SX150X_H
|
||||
#define __LINUX_I2C_SX150X_H
|
||||
|
||||
@@ -13,12 +13,18 @@ struct tsc2007_platform_data {
|
||||
int fuzzx; /* fuzz factor for X, Y and pressure axes */
|
||||
int fuzzy;
|
||||
int fuzzz;
|
||||
unsigned long irq_flags;
|
||||
bool invert_x;
|
||||
bool invert_y;
|
||||
bool invert_z1;
|
||||
bool invert_z2;
|
||||
|
||||
int (*get_pendown_state)(void);
|
||||
void (*clear_penirq)(void); /* If needed, clear 2nd level
|
||||
interrupt source */
|
||||
int (*init_platform_hw)(void);
|
||||
void (*exit_platform_hw)(void);
|
||||
int (*power_shutdown)(bool);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user