1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /* 1 /* 3 * Header providing constants for bcm2835 pinc 2 * Header providing constants for bcm2835 pinctrl bindings. 4 * 3 * 5 * Copyright (C) 2015 Stefan Wahren <stefan.wa 4 * Copyright (C) 2015 Stefan Wahren <stefan.wahren@i2se.com> >> 5 * >> 6 * The code contained herein is licensed under the GNU General Public >> 7 * License. You may obtain a copy of the GNU General Public License >> 8 * Version 2 at the following locations: >> 9 * >> 10 * http://www.opensource.org/licenses/gpl-license.html >> 11 * http://www.gnu.org/copyleft/gpl.html 6 */ 12 */ 7 13 8 #ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__ 14 #ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__ 9 #define __DT_BINDINGS_PINCTRL_BCM2835_H__ 15 #define __DT_BINDINGS_PINCTRL_BCM2835_H__ 10 16 11 /* brcm,function property */ 17 /* brcm,function property */ 12 #define BCM2835_FSEL_GPIO_IN 0 18 #define BCM2835_FSEL_GPIO_IN 0 13 #define BCM2835_FSEL_GPIO_OUT 1 19 #define BCM2835_FSEL_GPIO_OUT 1 14 #define BCM2835_FSEL_ALT5 2 20 #define BCM2835_FSEL_ALT5 2 15 #define BCM2835_FSEL_ALT4 3 21 #define BCM2835_FSEL_ALT4 3 16 #define BCM2835_FSEL_ALT0 4 22 #define BCM2835_FSEL_ALT0 4 17 #define BCM2835_FSEL_ALT1 5 23 #define BCM2835_FSEL_ALT1 5 18 #define BCM2835_FSEL_ALT2 6 24 #define BCM2835_FSEL_ALT2 6 19 #define BCM2835_FSEL_ALT3 7 25 #define BCM2835_FSEL_ALT3 7 20 26 21 /* brcm,pull property */ 27 /* brcm,pull property */ 22 #define BCM2835_PUD_OFF 0 28 #define BCM2835_PUD_OFF 0 23 #define BCM2835_PUD_DOWN 1 29 #define BCM2835_PUD_DOWN 1 24 #define BCM2835_PUD_UP 2 30 #define BCM2835_PUD_UP 2 25 31 26 #endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */ 32 #endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */ 27 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.