soc: mediatek: pwrap: add common way for setup CS timing extenstion
authorSean Wang <sean.wang@mediatek.com>
Wed, 18 Oct 2017 08:28:47 +0000 (16:28 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 20 Oct 2017 09:54:38 +0000 (11:54 +0200)
commit68189ed59d34bf430790c026465b5489c7edad66
tree6dbc6cee9b72d387cc6c26ef1ea5495d36e1aa58
parent7f80f1007881f1d5c7c37010ecd435946b65061d
soc: mediatek: pwrap: add common way for setup CS timing extenstion

Multiple platforms would always use their own way handling CS timing
extension on the bus which leads to a little bit code duplication.
Therefore, the patch groups the similar logic to handle CS timing
extension into the common function which allows the following SoCs
have more reusability for configing CS timing.

Signed-off-by: Chenglin Xu <chenglin.xu@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