diff options
author | Mike Turquette <mturquette@ti.com> | 2010-02-22 11:16:30 -0600 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-03-07 22:17:32 +0100 |
commit | 11a441ce82d6ffecfd39b324024de0cd630b36c1 (patch) | |
tree | c220e9954055e4c9c0c8f556811de11a56e91092 /include | |
parent | 3d8ca8c0b9fe42d005360e255fbf7a6f8580ef87 (diff) | |
download | blackbird-op-linux-11a441ce82d6ffecfd39b324024de0cd630b36c1.tar.gz blackbird-op-linux-11a441ce82d6ffecfd39b324024de0cd630b36c1.zip |
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')
-rw-r--r-- | include/linux/i2c/twl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 70d4caf48571..fb6784e86d5f 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; |