summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/common/include/soc/gpio_base.h (renamed from src/soc/mediatek/mt8195/include/soc/gpio_base.h)4
-rw-r--r--src/soc/mediatek/mt8173/include/soc/gpio_base.h11
-rw-r--r--src/soc/mediatek/mt8183/include/soc/gpio_base.h18
-rw-r--r--src/soc/mediatek/mt8186/include/soc/gpio_base.h24
-rw-r--r--src/soc/mediatek/mt8188/include/soc/gpio_base.h24
-rw-r--r--src/soc/mediatek/mt8192/include/soc/gpio_base.h19
6 files changed, 2 insertions, 98 deletions
diff --git a/src/soc/mediatek/mt8195/include/soc/gpio_base.h b/src/soc/mediatek/common/include/soc/gpio_base.h
index 164b99b50f..558e088a56 100644
--- a/src/soc/mediatek/mt8195/include/soc/gpio_base.h
+++ b/src/soc/mediatek/common/include/soc/gpio_base.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
-#ifndef SOC_MEDIATEK_MT8195_GPIO_BASE_H
-#define SOC_MEDIATEK_MT8195_GPIO_BASE_H
+#ifndef SOC_MEDIATEK_COMMON_GPIO_BASE_H
+#define SOC_MEDIATEK_COMMON_GPIO_BASE_H
#include <stdint.h>
diff --git a/src/soc/mediatek/mt8173/include/soc/gpio_base.h b/src/soc/mediatek/mt8173/include/soc/gpio_base.h
deleted file mode 100644
index a26437a49a..0000000000
--- a/src/soc/mediatek/mt8173/include/soc/gpio_base.h
+++ /dev/null
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef SOC_MEDIATEK_MT8173_GPIO_BASE_H
-#define SOC_MEDIATEK_MT8173_GPIO_BASE_H
-
-#include <stdint.h>
-
-typedef struct {
- u32 id;
-} gpio_t;
-
-#endif
diff --git a/src/soc/mediatek/mt8183/include/soc/gpio_base.h b/src/soc/mediatek/mt8183/include/soc/gpio_base.h
deleted file mode 100644
index d9b0718d4b..0000000000
--- a/src/soc/mediatek/mt8183/include/soc/gpio_base.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef SOC_MEDIATEK_MT8183_GPIO_BASE_H
-#define SOC_MEDIATEK_MT8183_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
diff --git a/src/soc/mediatek/mt8186/include/soc/gpio_base.h b/src/soc/mediatek/mt8186/include/soc/gpio_base.h
deleted file mode 100644
index 7f6480a0f1..0000000000
--- a/src/soc/mediatek/mt8186/include/soc/gpio_base.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-/*
- * This file is created based on MT8186 Functional Specification
- * Chapter number: 5.1
- */
-
-#ifndef SOC_MEDIATEK_MT8186_GPIO_BASE_H
-#define SOC_MEDIATEK_MT8186_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
diff --git a/src/soc/mediatek/mt8188/include/soc/gpio_base.h b/src/soc/mediatek/mt8188/include/soc/gpio_base.h
deleted file mode 100644
index dabff3593f..0000000000
--- a/src/soc/mediatek/mt8188/include/soc/gpio_base.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
-
-/*
- * This file is created based on MT8188 Functional Specification
- * Chapter number: 5.2
- */
-
-#ifndef SOC_MEDIATEK_MT8188_GPIO_BASE_H
-#define SOC_MEDIATEK_MT8188_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
diff --git a/src/soc/mediatek/mt8192/include/soc/gpio_base.h b/src/soc/mediatek/mt8192/include/soc/gpio_base.h
deleted file mode 100644
index 61e1318824..0000000000
--- a/src/soc/mediatek/mt8192/include/soc/gpio_base.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef SOC_MEDIATEK_MT8192_GPIO_BASE_H
-#define SOC_MEDIATEK_MT8192_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