coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio_base.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 /*
4  * This file is created based on MT8186 Functional Specification
5  * Chapter number: 5.1
6  */
7 
8 #ifndef SOC_MEDIATEK_MT8186_GPIO_BASE_H
9 #define SOC_MEDIATEK_MT8186_GPIO_BASE_H
10 
11 #include <stdint.h>
12 
13 typedef union {
14  u32 raw;
15  struct {
16  u32 id : 8;
17  u32 flag : 3;
18  u32 bit : 5;
19  u32 base : 8;
20  u32 offset : 8;
21  };
22 } gpio_t;
23 
24 #endif
u8 raw[sizeof(struct arm64_kernel_header)+0x100]
Definition: fit_payload.c:31
static size_t offset
Definition: flashconsole.c:16
uintptr_t base
Definition: uart.c:17
uint32_t gpio_t
Definition: gpio.h:9
uint32_t u32
Definition: stdint.h:51