Commit 84515165da1dd21171b7d6042f07b2af210849b5

Authored by Jagannadha Sutradharudu Teki
Committed by Albert ARIBAUD
1 parent f8f36c5dda

gpio: zynq: Add dummy gpio routines

GPIO dummy routines are required for fdt build, may be removed
these dependencies once the u-boot fdt is fully optimized.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>

Showing 1 changed file with 25 additions and 0 deletions Side-by-side Diff

arch/arm/include/asm/arch-zynq/gpio.h
  1 +/*
  2 + * Copyright (c) 2013 Xilinx, Inc.
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+
  5 + */
  6 +
  7 +#ifndef _ZYNQ_GPIO_H
  8 +#define _ZYNQ_GPIO_H
  9 +
  10 +inline int gpio_get_value(unsigned gpio)
  11 +{
  12 + return 0;
  13 +}
  14 +
  15 +inline int gpio_set_value(unsigned gpio, int val)
  16 +{
  17 + return 0;
  18 +}
  19 +
  20 +inline int gpio_request(unsigned gpio, const char *label)
  21 +{
  22 + return 0;
  23 +}
  24 +
  25 +#endif /* _ZYNQ_GPIO_H */