Commit 1784bab6 authored by Syed Mohammed, Khasim's avatar Syed Mohammed, Khasim Committed by Tony Lindgren

OMAP:DSP: plat-omap dsp updates for 3430

plat-omap dsp updates for 3430
Signed-off-by: default avatarSyed Mohammed Khasim <x0khasim@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 07b265bb
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
#if defined(CONFIG_ARCH_OMAP1) #if defined(CONFIG_ARCH_OMAP1)
#define dsp_boot_config(mode) omap_writew((mode), MPUI_DSP_BOOT_CONFIG) #define dsp_boot_config(mode) omap_writew((mode), MPUI_DSP_BOOT_CONFIG)
#elif defined(CONFIG_ARCH_OMAP2) #endif
#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
#define dsp_boot_config(mode) writel((mode), DSP_IPI_DSPBOOTCONFIG) #define dsp_boot_config(mode) writel((mode), DSP_IPI_DSPBOOTCONFIG)
#endif #endif
...@@ -302,6 +303,12 @@ static int omap_dsp_init(void) ...@@ -302,6 +303,12 @@ static int omap_dsp_init(void)
saram_base = OMAP24XX_SARAM_BASE; saram_base = OMAP24XX_SARAM_BASE;
saram_size = OMAP24XX_SARAM_SIZE; saram_size = OMAP24XX_SARAM_SIZE;
} }
#endif
#ifdef CONFIG_ARCH_OMAP34XX
/* To be Revisited for 3430 */
if (cpu_is_omap34xx()) {
return -ENODEV;
}
#endif #endif
if (dspmem_size == 0) { if (dspmem_size == 0) {
printk(KERN_ERR "omapdsp: unsupported omap architecture.\n"); printk(KERN_ERR "omapdsp: unsupported omap architecture.\n");
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#ifdef CONFIG_ARCH_OMAP1 #ifdef CONFIG_ARCH_OMAP1
#include "omap1_dsp.h" #include "omap1_dsp.h"
#endif #endif
#ifdef CONFIG_ARCH_OMAP2 #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3430)
#include "omap2_dsp.h" #include "omap2_dsp.h"
#endif #endif
......
...@@ -36,7 +36,14 @@ ...@@ -36,7 +36,14 @@
/* /*
* DSP IPI registers: mapped to 0xe1000000 -- use readX(), writeX() * DSP IPI registers: mapped to 0xe1000000 -- use readX(), writeX()
*/ */
#ifdef CONFIG_ARCH_OMAP24XX
#define DSP_IPI_BASE DSP_IPI_24XX_VIRT #define DSP_IPI_BASE DSP_IPI_24XX_VIRT
#endif
#ifdef CONFIG_ARCH_OMAP34XX
#define DSP_IPI_BASE DSP_IPI_34XX_VIRT
#endif
#define DSP_IPI_REVISION (DSP_IPI_BASE + 0x00) #define DSP_IPI_REVISION (DSP_IPI_BASE + 0x00)
#define DSP_IPI_SYSCONFIG (DSP_IPI_BASE + 0x10) #define DSP_IPI_SYSCONFIG (DSP_IPI_BASE + 0x10)
#define DSP_IPI_INDEX (DSP_IPI_BASE + 0x40) #define DSP_IPI_INDEX (DSP_IPI_BASE + 0x40)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment