summaryrefslogtreecommitdiffstats
path: root/src/soc/cavium/cn81xx/include/soc/gpio.h
blob: aba89f61b523cdf1688058dba17bd5fa7d311bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#ifndef __COREBOOT_SRC_SOC_CAVIUM_COMMON_INCLUDE_SOC_GPIO_H
#define __COREBOOT_SRC_SOC_CAVIUM_COMMON_INCLUDE_SOC_GPIO_H

#include <types.h>

typedef u32 gpio_t;
#include <gpio.h>

/* The following functions must be implemented by SoC/board code. */


gpio_t gpio_pin_count(void);
void gpio_invert(gpio_t gpio, int value);
int gpio_strap_value(gpio_t gpio);

void gpio_init(void);

#endif