diff options
| author | Tom Rini <[email protected]> | 2026-02-18 11:57:24 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-02-18 11:57:24 -0600 |
| commit | 339a55865a0be5d8dc6c49b17e38b2bd587b402d (patch) | |
| tree | f5dac80ac3966fafba4be1b843555b0f20255616 /board | |
| parent | e8dd062642d91a00ddb596787ff35bd3641a6a21 (diff) | |
| parent | f1c0e637cd67ffddee154f8c5282c4e910a7179e (diff) | |
Merge patch series "arm: mediatek: clean up some redundant board init"
David Lechner <[email protected]> says:
Before adding more targets, we take a moment to clean up some some
redundant code in existing Mediatek SoC support.
The first three patches are removing no-op functions. The last patch
generalizes the mem_map code so that it can be shared between all
Mediatek ARMv8 SoCs.
Link: https://lore.kernel.org/r/20260209-mtk-mach-clean-up-duplicates-v2-0-e3b22282c74d@baylibre.com
Diffstat (limited to 'board')
| -rw-r--r-- | board/mediatek/MAINTAINERS (renamed from board/mediatek/mt8390_evk/MAINTAINERS) | 6 | ||||
| -rw-r--r-- | board/mediatek/mt8365_evk/MAINTAINERS | 5 | ||||
| -rw-r--r-- | board/mediatek/mt8365_evk/Makefile | 3 | ||||
| -rw-r--r-- | board/mediatek/mt8365_evk/mt8365_evk.c | 28 | ||||
| -rw-r--r-- | board/mediatek/mt8390_evk/Makefile | 3 | ||||
| -rw-r--r-- | board/mediatek/mt8390_evk/mt8390_evk.c | 34 |
6 files changed, 5 insertions, 74 deletions
diff --git a/board/mediatek/mt8390_evk/MAINTAINERS b/board/mediatek/MAINTAINERS index d46b8b2e156..5d19892e26b 100644 --- a/board/mediatek/mt8390_evk/MAINTAINERS +++ b/board/mediatek/MAINTAINERS @@ -1,6 +1,10 @@ +MT8365 EVK +M: Julien Masson <[email protected]> +S: Maintained +F: configs/mt8365_evk_defconfig + MT8390 EVK M: Julien Masson <[email protected]> M: Macpaul Lin <[email protected]> S: Maintained -F: board/mediatek/mt8390_evk/ F: configs/mt8390_evk_defconfig diff --git a/board/mediatek/mt8365_evk/MAINTAINERS b/board/mediatek/mt8365_evk/MAINTAINERS deleted file mode 100644 index e0d65efe812..00000000000 --- a/board/mediatek/mt8365_evk/MAINTAINERS +++ /dev/null @@ -1,5 +0,0 @@ -MT8365 EVK -M: Julien Masson <[email protected]> -S: Maintained -F: board/mediatek/mt8365_evk/ -F: configs/mt8365_evk_defconfig diff --git a/board/mediatek/mt8365_evk/Makefile b/board/mediatek/mt8365_evk/Makefile deleted file mode 100644 index 90fc92b28c5..00000000000 --- a/board/mediatek/mt8365_evk/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -obj-y += mt8365_evk.o diff --git a/board/mediatek/mt8365_evk/mt8365_evk.c b/board/mediatek/mt8365_evk/mt8365_evk.c deleted file mode 100644 index 41a6febf03d..00000000000 --- a/board/mediatek/mt8365_evk/mt8365_evk.c +++ /dev/null @@ -1,28 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (C) 2023 BayLibre SAS - * Author: Julien Masson <[email protected]> - */ - -#include <asm/armv8/mmu.h> - -static struct mm_region mt8365_evk_mem_map[] = { - { - /* DDR */ - .virt = 0x40000000UL, - .phys = 0x40000000UL, - .size = 0xc0000000UL, - .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE, - }, { - .virt = 0x00000000UL, - .phys = 0x00000000UL, - .size = 0x20000000UL, - .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | - PTE_BLOCK_NON_SHARE | - PTE_BLOCK_PXN | PTE_BLOCK_UXN - }, { - 0, - } -}; - -struct mm_region *mem_map = mt8365_evk_mem_map; diff --git a/board/mediatek/mt8390_evk/Makefile b/board/mediatek/mt8390_evk/Makefile deleted file mode 100644 index a26d46838c4..00000000000 --- a/board/mediatek/mt8390_evk/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -obj-y += mt8390_evk.o diff --git a/board/mediatek/mt8390_evk/mt8390_evk.c b/board/mediatek/mt8390_evk/mt8390_evk.c deleted file mode 100644 index 1ca40366a55..00000000000 --- a/board/mediatek/mt8390_evk/mt8390_evk.c +++ /dev/null @@ -1,34 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (C) 2026 BayLibre SAS - * Author: Julien Masson <[email protected]> - */ - -#include <linux/types.h> -#include <asm/armv8/mmu.h> - -int board_init(void) -{ - return 0; -} - -static struct mm_region mt8390_evk_mem_map[] = { - { - /* DDR */ - .virt = 0x40000000UL, - .phys = 0x40000000UL, - .size = 0x200000000UL, - .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE, - }, { - .virt = 0x00000000UL, - .phys = 0x00000000UL, - .size = 0x20000000UL, - .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | - PTE_BLOCK_NON_SHARE | - PTE_BLOCK_PXN | PTE_BLOCK_UXN - }, { - 0, - } -}; - -struct mm_region *mem_map = mt8390_evk_mem_map; |
