diff options
author | Juan Gutierrez <jgutierrez@ti.com> | 2012-08-15 11:25:48 -0400 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2012-09-11 08:24:14 -0400 |
commit | 4980f465d21400303b234bcc3d082916f19f11ff (patch) | |
tree | 1c427b92a94c5911f3a5745f7ee09efb3634c200 /drivers/remoteproc | |
parent | 55d512e245bc7699a8800e23df1a24195dd08217 (diff) |
remoteproc/omap: set bootaddr support
Some remote processors (like OMAP4's DSP) require we explicitly
set a boot address from which they'd start executing code when
taken out of reset.
Support for this is now being added to the omap-specific remoteproc
driver through a set_bootaddr function in the platform data which,
if needed, must be set according to the backend remote processor.
For OMAP4's dsp we can use the following control function:
.set_bootaddr = omap_ctrl_write_dsp_boot_addr
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
[ohad: slight changes to the commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/omap_remoteproc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c index a1f7ac1f8cf6..a0c168cde90d 100644 --- a/drivers/remoteproc/omap_remoteproc.c +++ b/drivers/remoteproc/omap_remoteproc.c | |||
@@ -116,6 +116,9 @@ static int omap_rproc_start(struct rproc *rproc) | |||
116 | struct omap_rproc_pdata *pdata = pdev->dev.platform_data; | 116 | struct omap_rproc_pdata *pdata = pdev->dev.platform_data; |
117 | int ret; | 117 | int ret; |
118 | 118 | ||
119 | if (pdata->set_bootaddr) | ||
120 | pdata->set_bootaddr(rproc->bootaddr); | ||
121 | |||
119 | oproc->nb.notifier_call = omap_rproc_mbox_callback; | 122 | oproc->nb.notifier_call = omap_rproc_mbox_callback; |
120 | 123 | ||
121 | /* every omap rproc is assigned a mailbox instance for messaging */ | 124 | /* every omap rproc is assigned a mailbox instance for messaging */ |