]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
tegra2: Use new GPIO APIs in gpio_config_uart()
authorStephen Warren <swarren@nvidia.com>
Thu, 6 Oct 2011 12:52:22 +0000 (12:52 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 9 Dec 2011 16:30:08 +0000 (17:30 +0100)
commit5fac236a9703827666df452f093d2849625afd4d
treeb1728dc8a0291ac1411234a40260a032908e769a
parentd5ef19b9b349dc87611357be22e563a99528a422
tegra2: Use new GPIO APIs in gpio_config_uart()

... rather than open-coding the register accesses.

However, gpio_request() typically stores the "label" parameter in a global
data structure. This causes problems when called from gpio_config_uart(),
since the code is running before relocation. To solve this, pass a NULL
string to gpio_request(), and modify gpio_request() not to touch the string
if it's NULL.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
board/nvidia/seaboard/seaboard.c
drivers/gpio/tegra2_gpio.c