summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2021-08-07 11:00:53 +0300
committerStefano Babic <sbabic@denx.de>2021-08-09 15:46:51 +0300
commit7aeaf4d9a687bcc2b98f3305f2d4e792a9004f70 (patch)
tree83f85ef784cd34671a05ef16ef7a102761b00261 /drivers
parent6306f75d8e498babd7754c1414fc342b0d198b71 (diff)
downloadu-boot-7aeaf4d9a687bcc2b98f3305f2d4e792a9004f70.tar.xz
drivers: misc: imx8ulp: Update S400 API for release RDC
The RDC API is updated to add a field for XRDC or TRDC Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/imx8ulp/s400_api.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/misc/imx8ulp/s400_api.c b/drivers/misc/imx8ulp/s400_api.c
index 4047d6efee..315221a463 100644
--- a/drivers/misc/imx8ulp/s400_api.c
+++ b/drivers/misc/imx8ulp/s400_api.c
@@ -14,7 +14,7 @@
DECLARE_GLOBAL_DATA_PTR;
-int ahab_release_rdc(u8 core_id, u32 *response)
+int ahab_release_rdc(u8 core_id, bool xrdc, u32 *response)
{
struct udevice *dev = gd->arch.s400_dev;
int size = sizeof(struct imx8ulp_s400_msg);
@@ -30,7 +30,10 @@ int ahab_release_rdc(u8 core_id, u32 *response)
msg.tag = AHAB_CMD_TAG;
msg.size = 2;
msg.command = AHAB_RELEASE_RDC_REQ_CID;
- msg.data[0] = core_id;
+ if (xrdc)
+ msg.data[0] = (0x78 << 8) | core_id;
+ else
+ msg.data[0] = (0x74 << 8) | core_id;
ret = misc_call(dev, false, &msg, size, &msg, size);
if (ret)