mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-09-08 18:21:29 +01:00
platform: generic: Add Metanoia MT2824 initial support
Add the Metanoia MT2824 as a generic platform. This SoC contains two AX45MP cores from Andes Technology and uses Andes PMU and vendor-specific extensions. Originally-by: Jun Chang <jun.chang@metanoia-comm.com> Signed-off-by: Benoît Monin <benoit.monin@bootlin.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260724-mt5824-v3-1-9a7d17d69974@bootlin.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -51,6 +51,13 @@ config PLATFORM_ESWIN_EIC770X
|
||||
bool "ESWIN EIC770X support"
|
||||
default n
|
||||
|
||||
config PLATFORM_METANOIA_MT2824
|
||||
bool "Metanoia MT2824 support"
|
||||
select ANDES_PMA
|
||||
select ANDES_SBI
|
||||
select ANDES_PMU
|
||||
default n
|
||||
|
||||
config PLATFORM_OPENHWGROUP_OPENPITON
|
||||
bool "OpenHWGroup Openpiton support"
|
||||
default n
|
||||
|
||||
@@ -2,6 +2,7 @@ CONFIG_PLATFORM_ALLWINNER_D1=y
|
||||
CONFIG_PLATFORM_ANDES_AE350=y
|
||||
CONFIG_PLATFORM_ANDES_QILAI=y
|
||||
CONFIG_PLATFORM_ESWIN_EIC770X=y
|
||||
CONFIG_PLATFORM_METANOIA_MT2824=y
|
||||
CONFIG_PLATFORM_OPENHWGROUP_ARIANE=y
|
||||
CONFIG_PLATFORM_OPENHWGROUP_OPENPITON=y
|
||||
CONFIG_PLATFORM_RENESAS_RZFIVE=y
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
/*
|
||||
* Copyright (C) 2026 Metanoia Communication Inc.
|
||||
*
|
||||
* Authors:
|
||||
* Jun Chang <jun.chang@metanoia-comm.com>
|
||||
*/
|
||||
|
||||
#include <andes/andes_pmu.h>
|
||||
#include <andes/andes_sbi.h>
|
||||
#include <platform_override.h>
|
||||
|
||||
static int metanoia_mt2824_platform_init(const void *fdt, int nodeoff,
|
||||
const struct fdt_match *match)
|
||||
{
|
||||
generic_platform_ops.extensions_init = andes_pmu_extensions_init;
|
||||
generic_platform_ops.pmu_init = andes_pmu_init;
|
||||
generic_platform_ops.vendor_ext_provider = andes_sbi_vendor_ext_provider;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct fdt_match metanoia_mt2824_match[] = {
|
||||
{ .compatible = "metanoia,mt2824" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
const struct fdt_driver metanoia_mt2824 = {
|
||||
.match_table = metanoia_mt2824_match,
|
||||
.init = metanoia_mt2824_platform_init,
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
#
|
||||
# Copyright (C) 2026 Metanoia Communication Inc.
|
||||
#
|
||||
|
||||
ifeq ($(PLATFORM_RISCV_XLEN), 64)
|
||||
carray-platform_override_modules-$(CONFIG_PLATFORM_METANOIA_MT2824) += metanoia_mt2824
|
||||
platform-objs-$(CONFIG_PLATFORM_METANOIA_MT2824) += metanoia/mt2824/mt2824.o
|
||||
endif
|
||||
Reference in New Issue
Block a user