mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
f8f36c5dda
commit
84515165da
1 changed files with 25 additions and 0 deletions
25
arch/arm/include/asm/arch-zynq/gpio.h
Normal file
25
arch/arm/include/asm/arch-zynq/gpio.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2013 Xilinx, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef _ZYNQ_GPIO_H
|
||||
#define _ZYNQ_GPIO_H
|
||||
|
||||
inline int gpio_get_value(unsigned gpio)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline int gpio_set_value(unsigned gpio, int val)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline int gpio_request(unsigned gpio, const char *label)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* _ZYNQ_GPIO_H */
|
Loading…
Add table
Reference in a new issue