summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2019-03-08 09:17:32 +0300
committerTom Rini <trini@konsulko.com>2019-04-12 15:05:50 +0300
commit826eb74015fafda92f1fd35e91aeec76a8099539 (patch)
treefafa3fecea0d4e03ff58d09a8d9228cc977b0b0a /include/linux
parent097fd51b7ab2b179719f13cc9cca77043c45bb4c (diff)
downloadu-boot-826eb74015fafda92f1fd35e91aeec76a8099539.tar.xz
firmware: Add support for querying msmc memory
DMSC can use certain amount of msmc memory available in the system. Also certain part of msmc memory can be marked as L3 cache using board config. But users might not know what size is being used and the remaining available msmc memory. In order to fix this TISCI protocol provides a messages that can query the available msmc memory in the system. Add support for this message. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/soc/ti/ti_sci_protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/soc/ti/ti_sci_protocol.h b/include/linux/soc/ti/ti_sci_protocol.h
index 49baf98ce7..222cf66546 100644
--- a/include/linux/soc/ti/ti_sci_protocol.h
+++ b/include/linux/soc/ti/ti_sci_protocol.h
@@ -242,9 +242,13 @@ struct ti_sci_rm_core_ops {
* @reboot_device: Reboot the SoC
* Returns 0 for successful request(ideally should never return),
* else returns corresponding error value.
+ * @query_msmc: Query the size of available msmc
+ * Return 0 for successful query else appropriate error value.
*/
struct ti_sci_core_ops {
int (*reboot_device)(const struct ti_sci_handle *handle);
+ int (*query_msmc)(const struct ti_sci_handle *handle,
+ u64 *msmc_start, u64 *msmc_end);
};
/**