]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
firmware: ti_sci: Update ti_sci_msg_req_reboot to include domain
authorDave Gerlach <d-gerlach@ti.com>
Fri, 14 May 2021 01:10:55 +0000 (20:10 -0500)
committerLokesh Vutla <lokeshvutla@ti.com>
Thu, 27 May 2021 09:23:14 +0000 (14:53 +0530)
The ti_sci_msg_req_reboot message payload has been extended to include a
domain field, but for the purposes of u-boot this should be zero to
reset the entire SoC as it did before. Include domain for completeness
and set to zero to ensure proper operation.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h

index 2aec2e34d3038890dd4306ec0501d6d02ee4f276..4671a5e3a8a6ee3e2c5125654254af85c758a315 100644 (file)
@@ -1588,6 +1588,7 @@ static int ti_sci_cmd_core_reboot(const struct ti_sci_handle *handle)
                dev_err(info->dev, "Message alloc failed(%d)\n", ret);
                return ret;
        }
+       req.domain = 0;
 
        ret = ti_sci_do_xfer(info, xfer);
        if (ret) {
index eec488f065092e2314b250f288e441ae5b6fabf6..e4a087c2baf43ba1f91e27feb4ede1a2ee25fc83 100644 (file)
@@ -137,12 +137,14 @@ struct ti_sci_msg_resp_version {
 /**
  * struct ti_sci_msg_req_reboot - Reboot the SoC
  * @hdr:       Generic Header
+ * @domain:    Domain to be reset, 0 for full SoC reboot.
  *
  * Request type is TI_SCI_MSG_SYS_RESET, responded with a generic
  * ACK/NACK message.
  */
 struct ti_sci_msg_req_reboot {
        struct ti_sci_msg_hdr hdr;
+       u8 domain;
 } __packed;
 
 /**