summaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorMike Turquette <mturquette@ti.com>2010-02-22 11:16:30 -0600
committerSamuel Ortiz <sameo@linux.intel.com>2010-03-07 22:17:32 +0100
commit11a441ce82d6ffecfd39b324024de0cd630b36c1 (patch)
treec220e9954055e4c9c0c8f556811de11a56e91092 /include/linux/i2c
parent3d8ca8c0b9fe42d005360e255fbf7a6f8580ef87 (diff)
downloadop-kernel-dev-11a441ce82d6ffecfd39b324024de0cd630b36c1.zip
op-kernel-dev-11a441ce82d6ffecfd39b324024de0cd630b36c1.tar.gz
mfd: Introduce remove_script function for twl4030
New function twl4030_remove_script(u8 flags) takes a script type as defined in twl.h and prevents any script already loaded in that position from running. This is accomplished by programming SEQ_ADD_* to 0x3f, the END_OF_SCRIPT value, where SEQ_ADD_* is determined by flags. (Future) users of this function include OMAP board files for machines facing a race condition between sleep and warm reset. Signed-off-by: Mike Turquette <mturquette@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r--include/linux/i2c/twl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h
index 70d4caf..fb6784e 100644
--- a/include/linux/i2c/twl.h
+++ b/include/linux/i2c/twl.h
@@ -550,6 +550,7 @@ struct twl4030_power_data {
};
extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts);
+extern int twl4030_remove_script(u8 flags);
struct twl4030_codec_audio_data {
unsigned int audio_mclk;
OpenPOWER on IntegriCloud