1 /*
2 * EMIF register definitions for TI81xx and AM33xx
3 *
4 * Copyright (C) 2011 Texas Instruments, Inc. - http://www.ti.com/
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
9 *
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
16 #ifndef __EMIF_H
17 #define __EMIF_H
19 #define EMIF_MOD_ID_REV (0x0)
20 #define EMIF4_0_SDRAM_STATUS (0x04)
21 #define EMIF4_0_SDRAM_CONFIG (0x08)
22 #define EMIF4_0_SDRAM_CONFIG2 (0x0C)
23 #define EMIF4_0_SDRAM_REF_CTRL (0x10)
24 #define EMIF4_0_SDRAM_REF_CTRL_SHADOW (0x14)
25 #define EMIF4_0_SDRAM_TIM_1 (0x18)
26 #define EMIF4_0_SDRAM_TIM_1_SHADOW (0x1C)
27 #define EMIF4_0_SDRAM_TIM_2 (0x20)
28 #define EMIF4_0_SDRAM_TIM_2_SHADOW (0x24)
29 #define EMIF4_0_SDRAM_TIM_3 (0x28)
30 #define EMIF4_0_SDRAM_TIM_3_SHADOW (0x2C)
31 #define EMIF4_0_SDRAM_MGMT_CTRL (0x38)
32 #define EMIF4_0_SDRAM_MGMT_CTRL_SHD (0x3C)
33 #define EMIF4_0_DDR_PHY_CTRL_1 (0xE4)
34 #define EMIF4_0_DDR_PHY_CTRL_1_SHADOW (0xE8)
35 #define EMIF4_0_DDR_PHY_CTRL_2 (0xEC)
36 #define EMIF4_0_IODFT_TLGC (0x60)
38 #define SELF_REFRESH_ENABLE(m) (0x2 << 8 | (m << 4))
39 #define SELF_REFRESH_DISABLE (0x0 << 8)
41 #endif /* __EMIF_H */