mfd: MAX8998/LP3974 hibernation support

This patch makes the driver to save and restore register values
for hibernation.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
MyungJoo Ham
2010-12-23 17:53:36 +09:00
committed by Samuel Ortiz
parent 6680d940b8
commit cdd137c9c8
4 changed files with 118 additions and 0 deletions

View File

@@ -159,10 +159,12 @@ struct max8998_dev {
u8 irq_masks_cur[MAX8998_NUM_IRQ_REGS];
u8 irq_masks_cache[MAX8998_NUM_IRQ_REGS];
int type;
bool wakeup;
};
int max8998_irq_init(struct max8998_dev *max8998);
void max8998_irq_exit(struct max8998_dev *max8998);
int max8998_irq_resume(struct max8998_dev *max8998);
extern int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest);
extern int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count,

View File

@@ -88,6 +88,7 @@ struct max8998_platform_data {
int buck1_set1;
int buck1_set2;
int buck2_set3;
bool wakeup;
};
#endif /* __LINUX_MFD_MAX8998_H */