[U-Boot] [PATCH 06/10] ARM: exynos: Add missing declaration for gpio_direction_input

Simon Glass sjg at chromium.org
Fri Jun 20 05:35:38 CEST 2014


Hi Ajay,

On 17 June 2014 03:06, Ajay Kumar <ajaykumar.rs at samsung.com> wrote:
> This patch adds missing declaration for gpio_direction_input
> function, thereby helps in resolving compilation warnings.
>
> Signed-off-by: Ajay Kumar <ajaykumar.rs at samsung.com>
> ---
>  arch/arm/include/asm/arch-exynos/gpio.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/include/asm/arch-exynos/gpio.h b/arch/arm/include/asm/arch-exynos/gpio.h
> index be5113f..8fb5c23 100644
> --- a/arch/arm/include/asm/arch-exynos/gpio.h
> +++ b/arch/arm/include/asm/arch-exynos/gpio.h
> @@ -1504,6 +1504,7 @@ static const struct gpio_name_num_table exynos5420_gpio_table[] = {
>  void gpio_cfg_pin(int gpio, int cfg);
>  void gpio_set_pull(int gpio, int mode);
>  void gpio_set_drv(int gpio, int mode);
> +int gpio_direction_input(unsigned gpio);
>  int gpio_direction_output(unsigned gpio, int value);
>  int gpio_set_value(unsigned gpio, int value);
>  int gpio_get_value(unsigned gpio);
> --
> 1.8.1.2

Actually I think that the problem is that we are using asm/arch/gpio.h
instead of asm/gpio.h. I have a patch that fixes this - see
u-boot-dm.git branch working, commit 56236bf. I expect to send a patch
next week.

Regards,
Simon


More information about the U-Boot mailing list