diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-02-20 08:04:16 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-02-21 13:23:52 (GMT) |
commit | 5d0e6b28f3b35234211ac23c3687ef06c8c14fba (patch) | |
tree | 626b845cc1c087ebefdb83694ed4a953551d57e8 /arch/arm/mach-nomadik/include/mach/gpio.h | |
parent | ea3857230c2d7428e8c22a9d063b4a5b86b34a0c (diff) | |
download | u-boot-5d0e6b28f3b35234211ac23c3687ef06c8c14fba.tar.xz |
ARM: nomadik: move SoC headers to mach-nomadik/include/mach
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>
Diffstat (limited to 'arch/arm/mach-nomadik/include/mach/gpio.h')
-rw-r--r-- | arch/arm/mach-nomadik/include/mach/gpio.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-nomadik/include/mach/gpio.h b/arch/arm/mach-nomadik/include/mach/gpio.h new file mode 100644 index 0000000..311758a --- /dev/null +++ b/arch/arm/mach-nomadik/include/mach/gpio.h @@ -0,0 +1,26 @@ +/* + * (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__ */ |