Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/gpio/
H A Ddb8500_gpio.c35 #define GPIO_PINS_PER_BLOCK 32 macro
36 #define GPIO_BLOCKS_COUNT (GPIO_TOTAL_PINS/GPIO_PINS_PER_BLOCK + 1)
37 #define GPIO_BLOCK(pin) (((pin + GPIO_PINS_PER_BLOCK) >> 5) - 1)
38 #define GPIO_PIN_WITHIN_BLOCK(pin) ((pin)%(GPIO_PINS_PER_BLOCK))