rockchip/rk3399: improve gpio driver and support get pull mode function
authorCaesar Wang <wxt@rock-chips.com>
Fri, 9 Sep 2016 18:42:32 +0000 (02:42 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Fri, 9 Sep 2016 20:06:39 +0000 (04:06 +0800)
commit536c2492456758d2fe7e28b11ece9001c4d79cc0
treece04092733a45fe6ab6f898abf9ca97d4ce47b0d
parent77b05323921c23e4261ddd8fee5c326a79b0af97
rockchip/rk3399: improve gpio driver and support get pull mode function

We may need gpio pull mode later, so add this function.
Besides fix a set pull mode bug, and save gpio clock gate,
when operate the gpio, we will enable gpio clock, when
finish gpio operate, restore gpio clock gate status.

Change-Id: Ia1d602804f571a17f5ddc499908663b968b02974
plat/rockchip/rk3399/drivers/gpio/rk3399_gpio.c