Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: bcm2835: dt: Add header file for pinctrl constants

This new header file defines pincontrol constants to use
from bcm2835 DTS files for pincontrol properties option.

Reviewed-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Stefan Wahren and committed by
Lee Jones
62c69d76 4c059b0b

+27
+27
include/dt-bindings/pinctrl/bcm2835.h
··· 1 + /* 2 + * Header providing constants for bcm2835 pinctrl bindings. 3 + * 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 12 + */ 13 + 14 + #ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__ 15 + #define __DT_BINDINGS_PINCTRL_BCM2835_H__ 16 + 17 + /* brcm,function property */ 18 + #define BCM2835_FSEL_GPIO_IN 0 19 + #define BCM2835_FSEL_GPIO_OUT 1 20 + #define BCM2835_FSEL_ALT5 2 21 + #define BCM2835_FSEL_ALT4 3 22 + #define BCM2835_FSEL_ALT0 4 23 + #define BCM2835_FSEL_ALT1 5 24 + #define BCM2835_FSEL_ALT2 6 25 + #define BCM2835_FSEL_ALT3 7 26 + 27 + #endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */