17 *bit = 1 << (
gpio % 32);
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define printk(level,...)
#define setbits32(addr, set)
#define clrbits32(addr, clear)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
int gpio_direction_output(unsigned int gpio, int value)
Make a GPIO an output, and set its value.
int gpio_direction_input(unsigned int gpio)
Make a GPIO an input.
int gpio_set_value(unsigned int gpio, int value)
Set an output GPIO's value.
int gpio_get_value(unsigned int gpio)
Get a GPIO's value.
void am335x_disable_gpio_irqs(void)
static struct am335x_gpio_regs * gpio_regs_and_bit(unsigned int gpio, uint32_t *bit)
@ AM335X_GPIO_BITS_PER_BANK
static struct am335x_gpio_regs *const am335x_gpio_banks[]