summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8195/include/soc/gpio_base.h
blob: 8670aeb66d84ff3069ebd1c832981cbc8d5658ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef SOC_MEDIATEK_MT8195_GPIO_BASE_H
#define SOC_MEDIATEK_MT8195_GPIO_BASE_H

#include <stdint.h>

typedef union {
	u32 raw;
	struct {
		u32 id     : 8;
		u32 flag   : 3;
		u32 bit    : 5;
		u32 base   : 8;
		u32 offset : 8;
	};
} gpio_t;

#endif