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)
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

Simple merge