coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cdp.c
Go to the documentation of this file.
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 }
void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned int count)
Definition: cdp.c:8
static void gpio_tlmm_config(unsigned int gpio, unsigned int func, unsigned int dir, unsigned int pull, unsigned int drvstr, unsigned int enable)
Definition: gpio.h:82
Definition: pinmux.c:36
unsigned int func
Definition: pinmux.c:38
unsigned int pull
Definition: pinmux.c:39
#define count