mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
pwm: Device tree support for PWM polarity
Add support for encoding PWM properties in bit encoded form with of_pwm_xlate_with_flags() function support. Platforms require platform specific PWM properties has to populate in 3rd cell of the pwm-specifier and PWM driver should also set .of_xlate support with this function. Currently PWM property polarity encoded in bit position 0 of the third cell in pwm-specifier. Signed-off-by: Philip, Avinash <avinashphilip@ti.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
This commit is contained in:
parent
422470a826
commit
83af24027b
3 changed files with 45 additions and 3 deletions
|
@ -171,6 +171,9 @@ struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
|
|||
unsigned int index,
|
||||
const char *label);
|
||||
|
||||
struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *pc,
|
||||
const struct of_phandle_args *args);
|
||||
|
||||
struct pwm_device *pwm_get(struct device *dev, const char *consumer);
|
||||
void pwm_put(struct pwm_device *pwm);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue