]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode
authorSean Wang <sean.wang@mediatek.com>
Wed, 18 Oct 2017 08:28:44 +0000 (16:28 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 20 Oct 2017 09:54:37 +0000 (11:54 +0200)
commita10616f05307caf31bb45f413c1a3c48c4b130ea
treeedca16459c9591d9afff095f177edf276b998b3e
parentec83368635ac153d58517bd286afc1fe773a1272
soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

Some regulators such as MediaTek MT6380 also has to be written in
32-bit mode. So the patch adds pwrap_write32, rename old pwrap_write
into pwrap_write16 and one additional function pointer is introduced
for increasing flexibility allowing the determination which mode is
used by the pwrap slave detection through device tree.

Signed-off-by: Chenglin Xu <chenglin.xu@mediatek.com>
Signed-off-by: Chen Zhong <chen.zhong@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c