Commit 419d55bb authored by Jacek Anaszewski's avatar Jacek Anaszewski Committed by Lee Jones

mfd: max77693: Add TORCH_IOUT_MASK macro

Add a macro for obtaining the mask of ITORCH register bit fields
related either to FLED1 or FLED2 current output. The expected
arguments are TORCH_IOUT1_SHIFT or TORCH_IOUT2_SHIFT.
Signed-off-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a307de2a
...@@ -87,6 +87,7 @@ enum max77693_pmic_reg { ...@@ -87,6 +87,7 @@ enum max77693_pmic_reg {
/* MAX77693 ITORCH register */ /* MAX77693 ITORCH register */
#define TORCH_IOUT1_SHIFT 0 #define TORCH_IOUT1_SHIFT 0
#define TORCH_IOUT2_SHIFT 4 #define TORCH_IOUT2_SHIFT 4
#define TORCH_IOUT_MASK(x) (0xf << (x))
#define TORCH_IOUT_MIN 15625 #define TORCH_IOUT_MIN 15625
#define TORCH_IOUT_MAX 250000 #define TORCH_IOUT_MAX 250000
#define TORCH_IOUT_STEP 15625 #define TORCH_IOUT_STEP 15625
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment