1 // SPDX-License-Identifier: GPL-2.0
12 #include <asm/arch/s400_api.h>
15 DECLARE_GLOBAL_DATA_PTR;
17 int ahab_release_rdc(u8 core_id)
19 struct udevice *dev = gd->arch.s400_dev;
20 int size = sizeof(struct imx8ulp_s400_msg);
21 struct imx8ulp_s400_msg msg;
25 printf("s400 dev is not initialized\n");
29 msg.version = AHAB_VERSION;
30 msg.tag = AHAB_CMD_TAG;
32 msg.command = AHAB_RELEASE_RDC_REQ_CID;
33 msg.data[0] = core_id;
35 ret = misc_call(dev, false, &msg, size, &msg, size);
37 printf("Error: %s: ret %d, core id %u, response 0x%x\n",
38 __func__, ret, core_id, msg.data[0]);