Skip to content

Commit

Permalink
ARM: OMAP: dsp: interface to control module functions
Browse files Browse the repository at this point in the history
Provide an interface for a driver to call SCM functions to
set a boot address and boot mode.

Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
  • Loading branch information
Omar Ramirez Luna authored and Paul Walmsley committed Jun 18, 2012
1 parent 90f1380 commit 3d3635c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-omap2/dsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <linux/module.h>
#include <linux/platform_device.h>
#include "control.h"
#include "cm2xxx_3xxx.h"
#include "prm2xxx_3xxx.h"
#ifdef CONFIG_BRIDGE_DVFS
Expand All @@ -43,6 +44,9 @@ static struct omap_dsp_platform_data omap_dsp_pdata __initdata = {
.dsp_cm_read = omap2_cm_read_mod_reg,
.dsp_cm_write = omap2_cm_write_mod_reg,
.dsp_cm_rmw_bits = omap2_cm_rmw_mod_reg_bits,

.set_bootaddr = omap_ctrl_write_dsp_boot_addr,
.set_bootmode = omap_ctrl_write_dsp_boot_mode,
};

static phys_addr_t omap_dsp_phys_mempool_base;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/plat-omap/include/plat/dsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ struct omap_dsp_platform_data {
u32 (*dsp_cm_read)(s16 , u16);
u32 (*dsp_cm_rmw_bits)(u32, u32, s16, s16);

void (*set_bootaddr)(u32);
void (*set_bootmode)(u8);

phys_addr_t phys_mempool_base;
phys_addr_t phys_mempool_size;
};
Expand Down

0 comments on commit 3d3635c

Please sign in to comment.