misc: isa1200: Add regulator support
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
diff --git a/include/linux/i2c/isa1200.h b/include/linux/i2c/isa1200.h
index 7d2e53f..4c36d59 100644
--- a/include/linux/i2c/isa1200.h
+++ b/include/linux/i2c/isa1200.h
@@ -3,7 +3,7 @@
*
* Copyright (C) 2009 Samsung Electronics
* Kyungmin Park <kyungmin.park@samsung.com>
- * Copyright (c) 2010, Code Aurora Forum. All rights reserved.
+ * 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 as
@@ -13,6 +13,17 @@
#ifndef __LINUX_ISA1200_H
#define __LINUX_ISA1200_H
+#define ISA_I2C_VTG_MAX_UV 1800000
+#define ISA_I2C_VTG_MIN_UV 1800000
+#define ISA_I2C_CURR_UA 9630
+
+struct isa1200_regulator {
+ const char *name;
+ u32 min_uV;
+ u32 max_uV;
+ u32 load_uA;
+};
+
enum mode_control {
POWER_DOWN_MODE = 0,
PWM_INPUT_MODE,
@@ -30,6 +41,7 @@
unsigned int pwm_ch_id; /* pwm channel id */
unsigned int max_timeout;
unsigned int hap_en_gpio;
+ unsigned int hap_len_gpio;
bool overdrive_high; /* high/low overdrive */
bool overdrive_en; /* enable/disable overdrive */
enum mode_control mode_ctrl; /* input/generation/wave */
@@ -39,6 +51,8 @@
bool ext_clk_en;
unsigned int chip_en;
unsigned int duty;
+ struct isa1200_regulator *regulator_info;
+ u8 num_regulators;
int (*power_on)(int on);
int (*dev_setup)(bool on);
};