pinctrl-baytrail: add function mux checking in gpio pin request
authorChew, Kean Ho <kean.ho.chew@intel.com>
Thu, 6 Mar 2014 13:59:49 +0000 (21:59 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Mar 2014 10:22:54 +0000 (11:22 +0100)
commit42bd00706ce95d74ad6ebcb8528ee1fbbb992f6a
treed125223cf06776ffe8650e33c4ca31564295070f
parenta76cbd7eba1fa4b623fa35e2cb0ef5de1c504e2f
pinctrl-baytrail: add function mux checking in gpio pin request

The requested gpio pin must has the func_pin_mux field set
to GPIO function by BIOS/FW in advanced. Else, the gpio pin
request would fail. This is to ensure that we do not expose
any gpio pins which shall be used for alternate functions,
for eg: wakeup pin, I/O interfaces for LPSS, etc.

Signed-off-by: Chew, Kean Ho <kean.ho.chew@intel.com>
Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-baytrail.c