Lines Matching full:ab8500
13 #include <linux/mfd/abx500/ab8500.h>
42 struct ab8500_pwm_chip *ab8500 = ab8500_pwm_from_chip(chip); in ab8500_pwm_apply() local
96 1 << ab8500->hwid, 0); in ab8500_pwm_apply()
115 reg = AB8500_PWM_OUT_CTRL1_REG + (ab8500->hwid * 2); in ab8500_pwm_apply()
130 1 << ab8500->hwid, 1 << ab8500->hwid); in ab8500_pwm_apply()
143 struct ab8500_pwm_chip *ab8500 = ab8500_pwm_from_chip(chip); in ab8500_pwm_get_state() local
154 if (!(ctrl7 & 1 << ab8500->hwid)) { in ab8500_pwm_get_state()
160 AB8500_PWM_OUT_CTRL1_REG + (ab8500->hwid * 2), in ab8500_pwm_get_state()
166 AB8500_PWM_OUT_CTRL2_REG + (ab8500->hwid * 2), in ab8500_pwm_get_state()
188 struct ab8500_pwm_chip *ab8500; in ab8500_pwm_probe() local
196 * device which is required for ab8500 read and write in ab8500_pwm_probe()
198 chip = devm_pwmchip_alloc(&pdev->dev, 1, sizeof(*ab8500)); in ab8500_pwm_probe()
202 ab8500 = ab8500_pwm_from_chip(chip); in ab8500_pwm_probe()
205 ab8500->hwid = pdev->id - 1; in ab8500_pwm_probe()
218 .name = "ab8500-pwm",
225 MODULE_DESCRIPTION("AB8500 Pulse Width Modulation Driver");
226 MODULE_ALIAS("platform:ab8500-pwm");