diff options
| author | Texas Instruments Auto Merger <lcpd_integration@list.ti.com> | 2022-05-06 03:22:19 -0500 |
|---|---|---|
| committer | Texas Instruments Auto Merger <lcpd_integration@list.ti.com> | 2022-05-06 03:22:19 -0500 |
| commit | 2f6b5cad94895e2f0491dc34bcce93a382f80f28 (patch) | |
| tree | d4260b9b08f214fe747767d4c2a466db001fae86 /include | |
| parent | 9cff62efaca103acf18b8478362ec56e11d7f526 (diff) | |
| parent | c161df7b1ea070454256bab10135736ffdb3e875 (diff) | |
Merged TI feature platform_base into ti-linux-5.10.y
TI-Feature: platform_base
TI-Branch: platform-ti-linux-5.10.y
* 'platform-ti-linux-5.10.y' of ssh://bitbucket.itg.ti.com/lcpdpublicdom/platform:
arm64: dts: ti: Introduce k3-am625-sk-lpmdemo
arm64: dts: ti: Introduce lpm_ctx_ddr memory carveout
arm64: dts: ti: introduce minimal dt for am625
arm64: dts: ti: k3-am62-mcu: Enable MCU GPIO module
arm64: dts: ti: k3-am62-main: Add ti,lpm-firmware-name to dmsc node
arm64: dts: ti: k3-am62-main: Add lpm region to dmsc
firmware: ti_sci: Introduce prepare system suspend call
firmware: ti_sci: Use dt provided fw name and address to load at suspend time
firmware: ti_sci: Introduce ti,ctx-memory-region for reserved LPM memory
firmware: ti_sci: Introduce Power Management Ops
firmware: ti_sci: Switch transport to polled mode during system suspend
mailbox: ti-msgmgr: Operate mailbox in polled mode during system suspend
mailbox: ti-msgmgr: Refactor message read during interrupt handler
Signed-off-by: Texas Instruments Auto Merger <lcpd_integration@list.ti.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/soc/ti/ti-msgmgr.h | 8 | ||||
| -rw-r--r-- | include/linux/soc/ti/ti_sci_protocol.h | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/soc/ti/ti-msgmgr.h b/include/linux/soc/ti/ti-msgmgr.h index 1f6e76d423cf..69a8d7682c4b 100644 --- a/include/linux/soc/ti/ti-msgmgr.h +++ b/include/linux/soc/ti/ti-msgmgr.h @@ -1,7 +1,7 @@ /* * Texas Instruments' Message Manager * - * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/ + * Copyright (C) 2015-2022 Texas Instruments Incorporated - https://www.ti.com/ * Nishanth Menon * * This program is free software; you can redistribute it and/or modify @@ -17,10 +17,14 @@ #ifndef TI_MSGMGR_H #define TI_MSGMGR_H +struct mbox_chan; + /** * struct ti_msgmgr_message - Message Manager structure * @len: Length of data in the Buffer * @buf: Buffer pointer + * @chan_rx: Expected channel for response, must be provided to use polled rx + * @timeout_rx_ms: Timeout value to use if polling for response * * This is the structure for data used in mbox_send_message * the length of data buffer used depends on the SoC integration @@ -30,6 +34,8 @@ struct ti_msgmgr_message { size_t len; u8 *buf; + struct mbox_chan *chan_rx; + int timeout_rx_ms; }; #endif /* TI_MSGMGR_H */ diff --git a/include/linux/soc/ti/ti_sci_protocol.h b/include/linux/soc/ti/ti_sci_protocol.h index 0aad7009b50e..d9a32b56f5e3 100644 --- a/include/linux/soc/ti/ti_sci_protocol.h +++ b/include/linux/soc/ti/ti_sci_protocol.h @@ -195,6 +195,11 @@ struct ti_sci_clk_ops { u64 *current_freq); }; +struct ti_sci_pm_ops { + int (*prepare_sleep)(const struct ti_sci_handle *handle, u8 mode, + u32 ctx_lo, u32 ctx_hi, u32 flags); +}; + /** * struct ti_sci_resource_desc - Description of TI SCI resource instance range. * @start: Start index of the first resource range. @@ -539,6 +544,7 @@ struct ti_sci_ops { struct ti_sci_core_ops core_ops; struct ti_sci_dev_ops dev_ops; struct ti_sci_clk_ops clk_ops; + struct ti_sci_pm_ops pm_ops; struct ti_sci_rm_core_ops rm_core_ops; struct ti_sci_rm_irq_ops rm_irq_ops; struct ti_sci_rm_ringacc_ops rm_ring_ops; |
