diff options
author | Mattias Nilsson <mattias.i.nilsson@stericsson.com> | 2012-03-08 08:02:20 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-16 14:45:33 -0400 |
commit | bc628fd19d2d1d053b88fa225bb599be026c048b (patch) | |
tree | d314ae4ddcb2804f68179c98a17581b33356fe96 /include/linux/mfd/abx500 | |
parent | 3c3e489831b601e566f6bc47e711f5847fb93dff (diff) |
mfd: Make use of the ab8500 firmware read-modify-write service
This patch updates the AB8500 driver to make use of the I2C
read-modify-write service in the PRCMU firmware.
Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
Reviewed-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/abx500')
-rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 78ed95bb47c3..3b551a1783ac 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h | |||
@@ -217,6 +217,7 @@ enum ab8500_version { | |||
217 | * @version: chip version id (e.g. ab8500 or ab9540) | 217 | * @version: chip version id (e.g. ab8500 or ab9540) |
218 | * @chip_id: chip revision id | 218 | * @chip_id: chip revision id |
219 | * @write: register write | 219 | * @write: register write |
220 | * @write_masked: masked register write | ||
220 | * @read: register read | 221 | * @read: register read |
221 | * @rx_buf: rx buf for SPI | 222 | * @rx_buf: rx buf for SPI |
222 | * @tx_buf: tx buf for SPI | 223 | * @tx_buf: tx buf for SPI |
@@ -236,8 +237,9 @@ struct ab8500 { | |||
236 | enum ab8500_version version; | 237 | enum ab8500_version version; |
237 | u8 chip_id; | 238 | u8 chip_id; |
238 | 239 | ||
239 | int (*write) (struct ab8500 *a8500, u16 addr, u8 data); | 240 | int (*write)(struct ab8500 *ab8500, u16 addr, u8 data); |
240 | int (*read) (struct ab8500 *a8500, u16 addr); | 241 | int (*write_masked)(struct ab8500 *ab8500, u16 addr, u8 mask, u8 data); |
242 | int (*read)(struct ab8500 *ab8500, u16 addr); | ||
241 | 243 | ||
242 | unsigned long tx_buf[4]; | 244 | unsigned long tx_buf[4]; |
243 | unsigned long rx_buf[4]; | 245 | unsigned long rx_buf[4]; |