| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <gpio.h> |
| 4 | #include <soc/cdp.h> |
| 5 | #include <soc/ebi2.h> |
| 6 | #include <soc/clock.h> |
| 7 | |
| 8 | void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned int count) |
| 9 | { |
| 10 | int i; |
| 11 | |
| 12 | for (i = 0; i < count; i++) { |
| 13 | gpio_tlmm_config(gpio->gpio, gpio->func, gpio->dir, |
| 14 | gpio->pull, gpio->drvstr, gpio->enable); |
| 15 | gpio++; |
| 16 | } |
| 17 | } |