Browse Source

feat(ti): add sub and patch version number support

Although we do not use these for anything today, they are returned
in this structure and the struct's definition should match.

While here fix a couple comment typos.

Signed-off-by: Andrew Davis <afd@ti.com>
Change-Id: Iac4ec999b44e703e600bde93b0eee83753566876
pull/1997/head
Andrew Davis 3 years ago
parent
commit
852378fd60
  1. 2
      plat/ti/k3/common/drivers/sec_proxy/sec_proxy.h
  2. 18
      plat/ti/k3/common/drivers/ti_sci/ti_sci_protocol.h

2
plat/ti/k3/common/drivers/sec_proxy/sec_proxy.h

@ -53,7 +53,7 @@ struct k3_sec_proxy_msg {
}; };
/** /**
* k3_sec_proxy_send() - Send data over a Secure Proxy thread * k3_sec_proxy_clear_rx_thread() - Clear a receive Secure Proxy thread
* @id: Channel Identifier * @id: Channel Identifier
* @msg: Pointer to k3_sec_proxy_msg * @msg: Pointer to k3_sec_proxy_msg
* *

18
plat/ti/k3/common/drivers/ti_sci/ti_sci_protocol.h

@ -73,18 +73,30 @@ struct ti_sci_msg_hdr {
} __packed; } __packed;
/** /**
* struct ti_sci_msg_resp_version - Response for a message * struct ti_sci_msg_version_req - Request for firmware version information
* @hdr: Generic header
*
* Request for TI_SCI_MSG_VERSION
*/
struct ti_sci_msg_req_version {
struct ti_sci_msg_hdr hdr;
} __packed;
/**
* struct ti_sci_msg_resp_version - Response for firmware version information
* @hdr: Generic header * @hdr: Generic header
* @firmware_description: String describing the firmware * @firmware_description: String describing the firmware
* @firmware_revision: Firmware revision * @firmware_revision: Firmware revision
* @abi_major: Major version of the ABI that firmware supports * @abi_major: Major version of the ABI that firmware supports
* @abi_minor: Minor version of the ABI that firmware supports * @abi_minor: Minor version of the ABI that firmware supports
* @sub_version: Sub-version number of the firmware
* @patch_version: Patch-version number of the firmware.
* *
* In general, ABI version changes follow the rule that minor version increments * In general, ABI version changes follow the rule that minor version increments
* are backward compatible. Major revision changes in ABI may not be * are backward compatible. Major revision changes in ABI may not be
* backward compatible. * backward compatible.
* *
* Response to a generic message with message type TI_SCI_MSG_VERSION * Response to request TI_SCI_MSG_VERSION
*/ */
struct ti_sci_msg_resp_version { struct ti_sci_msg_resp_version {
struct ti_sci_msg_hdr hdr; struct ti_sci_msg_hdr hdr;
@ -93,6 +105,8 @@ struct ti_sci_msg_resp_version {
uint16_t firmware_revision; uint16_t firmware_revision;
uint8_t abi_major; uint8_t abi_major;
uint8_t abi_minor; uint8_t abi_minor;
uint8_t sub_version;
uint8_t patch_version;
} __packed; } __packed;
/** /**

Loading…
Cancel
Save