mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 02:08:38 +00:00
f6f681642f
This allows to test if a pin's label if displayed using gpio_get_status() when this pin is configured in alternate function. Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
27 lines
615 B
C
27 lines
615 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* This header provides constants for binding sandbox,gpio
|
|
*
|
|
*/
|
|
#ifndef _DT_BINDINGS_GPIO_SANDBOX_GPIO_H
|
|
#define _DT_BINDINGS_GPIO_SANDBOX_GPIO_H
|
|
|
|
/*
|
|
* Add a specific binding for sandbox gpio.
|
|
* The value need to be after the generic defines of
|
|
* dt-bindings/gpio/gpio.h
|
|
*/
|
|
|
|
/* Bit 16 express GPIO input mode */
|
|
#define GPIO_IN 0x10000
|
|
|
|
/* Bit 17 express GPIO output mode */
|
|
#define GPIO_OUT 0x20000
|
|
|
|
/* Bit 18 express GPIO output is active */
|
|
#define GPIO_OUT_ACTIVE 0x40000
|
|
|
|
/* Bit 19 express GPIO set as alternate function */
|
|
#define GPIO_AF 0x80000
|
|
|
|
#endif
|