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
}
ipq_configure_gpio
void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned int count)
Definition:
cdp.c:8
gpio_tlmm_config
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
gpio_func_data_t
Definition:
cdp.h:26
gpio
Definition:
pinmux.c:36
gpio::func
unsigned int func
Definition:
pinmux.c:38
gpio::pull
unsigned int pull
Definition:
pinmux.c:39
count
#define count
src
mainboard
google
gale
cdp.c
Generated by
1.9.1