blob: 1bf3ea825944b64ebc246f2132c7efde4227bc94 [file] [log] [blame]
#include <platform/mt_reg_base.h>
#ifndef __EMI_HW_H__
#define __EMI_HW_H__
#define EMI_BASE (IO_PHYS + 0x219000)
#define CHN0_EMI_BASE (IO_PHYS + 0x22D000)
#define EMI_MPU_BASE (IO_PHYS + 0x226000)
#define EMI_CONA ((volatile unsigned int *)(EMI_BASE+0x000))
#define EMI_CONB ((volatile unsigned int *)(EMI_BASE+0x008))
#define EMI_CONC ((volatile unsigned int *)(EMI_BASE+0x010))
#define EMI_COND ((volatile unsigned int *)(EMI_BASE+0x018))
#define EMI_CONE ((volatile unsigned int *)(EMI_BASE+0x020))
#define EMI_CONF ((volatile unsigned int *)(EMI_BASE+0x028))
#define EMI_CONG ((volatile unsigned int *)(EMI_BASE+0x030))
#define EMI_CONH ((volatile unsigned int *)(EMI_BASE+0x038))
#define EMI_CONH_2ND ((volatile unsigned int *)(EMI_BASE+0x03C))
#define EMI_CONI ((volatile unsigned int *)(EMI_BASE+0x040))
#define EMI_CONJ ((volatile unsigned int *)(EMI_BASE+0x048))
#define EMI_CONM ((volatile unsigned int *)(EMI_BASE+0x060))
#define EMI_CONN ((volatile unsigned int *)(EMI_BASE+0x068))
#define EMI_CONO ((volatile unsigned int *)(EMI_BASE+0x070))
#define EMI_MDCT ((volatile unsigned int *)(EMI_BASE+0x078))
#define EMI_MDCT_2ND ((volatile unsigned int *)(EMI_BASE+0x07C))
#define EMI_IOCL ((volatile unsigned int *)(EMI_BASE+0x0D0))
#define EMI_IOCL_2ND ((volatile unsigned int *)(EMI_BASE+0x0D4))
#define EMI_IOCM ((volatile unsigned int *)(EMI_BASE+0x0D8))
#define EMI_IOCM_2ND ((volatile unsigned int *)(EMI_BASE+0x0DC))
#define EMI_TESTB ((volatile unsigned int *)(EMI_BASE+0x0E8))
#define EMI_TESTC ((volatile unsigned int *)(EMI_BASE+0x0F0))
#define EMI_TESTD ((volatile unsigned int *)(EMI_BASE+0x0F8))
#define EMI_ARBA ((volatile unsigned int *)(EMI_BASE+0x100))
#define EMI_ARBC ((volatile unsigned int *)(EMI_BASE+0x110))
#define EMI_ARBD ((volatile unsigned int *)(EMI_BASE+0x118))
#define EMI_ARBE ((volatile unsigned int *)(EMI_BASE+0x120))
#define EMI_ARBF ((volatile unsigned int *)(EMI_BASE+0x128))
#define EMI_ARBG ((volatile unsigned int *)(EMI_BASE+0x130))
#define EMI_ARBH ((volatile unsigned int *)(EMI_BASE+0x138))
#define EMI_ARBI ((volatile unsigned int *)(EMI_BASE+0x140))
#define EMI_ARBI_2ND ((volatile unsigned int *)(EMI_BASE+0x144))
#define EMI_ARBK ((volatile unsigned int *)(EMI_BASE+0x150))
#define EMI_ARBK_2ND ((volatile unsigned int *)(EMI_BASE+0x154))
#define EMI_SLCT ((volatile unsigned int *)(EMI_BASE+0x158))
#define EMI_MPUD0_ST ((volatile unsigned int *)(EMI_BASE+0x160))
#define EMI_MPUD1_ST ((volatile unsigned int *)(EMI_BASE+0x164))
#define EMI_MPUD2_ST ((volatile unsigned int *)(EMI_BASE+0x168))
#define EMI_MPUD3_ST ((volatile unsigned int *)(EMI_BASE+0x16C))
#define EMI_MPUD4_ST ((volatile unsigned int *)(EMI_BASE+0x170))
#define EMI_MPUD5_ST ((volatile unsigned int *)(EMI_BASE+0x174))
#define EMI_MPUD6_ST ((volatile unsigned int *)(EMI_BASE+0x178))
#define EMI_MPUD7_ST ((volatile unsigned int *)(EMI_BASE+0x17C))
#define EMI_MPUD8_ST ((volatile unsigned int *)(EMI_BASE+0x180))
#define EMI_MPUD9_ST ((volatile unsigned int *)(EMI_BASE+0x184))
#define EMI_MPUD10_ST ((volatile unsigned int *)(EMI_BASE+0x188))
#define EMI_MPUD11_ST ((volatile unsigned int *)(EMI_BASE+0x18C))
#define EMI_MPUD12_ST ((volatile unsigned int *)(EMI_BASE+0x190))
#define EMI_MPUD13_ST ((volatile unsigned int *)(EMI_BASE+0x194))
#define EMI_MPUD14_ST ((volatile unsigned int *)(EMI_BASE+0x198))
#define EMI_MPUD15_ST ((volatile unsigned int *)(EMI_BASE+0x19C))
#define EMI_MPUD16_ST ((volatile unsigned int *)(EMI_BASE+0x1A0))
#define EMI_MPUD17_ST ((volatile unsigned int *)(EMI_BASE+0x1A4))
#define EMI_MPUD18_ST ((volatile unsigned int *)(EMI_BASE+0x1A8))
#define EMI_MPUD19_ST ((volatile unsigned int *)(EMI_BASE+0x1AC))
#define EMI_MPUD20_ST ((volatile unsigned int *)(EMI_BASE+0x1B0))
#define EMI_MPUD21_ST ((volatile unsigned int *)(EMI_BASE+0x1B4))
#define EMI_MPUD22_ST ((volatile unsigned int *)(EMI_BASE+0x1B8))
#define EMI_MPUD23_ST ((volatile unsigned int *)(EMI_BASE+0x1BC))
#define EMI_MPUD24_ST ((volatile unsigned int *)(EMI_BASE+0x1C0))
#define EMI_MPUD25_ST ((volatile unsigned int *)(EMI_BASE+0x1C4))
#define EMI_MPUD26_ST ((volatile unsigned int *)(EMI_BASE+0x1C8))
#define EMI_MPUD27_ST ((volatile unsigned int *)(EMI_BASE+0x1CC))
#define EMI_MPUD28_ST ((volatile unsigned int *)(EMI_BASE+0x1D0))
#define EMI_MPUD29_ST ((volatile unsigned int *)(EMI_BASE+0x1D4))
#define EMI_MPUD30_ST ((volatile unsigned int *)(EMI_BASE+0x1D8))
#define EMI_MPUD31_ST ((volatile unsigned int *)(EMI_BASE+0x1DC))
#define EMI_MPUS ((volatile unsigned int *)(EMI_BASE+0x1F0))
#define EMI_MPUT ((volatile unsigned int *)(EMI_BASE+0x1F8))
#define EMI_MPUT_2ND ((volatile unsigned int *)(EMI_BASE+0x1FC))
#define EMI_D0_ST2 ((volatile unsigned int *)(EMI_BASE+0x200))
#define EMI_D1_ST2 ((volatile unsigned int *)(EMI_BASE+0x204))
#define EMI_D2_ST2 ((volatile unsigned int *)(EMI_BASE+0x208))
#define EMI_D3_ST2 ((volatile unsigned int *)(EMI_BASE+0x20C))
#define EMI_D4_ST2 ((volatile unsigned int *)(EMI_BASE+0x210))
#define EMI_D5_ST2 ((volatile unsigned int *)(EMI_BASE+0x214))
#define EMI_D6_ST2 ((volatile unsigned int *)(EMI_BASE+0x218))
#define EMI_D7_ST2 ((volatile unsigned int *)(EMI_BASE+0x21C))
#define EMI_D8_ST2 ((volatile unsigned int *)(EMI_BASE+0x220))
#define EMI_D9_ST2 ((volatile unsigned int *)(EMI_BASE+0x224))
#define EMI_D10_ST2 ((volatile unsigned int *)(EMI_BASE+0x228))
#define EMI_D11_ST2 ((volatile unsigned int *)(EMI_BASE+0x22C))
#define EMI_D12_ST2 ((volatile unsigned int *)(EMI_BASE+0x230))
#define EMI_D13_ST2 ((volatile unsigned int *)(EMI_BASE+0x234))
#define EMI_D14_ST2 ((volatile unsigned int *)(EMI_BASE+0x238))
#define EMI_D15_ST2 ((volatile unsigned int *)(EMI_BASE+0x23C))
#define EMI_D16_ST2 ((volatile unsigned int *)(EMI_BASE+0x240))
#define EMI_D17_ST2 ((volatile unsigned int *)(EMI_BASE+0x244))
#define EMI_D18_ST2 ((volatile unsigned int *)(EMI_BASE+0x248))
#define EMI_D19_ST2 ((volatile unsigned int *)(EMI_BASE+0x24C))
#define EMI_D20_ST2 ((volatile unsigned int *)(EMI_BASE+0x250))
#define EMI_D21_ST2 ((volatile unsigned int *)(EMI_BASE+0x254))
#define EMI_D22_ST2 ((volatile unsigned int *)(EMI_BASE+0x258))
#define EMI_D23_ST2 ((volatile unsigned int *)(EMI_BASE+0x25C))
#define EMI_D24_ST2 ((volatile unsigned int *)(EMI_BASE+0x260))
#define EMI_D25_ST2 ((volatile unsigned int *)(EMI_BASE+0x264))
#define EMI_D26_ST2 ((volatile unsigned int *)(EMI_BASE+0x268))
#define EMI_D27_ST2 ((volatile unsigned int *)(EMI_BASE+0x26C))
#define EMI_D28_ST2 ((volatile unsigned int *)(EMI_BASE+0x270))
#define EMI_D29_ST2 ((volatile unsigned int *)(EMI_BASE+0x274))
#define EMI_D30_ST2 ((volatile unsigned int *)(EMI_BASE+0x278))
#define EMI_D31_ST2 ((volatile unsigned int *)(EMI_BASE+0x27C))
#define EMI_BMEN ((volatile unsigned int *)(EMI_BASE+0x400))
#define EMI_BSTP ((volatile unsigned int *)(EMI_BASE+0x404))
#define EMI_BCNT ((volatile unsigned int *)(EMI_BASE+0x408))
#define EMI_TACT ((volatile unsigned int *)(EMI_BASE+0x410))
#define EMI_TSCT ((volatile unsigned int *)(EMI_BASE+0x418))
#define EMI_WACT ((volatile unsigned int *)(EMI_BASE+0x420))
#define EMI_WSCT ((volatile unsigned int *)(EMI_BASE+0x428))
#define EMI_BACT ((volatile unsigned int *)(EMI_BASE+0x430))
#define EMI_BSCT ((volatile unsigned int *)(EMI_BASE+0x438))
#define EMI_MSEL ((volatile unsigned int *)(EMI_BASE+0x440))
#define EMI_TSCT2 ((volatile unsigned int *)(EMI_BASE+0x448))
#define EMI_TSCT3 ((volatile unsigned int *)(EMI_BASE+0x450))
#define EMI_WSCT2 ((volatile unsigned int *)(EMI_BASE+0x458))
#define EMI_WSCT3 ((volatile unsigned int *)(EMI_BASE+0x460))
#define EMI_WSCT4 ((volatile unsigned int *)(EMI_BASE+0x464))
#define EMI_MSEL2 ((volatile unsigned int *)(EMI_BASE+0x468))
#define EMI_MSEL3 ((volatile unsigned int *)(EMI_BASE+0x470))
#define EMI_MSEL4 ((volatile unsigned int *)(EMI_BASE+0x478))
#define EMI_MSEL5 ((volatile unsigned int *)(EMI_BASE+0x480))
#define EMI_MSEL6 ((volatile unsigned int *)(EMI_BASE+0x488))
#define EMI_MSEL7 ((volatile unsigned int *)(EMI_BASE+0x490))
#define EMI_MSEL8 ((volatile unsigned int *)(EMI_BASE+0x498))
#define EMI_MSEL9 ((volatile unsigned int *)(EMI_BASE+0x4A0))
#define EMI_MSEL10 ((volatile unsigned int *)(EMI_BASE+0x4A8))
#define EMI_BMID0 ((volatile unsigned int *)(EMI_BASE+0x4B0))
#define EMI_BMID1 ((volatile unsigned int *)(EMI_BASE+0x4B4))
#define EMI_BMID2 ((volatile unsigned int *)(EMI_BASE+0x4B8))
#define EMI_BMID3 ((volatile unsigned int *)(EMI_BASE+0x4BC))
#define EMI_BMID4 ((volatile unsigned int *)(EMI_BASE+0x4C0))
#define EMI_BMID5 ((volatile unsigned int *)(EMI_BASE+0x4C4))
#define EMI_BMID6 ((volatile unsigned int *)(EMI_BASE+0x4C8))
#define EMI_BMID7 ((volatile unsigned int *)(EMI_BASE+0x4CC))
#define EMI_BMID8 ((volatile unsigned int *)(EMI_BASE+0x4D0))
#define EMI_BMID9 ((volatile unsigned int *)(EMI_BASE+0x4D4))
#define EMI_BMID10 ((volatile unsigned int *)(EMI_BASE+0x4D8))
#define EMI_BMEN1 ((volatile unsigned int *)(EMI_BASE+0x4E0))
#define EMI_BMEN2 ((volatile unsigned int *)(EMI_BASE+0x4E8))
#define EMI_BMRW0 ((volatile unsigned int *)(EMI_BASE+0x4F8))
#define EMI_BMRW1 ((volatile unsigned int *)(EMI_BASE+0x4FC))
#define EMI_TTYPE1 ((volatile unsigned int *)(EMI_BASE+0x500))
#define EMI_TTYPE2 ((volatile unsigned int *)(EMI_BASE+0x508))
#define EMI_TTYPE3 ((volatile unsigned int *)(EMI_BASE+0x510))
#define EMI_TTYPE4 ((volatile unsigned int *)(EMI_BASE+0x518))
#define EMI_TTYPE5 ((volatile unsigned int *)(EMI_BASE+0x520))
#define EMI_TTYPE6 ((volatile unsigned int *)(EMI_BASE+0x528))
#define EMI_TTYPE7 ((volatile unsigned int *)(EMI_BASE+0x530))
#define EMI_TTYPE8 ((volatile unsigned int *)(EMI_BASE+0x538))
#define EMI_TTYPE9 ((volatile unsigned int *)(EMI_BASE+0x540))
#define EMI_TTYPE10 ((volatile unsigned int *)(EMI_BASE+0x548))
#define EMI_TTYPE11 ((volatile unsigned int *)(EMI_BASE+0x550))
#define EMI_TTYPE12 ((volatile unsigned int *)(EMI_BASE+0x558))
#define EMI_TTYPE13 ((volatile unsigned int *)(EMI_BASE+0x560))
#define EMI_TTYPE14 ((volatile unsigned int *)(EMI_BASE+0x568))
#define EMI_TTYPE15 ((volatile unsigned int *)(EMI_BASE+0x570))
#define EMI_TTYPE16 ((volatile unsigned int *)(EMI_BASE+0x578))
#define EMI_TTYPE17 ((volatile unsigned int *)(EMI_BASE+0x580))
#define EMI_TTYPE18 ((volatile unsigned int *)(EMI_BASE+0x588))
#define EMI_TTYPE19 ((volatile unsigned int *)(EMI_BASE+0x590))
#define EMI_TTYPE20 ((volatile unsigned int *)(EMI_BASE+0x598))
#define EMI_TTYPE21 ((volatile unsigned int *)(EMI_BASE+0x5A0))
#define EMI_BWCT0 ((volatile unsigned int *)(EMI_BASE+0x5B0))
#define EMI_BWCT1 ((volatile unsigned int *)(EMI_BASE+0x5B4))
#define EMI_BWCT2 ((volatile unsigned int *)(EMI_BASE+0x5B8))
#define EMI_BWCT3 ((volatile unsigned int *)(EMI_BASE+0x5BC))
#define EMI_BWCT4 ((volatile unsigned int *)(EMI_BASE+0x5C0))
#define EMI_BWST0 ((volatile unsigned int *)(EMI_BASE+0x5C4))
#define EMI_BWST1 ((volatile unsigned int *)(EMI_BASE+0x5C8))
#define EMI_EX_CON ((volatile unsigned int *)(EMI_BASE+0x5D0))
#define EMI_EX_ST0 ((volatile unsigned int *)(EMI_BASE+0x5D4))
#define EMI_EX_ST1 ((volatile unsigned int *)(EMI_BASE+0x5D8))
#define EMI_EX_ST2 ((volatile unsigned int *)(EMI_BASE+0x5DC))
#define EMI_WP_ADR ((volatile unsigned int *)(EMI_BASE+0x5E0))
#define EMI_WP_ADR_2ND ((volatile unsigned int *)(EMI_BASE+0x5E4))
#define EMI_WP_CTRL ((volatile unsigned int *)(EMI_BASE+0x5E8))
#define EMI_CHKER ((volatile unsigned int *)(EMI_BASE+0x5F0))
#define EMI_CHKER_TYPE ((volatile unsigned int *)(EMI_BASE+0x5F4))
#define EMI_CHKER_ADR ((volatile unsigned int *)(EMI_BASE+0x5F8))
#define EMI_CHKER_ADR_2ND ((volatile unsigned int *)(EMI_BASE+0x5FC))
#define EMI_BWCT0_2ND ((volatile unsigned int *)(EMI_BASE+0x6A0))
#define EMI_LTCT0_2ND ((volatile unsigned int *)(EMI_BASE+0x750))
#define EMI_LTCT1_2ND ((volatile unsigned int *)(EMI_BASE+0x754))
#define EMI_LTCT2_2ND ((volatile unsigned int *)(EMI_BASE+0x758))
#define EMI_LTCT3_2ND ((volatile unsigned int *)(EMI_BASE+0x75C))
#define EMI_BWCT0_3RD ((volatile unsigned int *)(EMI_BASE+0x770))
#define EMI_BWCT0_4TH ((volatile unsigned int *)(EMI_BASE+0x780))
#define EMI_BWCT0_5TH ((volatile unsigned int *)(EMI_BASE+0x7B0))
#define EMI_SLVA ((volatile unsigned int *)(EMI_BASE+0x800))
#define EMI_MPU_CTRL ((volatile unsigned int *)(EMI_MPU_BASE+0x000))
#define EMI_MPU_DBG ((volatile unsigned int *)(EMI_MPU_BASE+0x004))
#define EMI_MPU_SA0 (EMI_MPU_BASE+0x100)
#define EMI_MPU_EA0 (EMI_MPU_BASE+0x200)
#define EMI_MPU_SA(region) ((volatile unsigned int *)(EMI_MPU_SA0+(region*4)))
#define EMI_MPU_EA(region) ((volatile unsigned int *)(EMI_MPU_EA0+(region*4)))
#define EMI_MPU_APC0 (EMI_MPU_BASE+0x300)
#define EMI_MPU_APC(region, dgroup) ((volatile unsigned int *)(EMI_MPU_APC0+(region*4)+((dgroup)*0x100)))
#define EMI_MPU_CTRL_D0 (EMI_MPU_BASE+0x800)
#define EMI_MPU_CTRL_D(domain) ((volatile unsigned int *)(EMI_MPU_CTRL_D0+(domain*4)))
#define EMI_RG_MASK_D0 (EMI_MPU_BASE+0x900)
#define EMI_RG_MASK_D(domain) ((volatile unsigned int *)(EMI_RG_MASK_D0+(domain*4)))
#endif // __EMI_HW_H__