[U-Boot] [PATCH 1/5] microblaze: Add gpio.h

Michal Simek monstr at monstr.eu
Mon Jul 9 10:38:43 CEST 2012


2012/6/29 Michal Simek <monstr at monstr.eu>:
> Gpio support is not implemented yet. Adding it because of fdtdec.
>
> Signed-off-by: Michal Simek <monstr at monstr.eu>
> ---
>  arch/microblaze/include/asm/gpio.h |   41 ++++++++++++++++++++++++++++++++++++
>  1 files changed, 41 insertions(+), 0 deletions(-)
>  create mode 100644 arch/microblaze/include/asm/gpio.h
>
> diff --git a/arch/microblaze/include/asm/gpio.h b/arch/microblaze/include/asm/gpio.h
> new file mode 100644
> index 0000000..883f4d4
> --- /dev/null
> +++ b/arch/microblaze/include/asm/gpio.h
> @@ -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
> +
> --

Applied to microblaze custodian branch.

Michal

-- 
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian


More information about the U-Boot mailing list