misc: pm8058-pwm: add two APIs

These two new APIs allow a driver to specify its PWM period
and duty cycle separately using PM8058 chip specific parameters
or raw values. The API to program a duty cycle uses hardware
module's LUT (LookUpTable) to output PWM value, which can be
used to alleviate potential glitches using direct writing to
PWM register.

Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2 files changed