diff options
author | Omar Ramirez Luna <omar.luna@linaro.org> | 2012-06-18 18:18:10 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-06-18 18:18:10 -0400 |
commit | 3d3635c4d77a97c61a539dff86f9a4b67134b4cb (patch) | |
tree | 33c7f06b7738c5a47c214085b3c2144e32ad4bb0 | |
parent | 90f1380ef6436a3f5425f942ea0b3f78e1cca142 (diff) |
ARM: OMAP: dsp: interface to control module functions
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>
-rw-r--r-- | arch/arm/mach-omap2/dsp.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/dsp.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/dsp.c b/arch/arm/mach-omap2/dsp.c index 845309f146fe..8b251a995abf 100644 --- a/arch/arm/mach-omap2/dsp.c +++ b/arch/arm/mach-omap2/dsp.c | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | #include <linux/module.h> | 21 | #include <linux/module.h> |
22 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
23 | #include "control.h" | ||
23 | #include "cm2xxx_3xxx.h" | 24 | #include "cm2xxx_3xxx.h" |
24 | #include "prm2xxx_3xxx.h" | 25 | #include "prm2xxx_3xxx.h" |
25 | #ifdef CONFIG_BRIDGE_DVFS | 26 | #ifdef CONFIG_BRIDGE_DVFS |
@@ -43,6 +44,9 @@ static struct omap_dsp_platform_data omap_dsp_pdata __initdata = { | |||
43 | .dsp_cm_read = omap2_cm_read_mod_reg, | 44 | .dsp_cm_read = omap2_cm_read_mod_reg, |
44 | .dsp_cm_write = omap2_cm_write_mod_reg, | 45 | .dsp_cm_write = omap2_cm_write_mod_reg, |
45 | .dsp_cm_rmw_bits = omap2_cm_rmw_mod_reg_bits, | 46 | .dsp_cm_rmw_bits = omap2_cm_rmw_mod_reg_bits, |
47 | |||
48 | .set_bootaddr = omap_ctrl_write_dsp_boot_addr, | ||
49 | .set_bootmode = omap_ctrl_write_dsp_boot_mode, | ||
46 | }; | 50 | }; |
47 | 51 | ||
48 | static phys_addr_t omap_dsp_phys_mempool_base; | 52 | static phys_addr_t omap_dsp_phys_mempool_base; |
diff --git a/arch/arm/plat-omap/include/plat/dsp.h b/arch/arm/plat-omap/include/plat/dsp.h index 9c604b390f9f..5927709b1908 100644 --- a/arch/arm/plat-omap/include/plat/dsp.h +++ b/arch/arm/plat-omap/include/plat/dsp.h | |||
@@ -18,6 +18,9 @@ struct omap_dsp_platform_data { | |||
18 | u32 (*dsp_cm_read)(s16 , u16); | 18 | u32 (*dsp_cm_read)(s16 , u16); |
19 | u32 (*dsp_cm_rmw_bits)(u32, u32, s16, s16); | 19 | u32 (*dsp_cm_rmw_bits)(u32, u32, s16, s16); |
20 | 20 | ||
21 | void (*set_bootaddr)(u32); | ||
22 | void (*set_bootmode)(u8); | ||
23 | |||
21 | phys_addr_t phys_mempool_base; | 24 | phys_addr_t phys_mempool_base; |
22 | phys_addr_t phys_mempool_size; | 25 | phys_addr_t phys_mempool_size; |
23 | }; | 26 | }; |