Lines Matching refs:GPIO_BASE
11 #define GPIO_BASE (void *)GPIO2_BASE_ADDR macro
50 writel(GPIO_PASSWD, GPIO_BASE + GPIO_GPPWR_OFFSET); in gpio_request()
52 value = readl(GPIO_BASE + off) & ~GPIO_BITMASK(gpio); in gpio_request()
53 writel(value, GPIO_BASE + off); in gpio_request()
62 writel(GPIO_PASSWD, GPIO_BASE + GPIO_GPPWR_OFFSET); in gpio_free()
64 value = readl(GPIO_BASE + off) | GPIO_BITMASK(gpio); in gpio_free()
65 writel(value, GPIO_BASE + off); in gpio_free()
74 val = readl(GPIO_BASE + GPIO_CONTROL(gpio)); in gpio_direction_input()
77 writel(val, GPIO_BASE + GPIO_CONTROL(gpio)); in gpio_direction_input()
88 val = readl(GPIO_BASE + GPIO_CONTROL(gpio)); in gpio_direction_output()
91 writel(val, GPIO_BASE + GPIO_CONTROL(gpio)); in gpio_direction_output()
94 val = readl(GPIO_BASE + off); in gpio_direction_output()
96 writel(val, GPIO_BASE + off); in gpio_direction_output()
108 val = readl(GPIO_BASE + GPIO_CONTROL(gpio)); in gpio_get_value()
114 val = readl(GPIO_BASE + off); in gpio_get_value()
127 val = readl(GPIO_BASE + GPIO_CONTROL(gpio)); in gpio_set_value()
138 val = readl(GPIO_BASE + off); in gpio_set_value()
140 writel(val, GPIO_BASE + off); in gpio_set_value()