#if defined(CONFIG_ARCH_OMAP1)
#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)
#endif
saram_base = OMAP24XX_SARAM_BASE;
saram_size = OMAP24XX_SARAM_SIZE;
}
+#endif
+#ifdef CONFIG_ARCH_OMAP34XX
+ /* To be Revisited for 3430 */
+ if (cpu_is_omap34xx()) {
+ return -ENODEV;
+ }
#endif
if (dspmem_size == 0) {
printk(KERN_ERR "omapdsp: unsupported omap architecture.\n");
/*
* DSP IPI registers: mapped to 0xe1000000 -- use readX(), writeX()
*/
+#ifdef CONFIG_ARCH_OMAP24XX
#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_SYSCONFIG (DSP_IPI_BASE + 0x10)
#define DSP_IPI_INDEX (DSP_IPI_BASE + 0x40)