]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commitdiff
[PDK-12358]Removing Non-supported Sciclient APIs REL.CORESDK.08.06.00.01 REL.CORESDK.08.06.00.02 REL.CORESDK.08.06.00.03
authorKunal Lahoti <k-lahoti@ti.com>
Thu, 12 Jan 2023 09:57:21 +0000 (15:27 +0530)
committerRishabh Garg <rishabh@ti.com>
Thu, 12 Jan 2023 11:04:53 +0000 (05:04 -0600)
Sciclient_pmDevicePowerOff() and Sciclient_pmGetWakeupReason()
APIs are not supported on TDA4V platform,removing from
Scilcient drive.

Signed-off-by: Kunal Lahoti <k-lahoti@ti.com>
packages/ti/drv/sciclient/docs/design/lld.rst
packages/ti/drv/sciclient/include/sciclient_pm.h
packages/ti/drv/sciclient/src/sciclient/sciclient_pm.c

index 0f6147a2051cb1e7e9d96c91aecaf5dc759b2c58..9c242f18b6e6e2484bb61986a5f7511d7058970e 100644 (file)
@@ -1303,82 +1303,6 @@ None
 **See Also**
 None
 
-Sciclient_pmGetWakeupReason
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Request wakeup reason
- After a wakeup, the host can request the deepest sleep/idle mode reached
- and the reason for the wakeup. The API also returns the time spent in idle
- state.
-
- \n<b>Message</b>: #TISCI_MSG_WAKE_REASON
- \n<b>Request</b>: #tisci_msg_wake_reason_req
- \n<b>Response</b>: #tisci_msg_wake_reason_resp
-
-**Syntax**
-
-int32_t Sciclient_pmGetWakeupReason(uint8_t mode[32],uint8_t reason[32],uint32_t * time_ms,uint32_t timeout);
-
-**Arguments**
-
- mode[32] :  Deepest sleep/idle mode 0x000C reached ( ASCII ) 
-   
- reason[32] :  Wakeup reason ( ASCII ) 
-   
- time_ms :  Time spent in idle state ( ms ) 
-   
- timeout :  Gives a sense of how long to wait for the operation.
- Refer \ref Sciclient_ServiceOperationTimeout.
-
-   
-
-
-**Return Value**
-CSL_PASS on success, else failure
-
-**Comments**
-None
-
-**Constraints**
-None
-
-**See Also**
-None
-
-Sciclient_pmDevicePowerOff
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Some processors have a special sequence for powering off the core
- that provides notification to the PMMC when that sequence has completed.
- For processors without such a sequence, the goodbye message exists.
- The exact sequence involved in the goodbye message depends on the SoC.
-
- \n<b>Message</b>: #TISCI_MSG_GOODBYE
- \n<b>Request</b>: #tisci_msg_goodbye_req
- \n<b>Response</b>: #tisci_msg_goodbye_resp
-
-**Syntax**
-
-int32_t Sciclient_pmDevicePowerOff(uint32_t timeout);
-
-**Arguments**
-
- timeout :  Gives a sense of how long to wait for the operation.
- Refer \ref Sciclient_ServiceOperationTimeout.
-   
-
-
-**Return Value**
-CSL_PASS on success, else failure
-
-**Comments**
-None
-
-**Constraints**
-None
-
-**See Also**
-None
 
 Sciclient_pmDeviceReset
 ~~~~~~~~~~~~~~~~~~~~~~~~~
index 78f420af9e8df0c0499f6ca7ca43071504709ad8..c587b416b17c2d27760ef6a6d3a311cbfa3af4f3 100755 (executable)
@@ -500,46 +500,6 @@ int32_t Sciclient_pmEnableWdt(uint32_t timeout);
  */
 int32_t Sciclient_pmDisableWakeup(uint32_t timeout);
 
