diff options
author | Mattias Nilsson <mattias.i.nilsson@stericsson.com> | 2012-03-05 16:52:14 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-04-06 09:39:36 +0200 |
commit | 7b3b0c2093f8c1ef3e1e6c965f4c79e33a883f42 (patch) | |
tree | 9670b3d078fa8cbb94b8b6041a685139e4b4b610 /include | |
parent | a8fb4849d086e1b4c3185dc9e8cd042c5ed66298 (diff) |
mfd: ab8500: make use of the 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.
ST Ericsson ID: 354143
ST Ericsson FOSS-OUT ID: trivial
Change-Id: Ic204b63b3a7546bbb7cf4966c973f9ec3662c328
Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47195
Reviewed-by: QABUILD
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Diffstat (limited to 'include')
-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 8cba9684e4a..9612ebd6991 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h @@ -217,6 +217,7 @@ enum ab8500_version { * @version: chip version id (e.g. ab8500 or ab9540) * @chip_id: chip revision id * @write: register write + * @write_masked: masked register write * @read: register read * @rx_buf: rx buf for SPI * @tx_buf: tx buf for SPI @@ -235,8 +236,9 @@ struct ab8500 { enum ab8500_version version; u8 chip_id; - int (*write) (struct ab8500 *a8500, u16 addr, u8 data); - int (*read) (struct ab8500 *a8500, u16 addr); + int (*write)(struct ab8500 *ab8500, u16 addr, u8 data); + int (*write_masked)(struct ab8500 *ab8500, u16 addr, u8 mask, u8 data); + int (*read)(struct ab8500 *ab8500, u16 addr); unsigned long tx_buf[4]; unsigned long rx_buf[4]; |