summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Gerlach <d-gerlach@ti.com>2014-08-28 14:18:49 -0500
committerTero Kristo <t-kristo@ti.com>2014-09-01 11:02:50 +0300
commit794ff5d8b19b4f16f831bada7f9784ab8e8d1d87 (patch)
tree379b1f57cdf8e8c3d8c0fdd172c932231abf9fa7 /include
parent93d297c27164ac60bd16366c3f380dfbcec7c3ee (diff)
remoteproc: wkup_m3_rproc: Introduce wkup_m3_copy_aux_data
Introduce wkup_m3_copy_aux_data to give users of wkup_m3_rproc the ability to copy data to a predefined data region that can be accessed by the firmware running on the CM3. Aux Data region is defined as the last 255 bytes of the DMEM used by the wkup_m3. Useful for providing i2c sequences to the CM3 firmware for scaling PMIC voltages during low power modes. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/wkup_m3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/wkup_m3.h b/include/linux/wkup_m3.h
index 0f8e0e2e0eb..48a7fcc962f 100644
--- a/include/linux/wkup_m3.h
+++ b/include/linux/wkup_m3.h
@@ -50,6 +50,7 @@ struct wkup_m3_ipc_regs {
#ifdef CONFIG_WKUP_M3_RPROC
int wkup_m3_prepare(void);
+unsigned long wkup_m3_copy_aux_data(const void *data, int sz);
void wkup_m3_set_ops(struct wkup_m3_ops *ops);
int wkup_m3_ping(void);
void wkup_m3_wake_src(struct wkup_m3_wakeup_src *wakeup_src);
@@ -61,6 +62,8 @@ void wkup_m3_set_cmd(struct wkup_m3_ipc_regs *ipc_regs);
#else
static inline int wkup_m3_prepare(void) { return -EINVAL; }
+static inline
+unsigned long wkup_m3_copy_aux_data(void *data, int sz) { return -1; }
static inline void wkup_m3_set_ops(struct wkup_m3_ops *ops) { }
static inline int wkup_m3_ping(void) { return -EINVAL }
static inline void wkup_m3_wake_src(struct wkup_m3_wakeup_src *wakeup_src) { }