-/**
- *  \brief    [Not supported on TDA4(Jacinto) Platforms]
- *  Request wakeup reason
- *  After a wakeup, the host can request the deepest sleep/idle mode reached
- *  and the reason for the wakeup. The API also returns the time spent in idle
- *  state.
- *
- *  \n<b>Message</b>:    #TISCI_MSG_WAKE_REASON
- *  \n<b>Request</b>:    #tisci_msg_wake_reason_req
- *  \n<b>Response</b>:   #tisci_msg_wake_reason_resp
- *
- *  \param  mode            Deepest sleep/idle mode 0x000C reached (ASCII)
- *  \param  reason          Wakeup reason (ASCII)
- *  \param  time_ms         Time spent in idle state (ms)
- *  \param  timeout         Gives a sense of how long to wait for the operation.
- *                          Refer \ref Sciclient_ServiceOperationTimeout.
- *
- *  \return CSL_PASS on success, else failure
- */
-int32_t Sciclient_pmGetWakeupReason(uint8_t mode[32],
-                                    uint8_t reason[32],
-                                    uint32_t * time_ms,
-                                    uint32_t timeout);
-/**
- *  \brief    [Not supported on TDA4(Jacinto) Platforms]
- *  Some processors have a special sequence for powering off the core
- *  that provides notification to the PMMC when that sequence has completed.
- *  For processors without such a sequence, the goodbye message exists.
- *  The exact sequence involved in the goodbye message depends on the SoC.
- *
- *  \n<b>Message</b>:    #TISCI_MSG_GOODBYE
- *  \n<b>Request</b>:    #tisci_msg_goodbye_req
- *  \n<b>Response</b>:   #tisci_msg_goodbye_resp
- *
- *  \param  timeout         Gives a sense of how long to wait for the operation.
- *                          Refer \ref Sciclient_ServiceOperationTimeout.
- *  \return CSL_PASS on success, else failure
- */
-int32_t Sciclient_pmDevicePowerOff(uint32_t timeout);
-
 /**
  *  \brief   Objective: Trigger a SoC level reset
  *  Usage: Used to trigger a system level reset.
index 7491fec1ec7716fd13eddf570fcc4762f77f8315..b048b5190811395fcb28c10c303036c850c6e0f4 100755 (executable)
@@ -679,70 +679,6 @@ int32_t Sciclient_pmDisableWakeup(uint32_t timeout)
     return retVal;
 }
 
-int32_t Sciclient_pmGetWakeupReason(uint8_t   mode[32],
-                                    uint8_t   reason[32],
-                                    uint32_t *time_ms,
-                                    uint32_t  timeout)
-{
-    int32_t retVal = CSL_PASS;
-
-    struct tisci_msg_wake_reason_resp response = {0};
-    struct tisci_msg_wake_reason_req request = {0};
-    Sciclient_ReqPrm_t reqParam = {0};
-    reqParam.messageType    = (uint16_t) TISCI_MSG_WAKE_REASON;
-    reqParam.flags          = (uint32_t) TISCI_MSG_FLAG_AOP;
-    reqParam.pReqPayload    = (const uint8_t *) &request;
-    reqParam.reqPayloadSize = (uint32_t) sizeof(request);
-    reqParam.timeout        = (uint32_t) timeout;
-
-    Sciclient_RespPrm_t respParam = {0};
-    respParam.flags           = (uint32_t) 0;   /* Populated by the API */
-    respParam.pRespPayload    = (uint8_t *) &response;
-    respParam.respPayloadSize = (uint32_t) sizeof (response);
-
-    retVal = Sciclient_service(&reqParam, &respParam);
-    if((retVal != CSL_PASS) ||
-        ((respParam.flags & TISCI_MSG_FLAG_ACK) != TISCI_MSG_FLAG_ACK))
-    {
-        retVal = CSL_EFAIL;
-    }
-    if (retVal == CSL_PASS)
-    {
-        (void) memcpy((void *)mode, (void *)response.mode, sizeof (response.mode));
-        (void) memcpy((void *)reason, (void *)response.reason, sizeof (response.reason));
-        *time_ms = (uint32_t)(uintptr_t)time_ms;
-    }
-    return retVal;
-}
-
-int32_t Sciclient_pmDevicePowerOff(uint32_t timeout)
-{
-    int32_t retVal = CSL_PASS;
-
-    Sciclient_ReqPrm_t reqParam = {0};
-    struct tisci_msg_goodbye_req request = {0};
-    struct tisci_msg_goodbye_resp response = {0};
-    reqParam.messageType    = (uint16_t) TISCI_MSG_GOODBYE;
-    reqParam.flags          = (uint32_t) TISCI_MSG_FLAG_AOP;
-    reqParam.pReqPayload    = (const uint8_t *) &request;
-    reqParam.reqPayloadSize = (uint32_t) sizeof(request);
-    reqParam.timeout        = (uint32_t) timeout;
-
-    Sciclient_RespPrm_t respParam = {0};
-    respParam.flags           = (uint32_t) 0;   /* Populated by the API */
-    respParam.pRespPayload    = (uint8_t *) &response;
-    respParam.respPayloadSize = (uint32_t) sizeof(response);
-
-
-    retVal = Sciclient_service(&reqParam, &respParam);
-    if((retVal != CSL_PASS) ||
-        ((respParam.flags & TISCI_MSG_FLAG_ACK) != TISCI_MSG_FLAG_ACK))
-    {
-        retVal = CSL_EFAIL;
-    }
-    return retVal;
-}
-
 int32_t Sciclient_pmDeviceReset(uint32_t timeout)
 {
     int32_t retVal = CSL_PASS;