pwm: Add MediaTek MT8183 display PWM driver support
authorJitao Shi <jitao.shi@mediatek.com>
Tue, 22 Jan 2019 09:02:43 +0000 (17:02 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 4 Mar 2019 10:45:08 +0000 (11:45 +0100)
commita87b40615a145f69621bac5dc16360047c51f1d9
tree36eea8c0c6d4a00dbf8432926af13ebe27930a2c
parent7a58fc5448d186f57d71aac031ade3bf2a302afd
pwm: Add MediaTek MT8183 display PWM driver support

Use the mtk_pwm_data struction to define different registers
and add MT8183 specific register operations, such as MT8183
doesn't have commit register, needs to disable double buffer
before writing register, and needs to select commit mode
and use PWM_PERIOD/PWM_HIGH_WIDTH.

Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-mtk-disp.c