Home
last modified time | relevance | path

Searched refs:GPIO_NUM (Results 1 – 8 of 8) sorted by relevance

/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dmv_ddr_sys_env_lib.h23 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument
24 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument
25 (MPP_REG_NUM(GPIO_NUM) * 8)));
26 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument
27 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
/openbmc/u-boot/arch/arm/mach-mvebu/serdes/a38x/
H A Dsys_env_lib.h246 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument
247 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument
248 (MPP_REG_NUM(GPIO_NUM) * 8)));
249 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument
250 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/
H A Dkudo-lib.sh37 GPIO_NUM=$(get_gpio_num "$1")
38 echo "$GPIO_NUM" > /sys/class/gpio/export
39 cat /sys/class/gpio/gpio"$GPIO_NUM"/value
40 echo "$GPIO_NUM" > /sys/class/gpio/unexport
/openbmc/openbmc/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/
H A Dpoweroff.sh4 GPIO_NUM=$((GPIO_BASE + 24 + 3))
6 echo 1 > /sys/class/gpio/gpio${GPIO_NUM}/value
8 echo 0 > /sys/class/gpio/gpio${GPIO_NUM}/value
H A Dpoweron.sh4 GPIO_NUM=$((GPIO_BASE + 24 + 3))
6 echo 1 > /sys/class/gpio/gpio${GPIO_NUM}/value
8 echo 0 > /sys/class/gpio/gpio${GPIO_NUM}/value
/openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/
H A Dmori-lib.sh59 GPIO_NUM=$(get_gpio_num "$1")
60 echo "$GPIO_NUM" > /sys/class/gpio/export
64 if ! cat /sys/class/gpio/gpio"$GPIO_NUM"/value 2> /dev/null ; then
67 echo "$GPIO_NUM" > /sys/class/gpio/unexport
/openbmc/u-boot/drivers/gpio/
H A Dsunxi_gpio.c36 u32 num = GPIO_NUM(pin); in sunxi_gpio_output()
54 u32 num = GPIO_NUM(pin); in sunxi_gpio_input()
172 u32 num = GPIO_NUM(offset); in sunxi_gpio_direction_output()
183 u32 num = GPIO_NUM(offset); in sunxi_gpio_get_value()
196 u32 num = GPIO_NUM(offset); in sunxi_gpio_set_value()
/openbmc/u-boot/arch/arm/include/asm/arch-sunxi/
H A Dgpio.h81 #define GPIO_NUM(pin) ((pin) & 0x1f) macro