diff options
| author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2012-05-11 06:42:25 -0400 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2013-01-23 09:39:20 -0500 |
| commit | 0ed5107fa86013c91b1752230d44b79dffee0cda (patch) | |
| tree | 5e7102658eb34811560f43cabebf6d9eb5b8cb02 /include/linux/mfd/abx500 | |
| parent | 1a793a10899487d40ac3071f52a6e231260d935d (diff) | |
ab8500-charger: Do not touch VBUSOVV bits
Do not touch the VBUSOVV in USBCHTRL2 when running on AB8505.
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Tested-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com>
Diffstat (limited to 'include/linux/mfd/abx500')
| -rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 9dd9b99099df..b9a6a847ff61 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h | |||
| @@ -346,4 +346,23 @@ static inline int is_ab8500_2p0(struct ab8500 *ab) | |||
| 346 | return (is_ab8500(ab) && (ab->chip_id == AB8500_CUT2P0)); | 346 | return (is_ab8500(ab) && (ab->chip_id == AB8500_CUT2P0)); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | static inline int is_ab8505_1p0_or_earlier(struct ab8500 *ab) | ||
| 350 | { | ||
| 351 | return (is_ab8505(ab) && (ab->chip_id <= AB8500_CUT1P0)); | ||
| 352 | } | ||
| 353 | |||
| 354 | static inline int is_ab8505_2p0(struct ab8500 *ab) | ||
| 355 | { | ||
| 356 | return (is_ab8505(ab) && (ab->chip_id == AB8500_CUT2P0)); | ||
| 357 | } | ||
| 358 | |||
| 359 | static inline int is_ab9540_1p0_or_earlier(struct ab8500 *ab) | ||
| 360 | { | ||
| 361 | return (is_ab9540(ab) && (ab->chip_id <= AB8500_CUT1P0)); | ||
| 362 | } | ||
| 363 | |||
| 364 | static inline int is_ab9540_2p0(struct ab8500 *ab) | ||
| 365 | { | ||
| 366 | return (is_ab9540(ab) && (ab->chip_id == AB8500_CUT2P0)); | ||
| 367 | } | ||
| 349 | #endif /* MFD_AB8500_H */ | 368 | #endif /* MFD_AB8500_H */ |
