From: Paul Walmsley Date: Thu, 3 May 2007 22:53:08 +0000 (-0600) Subject: omap2: add OMAP3430 base defines X-Git-Tag: v2.6.22-omap1~78 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=19b2bf42ef9ccf264b7bba570201609709493ccc;p=linux-2.6-omap-h63xx.git omap2: add OMAP3430 base defines Add symbolic constants for OMAP3430 base addresses; include that file in hardware.h. Remove #error in omap24xx.h on unknown architecture type. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/include/asm-arm/arch-omap/hardware.h b/include/asm-arm/arch-omap/hardware.h index da572092e25..a903d14989d 100644 --- a/include/asm-arm/arch-omap/hardware.h +++ b/include/asm-arm/arch-omap/hardware.h @@ -285,6 +285,7 @@ #include "omap1510.h" #include "omap24xx.h" #include "omap16xx.h" +#include "omap34xx.h" #ifndef __ASSEMBLER__ diff --git a/include/asm-arm/arch-omap/omap24xx.h b/include/asm-arm/arch-omap/omap24xx.h index a1cdf30561e..19b93efae93 100644 --- a/include/asm-arm/arch-omap/omap24xx.h +++ b/include/asm-arm/arch-omap/omap24xx.h @@ -51,7 +51,6 @@ /* Mailbox */ #define OMAP24XX_MAILBOX_BASE (L4_24XX_BASE + 0x94000) - #if defined(CONFIG_ARCH_OMAP2420) #define OMAP2_32KSYNCT_BASE OMAP2420_32KSYNCT_BASE @@ -76,8 +75,6 @@ #define OMAP2_VA_IC_BASE IO_ADDRESS(OMAP24XX_IC_BASE) #define OMAP2_CTRL_BASE OMAP243X_CTRL_BASE -#else -#error "Unknown architecture" #endif #endif /* __ASM_ARCH_OMAP24XX_H */ diff --git a/include/asm-arm/arch-omap/omap34xx.h b/include/asm-arm/arch-omap/omap34xx.h new file mode 100644 index 00000000000..8a55f9533d6 --- /dev/null +++ b/include/asm-arm/arch-omap/omap34xx.h @@ -0,0 +1,44 @@ +#ifndef __ASM_ARCH_OMAP34XX_H +#define __ASM_ARCH_OMAP34XX_H + +/* + * Please place only base defines here and put the rest in device + * specific headers. + */ + +#define OMAP3430_32KSYNCT_BASE 0x48320000 +#define OMAP3430_CM_BASE 0x48004800 +#define OMAP3430_PRM_BASE 0x48306800 +#define OMAP343X_SMS_BASE 0x6C000000 +#define OMAP343X_SDRC_BASE 0x6D000000 +#define OMAP34XX_GPMC_BASE 0x6E000000 +#define OMAP3430_SCM_BASE 0x48002000 +#define OMAP3430_CTRL_BASE OMAP3430_SCM_BASE + +#define OMAP34XX_IC_BASE 0x48200000 +#define OMAP34XX_IVA_INTC_BASE 0x40000000 +#define IRQ_SIR_IRQ 0x0040 + + +#if defined(CONFIG_ARCH_OMAP3430) + +#define OMAP2_32KSYNCT_BASE OMAP3430_32KSYNCT_BASE +#define OMAP2_CM_BASE OMAP3430_CM_BASE +#define OMAP2_PRM_BASE OMAP3430_PRM_BASE +#define OMAP2_SDRC_BASE OMAP343X_SDRC_BASE +#define OMAP2_SMS_BASE OMAP343X_SMS_BASE +#define OMAP2_L4_BASE L4_34XX_BASE +#define OMAP2_VA_IC_BASE IO_ADDRESS(OMAP34XX_IC_BASE) +#define OMAP2_CTRL_BASE OMAP3430_CTRL_BASE + +#endif + + +#define OMAP34XX_DSP_BASE 0x58000000 +#define OMAP34XX_DSP_MEM_BASE (OMAP34XX_DSP_BASE + 0x0) +#define OMAP34XX_DSP_IPI_BASE (OMAP34XX_DSP_BASE + 0x1000000) +#define OMAP34XX_DSP_MMU_BASE (OMAP34XX_DSP_BASE + 0x2000000) + + +#endif /* __ASM_ARCH_OMAP34XX_H */ +