mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00

Add the basic support for i.MX8ULP. The i.MX 8ULP family of processors features NXP’s advanced implementation of the dual Arm Cortex-A35 cores alongside an Arm Cortex-M33. This combined architecture enables the device to run a rich operating system (such as Linux) on the Cortex-A35 core and an RTOS (such as FreeRTOS) on the Cortex-M33 core. It also includes a Cadence Tensilica Fusion DSP for low-power audio and a HiFi4 DSP for advanced audio and machine learning applications. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Jacky Bai <ping.bai@nxp.com> Change-Id: I12df622b95960bcdf7da52e4c66470a700690e36
69 lines
1.3 KiB
C
69 lines
1.3 KiB
C
/*
|
|
* Copyright 2021-2024 NXP
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#include <assert.h>
|
|
#include <stdint.h>
|
|
|
|
#include <drivers/scmi-msg.h>
|
|
#include <drivers/scmi.h>
|
|
|
|
#include <platform_def.h>
|
|
|
|
#define SMT_BUFFER_BASE 0x2201f000
|
|
#define SMT_BUFFER0_BASE SMT_BUFFER_BASE
|
|
#define SMT_BUFFER1_BASE (SMT_BUFFER_BASE + 0x200)
|
|
|
|
static struct scmi_msg_channel scmi_channel[] = {
|
|
[0] = {
|
|
.shm_addr = SMT_BUFFER0_BASE,
|
|
.shm_size = SMT_BUF_SLOT_SIZE,
|
|
},
|
|
};
|
|
|
|
struct scmi_msg_channel *plat_scmi_get_channel(unsigned int agent_id)
|
|
{
|
|
assert(agent_id < ARRAY_SIZE(scmi_channel));
|
|
|
|
return &scmi_channel[agent_id];
|
|
}
|
|
|
|
static const char vendor[] = "NXP";
|
|
static const char sub_vendor[] = "";
|
|
|
|
const char *plat_scmi_vendor_name(void)
|
|
{
|
|
return vendor;
|
|
}
|
|
|
|
const char *plat_scmi_sub_vendor_name(void)
|
|
{
|
|
return sub_vendor;
|
|
}
|
|
|
|
/* Currently supporting Clocks and Reset Domains */
|
|
static const uint8_t plat_protocol_list[] = {
|
|
SCMI_PROTOCOL_ID_POWER_DOMAIN,
|
|
SCMI_PROTOCOL_ID_SENSOR,
|
|
0U /* Null termination */
|
|
};
|
|
|
|
size_t plat_scmi_protocol_count(void)
|
|
{
|
|
return ARRAY_SIZE(plat_protocol_list) - 1U;
|
|
}
|
|
|
|
const uint8_t *plat_scmi_protocol_list(unsigned int agent_id __unused)
|
|
{
|
|
return plat_protocol_list;
|
|
}
|
|
|
|
void imx8ulp_init_scmi_server(void)
|
|
{
|
|
size_t i;
|
|
|
|
for (i = 0U; i < ARRAY_SIZE(scmi_channel); i++) {
|
|
scmi_smt_init_agent_channel(&scmi_channel[i]);
|
|
}
|
|
}
|