pinctrl: sh-pfc: r8a7796: Add voltage switch operations for SDHI
authorSimon Horman <horms+renesas@verge.net.au>
Thu, 8 Sep 2016 11:57:33 +0000 (13:57 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 12 Sep 2016 08:58:23 +0000 (10:58 +0200)
commitc5901bdcbc6142b686b15d0b4a959aa19a350af1
tree9806dcd20d409949ac4826a0739888eede73372e
parent40ade582194668aa4336a30f96c9d592c46a1928
pinctrl: sh-pfc: r8a7796: Add voltage switch operations for SDHI

This patch supports the {get,set}_io_voltage operations of SDHI.

This operates the POCCTRL0 register on R8A7796 SoC and makes 1.8v/3.3v
voltage switch.

Based on work by Takeshi Kihara and Wolfram Sang.

Cc: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/pfc-r8a7796.c