diff options
author | Miguel Vadillo <vadillo@ti.com> | 2011-06-24 15:47:47 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-06-30 11:08:00 -0700 |
commit | 6978af1a61dc36f2885c3ebadbbd87a6d77a167b (patch) | |
tree | 42f0071032f0584c35f693ea25f87319e3bcbe95 /include | |
parent | 8bcd480931b6a99ce1332decb24192c883e6f53d (diff) | |
download | kernel_samsung_tuna-6978af1a61dc36f2885c3ebadbbd87a6d77a167b.zip kernel_samsung_tuna-6978af1a61dc36f2885c3ebadbbd87a6d77a167b.tar.gz kernel_samsung_tuna-6978af1a61dc36f2885c3ebadbbd87a6d77a167b.tar.bz2 |
rpmsg: resmgr: request / release constraints
Add the ability to request and release constraints
on the devices each remoteproc has requested:
Frequency constraints(OPP):
- IVA
Latency constraints:
- IVA
- ISS
- FDIF
Bw constraints:
- IVA (on L3 bus)
- ISS (on L3 bus)
- FDIF (on L3 bus)
Change-Id: I9445ba4f3b9491da317e3fe6fce3efe2cc6fbb10
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rpmsg_resmgr.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/include/linux/rpmsg_resmgr.h b/include/linux/rpmsg_resmgr.h index bba60f3..620043e 100644 --- a/include/linux/rpmsg_resmgr.h +++ b/include/linux/rpmsg_resmgr.h @@ -33,7 +33,7 @@ #ifndef _LINUX_RPMSG_RESMGR_H #define _LINUX_RPMSG_RESMGR_H -#define MAX_NUM_SDMA_CHANNELS 16 +#define MAX_NUM_SDMA_CHANNELS 16 enum { RPRM_GPTIMER = 0, @@ -52,10 +52,18 @@ enum { }; enum { - RPRM_CONNECT = 0, - RPRM_REQ_ALLOC = 1, - RPRM_REQ_FREE = 2, - RPRM_DISCONNECT = 3, + RPRM_CONNECT = 0, + RPRM_REQ_ALLOC = 1, + RPRM_REQ_FREE = 2, + RPRM_DISCONNECT = 3, + RPRM_REQ_CONSTRAINTS = 4, + RPRM_REL_CONSTRAINTS = 5, +}; + +enum { + RPRM_SCALE = 0x1, + RPRM_LAT = 0x2, + RPRM_BW = 0x4, }; struct rprm_request { @@ -100,4 +108,11 @@ struct rprm_sdma { s32 channels[MAX_NUM_SDMA_CHANNELS]; }; +struct rprm_constraints_data { + u32 mask; + long frequency; + long bandwidth; + long latency; +}; + #endif /* _LINUX_RPMSG_RESMGR_H */ |