mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-04 02:36:38 +03:00
arm: mediatek: add support of MT8189 SoC family
Add TARGET_MT8189 for MT8189 and similar SoCs. Signed-off-by: Chris-QJ Chen <chris-qj.chen@mediatek.com> Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com> Reviewed-by: Julien Stephan <jstephan@baylibre.com> Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com> Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-2-19dd92f4543f@baylibre.com Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
committed by
David Lechner
parent
04b3a834c6
commit
a7c682565b
@@ -93,6 +93,15 @@ config TARGET_MT8188
|
||||
USB3.0 dual role, SD and MMC cards, UFS, PWM, I2C, I2S, S/PDIF, and
|
||||
several LPDDR3 and LPDDR4 options.
|
||||
|
||||
config TARGET_MT8189
|
||||
bool "MediaTek MT8189 SoC"
|
||||
select ARM64
|
||||
help
|
||||
The MediaTek MT8189 is a ARM64-based SoC with a dual-core Cortex-A78 and
|
||||
a six-core Cortex-A55. It is including UART, SPI, USB3.0 dual role,
|
||||
SD and MMC cards, UFS, PWM, I2C, I2S, S/PDIF, and several LPDDR4x
|
||||
and LPDDR5x options.
|
||||
|
||||
config TARGET_MT8195
|
||||
bool "MediaTek MT8195 SoC"
|
||||
select ARM64
|
||||
@@ -201,7 +210,7 @@ config SYS_CONFIG_NAME
|
||||
config MTK_BROM_HEADER_INFO
|
||||
string
|
||||
default "media=nor" if TARGET_MT8518 || TARGET_MT8512 || TARGET_MT7629
|
||||
default "media=emmc" if TARGET_MT8516 || TARGET_MT8365 || TARGET_MT8183 || TARGET_MT8188 || TARGET_MT8195
|
||||
default "media=emmc" if TARGET_MT8516 || TARGET_MT8365 || TARGET_MT8183 || TARGET_MT8188 || TARGET_MT8189 || TARGET_MT8195
|
||||
default "lk=1" if TARGET_MT7623
|
||||
|
||||
config MTK_TZ_MOVABLE
|
||||
|
||||
@@ -14,6 +14,7 @@ obj-$(CONFIG_TARGET_MT7987) += mt7987/
|
||||
obj-$(CONFIG_TARGET_MT7988) += mt7988/
|
||||
obj-$(CONFIG_TARGET_MT8183) += mt8183/
|
||||
obj-$(CONFIG_TARGET_MT8188) += mt8188/
|
||||
obj-$(CONFIG_TARGET_MT8189) += mt8189/
|
||||
obj-$(CONFIG_TARGET_MT8195) += mt8195/
|
||||
obj-$(CONFIG_TARGET_MT8365) += mt8365/
|
||||
obj-$(CONFIG_TARGET_MT8512) += mt8512/
|
||||
|
||||
3
arch/arm/mach-mediatek/mt8189/Makefile
Normal file
3
arch/arm/mach-mediatek/mt8189/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-y += init.o
|
||||
41
arch/arm/mach-mediatek/mt8189/init.c
Normal file
41
arch/arm/mach-mediatek/mt8189/init.c
Normal file
@@ -0,0 +1,41 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (C) 2026 MediaTek Inc.
|
||||
* Author: Chris-QJ Chen <chris-qj.chen@mediatek.com>
|
||||
*/
|
||||
|
||||
#include <fdtdec.h>
|
||||
#include <stdio.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/system.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
return fdtdec_setup_mem_size_base();
|
||||
}
|
||||
|
||||
phys_size_t get_effective_memsize(void)
|
||||
{
|
||||
/*
|
||||
* Limit gd->ram_top not exceeding SZ_4G. Because some peripherals like
|
||||
* MMC requires DMA buffer allocated below SZ_4G.
|
||||
*/
|
||||
return min(SZ_4G - gd->ram_base, gd->ram_size);
|
||||
}
|
||||
|
||||
void reset_cpu(ulong addr)
|
||||
{
|
||||
if (!CONFIG_IS_ENABLED(SYSRESET))
|
||||
psci_system_reset();
|
||||
}
|
||||
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
printf("CPU: MediaTek MT8189\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user