mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 06:42:56 +00:00
5d0e6b28f3
Move arch/arm/include/asm/arch-nomadik/* -> arch/arm/mach-nomadik/include/mach/* Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Nomadik Linux Team <STN_WMM_nomadik_linux@list.st.com> Cc: Alessandro Rubini <rubini@unipv.it>
26 lines
573 B
C
26 lines
573 B
C
/*
|
|
* (C) Copyright 2009 Alessandro Rubini
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
#ifndef __NMK_GPIO_H__
|
|
#define __NMK_GPIO_H__
|
|
|
|
/*
|
|
* These functions are called from the soft-i2c driver, but
|
|
* are also used by board files to set output bits.
|
|
*/
|
|
|
|
enum nmk_af { /* alternate function settings */
|
|
GPIO_GPIO = 0,
|
|
GPIO_ALT_A,
|
|
GPIO_ALT_B,
|
|
GPIO_ALT_C
|
|
};
|
|
|
|
extern void nmk_gpio_af(int gpio, int alternate_function);
|
|
extern void nmk_gpio_dir(int gpio, int dir);
|
|
extern void nmk_gpio_set(int gpio, int val);
|
|
extern int nmk_gpio_get(int gpio);
|
|
|
|
#endif /* __NMK_GPIO_H__ */
|