mirror of
https://xff.cz/git/u-boot/
synced 2025-10-02 16:01:30 +02:00
microblaze: Add gpio.h
Gpio support is not implemented yet. Adding it because of fdtdec. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
41
arch/microblaze/include/asm/gpio.h
Normal file
41
arch/microblaze/include/asm/gpio.h
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#ifndef _ASM_MICROBLAZE_GPIO_H_
|
||||||
|
#define _ASM_MICROBLAZE_GPIO_H_
|
||||||
|
|
||||||
|
#include <asm/io.h>
|
||||||
|
|
||||||
|
static inline int gpio_request(unsigned gpio, const char *label)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int gpio_free(unsigned gpio)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int gpio_direction_input(unsigned gpio)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int gpio_direction_output(unsigned gpio, int value)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int gpio_get_value(unsigned gpio)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int gpio_set_value(unsigned gpio, int value)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int gpio_is_valid(int number)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Reference in New Issue
Block a user