History

firmware: ti_sci: Add support for RM core ops

TISCI provides support for getting the resources(IRQ, RING etc..) assigned to a specific device. These resources can be handled by the client and in turn sends TISCI cmd to configure the resources. It is very important that client should keep track on usage of these resources. Add support for TISCI commands to get resource ranges.

Lokesh Vutla committed 7 years ago

Commit 9c19fb61 parent 905c3043 files · +239 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/soc/ti/ti_sci_protocol.h+27−0
@@ -192,15 +192,42 @@ struct ti_sci_clk_ops { · 191 unmodified lines
192 u64 *current_freq);192 u64 *current_freq);
193};193};
194 194
195/**
196 * struct ti_sci_rm_core_ops - Resource management core operations
197 * @get_range: Get a range of resources belonging to ti sci host.
198 * @get_rage_from_shost: Get a range of resources belonging to
199 * specified host id.
200 * - s_host: Host processing entity to which the
201 * resources are allocated
202 *
203 * NOTE: for these functions, all the parameters are consolidated and defined
204 * as below:
205 * - handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
206 * - dev_id: TISCI device ID.
207 * - subtype: Resource assignment subtype that is being requested
208 * from the given device.
209 * - range_start: Start index of the resource range
210 * - range_end: Number of resources in the range
211 */
212struct ti_sci_rm_core_ops {
213 int (*get_range)(const struct ti_sci_handle *handle, u32 dev_id,
214 u8 subtype, u16 *range_start, u16 *range_num);
215 int (*get_range_from_shost)(const struct ti_sci_handle *handle,
216 u32 dev_id, u8 subtype, u8 s_host,
217 u16 *range_start, u16 *range_num);
218};
219
195/**220/**
196 * struct ti_sci_ops - Function support for TI SCI221 * struct ti_sci_ops - Function support for TI SCI
197 * @dev_ops: Device specific operations222 * @dev_ops: Device specific operations
198 * @clk_ops: Clock specific operations223 * @clk_ops: Clock specific operations
224 * @rm_core_ops: Resource management core operations.
199 */225 */
200struct ti_sci_ops {226struct ti_sci_ops {
201 struct ti_sci_core_ops core_ops;227 struct ti_sci_core_ops core_ops;
202 struct ti_sci_dev_ops dev_ops;228 struct ti_sci_dev_ops dev_ops;
203 struct ti_sci_clk_ops clk_ops;229 struct ti_sci_clk_ops clk_ops;
230 struct ti_sci_rm_core_ops rm_core_ops;
204};231};
205 232
206/**233/**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t