upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / mach-s5pv310 / include / mach / regs-mem.h
1 /* linux/arch/arm/mach-s5pv310/include/mach/regs-mem.h
2  *
3  * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4  *              http://www.samsung.com
5  *
6  * S5PV310 - SROMC register definitions
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12
13 #ifndef __ASM_ARCH_REGS_MEM_H
14 #define __ASM_ARCH_REGS_MEM_H __FILE__
15
16 #include <mach/map.h>
17
18 #define S5P_MEMREG(x)           (S5P_VA_SROMC + (x))
19
20 #define S5P_SROM_BW             S5P_MEMREG(0x00)
21 #define S5P_SROM_BC0            S5P_MEMREG(0x04)
22 #define S5P_SROM_BC1            S5P_MEMREG(0x08)
23 #define S5P_SROM_BC2            S5P_MEMREG(0x0C)
24 #define S5P_SROM_BC3            S5P_MEMREG(0x10)
25
26 #define S5P_SROM_BYTE_EN(x)     (1 << (((x) * 4) + 3))
27 #define S5P_SROM_BYTE_DIS(x)    (0 << (((x) * 4) + 3))
28
29 #define S5P_SROM_WAIT_EN(x)     (1 << (((x) * 4) + 2))
30 #define S5P_SROM_WAIT_DIS(x)    (0 << (((x) * 4) + 2))
31
32 #define S5P_SROM_BYTEADDR(x)    (1 << (((x) * 4) + 1))
33 #define S5P_SROM_HALFADDR(x)    (0 << (((x) * 4) + 1))
34
35 #define S5P_SROM_16WIDTH(x)     (1 << ((x) * 4))
36 #define S5P_SROM_8WIDTH(x)      (0 << ((x) * 4))
37
38 #define S5P_DMC0_MEMCON_OFFSET  (0x04)
39
40 #define S5P_DMC0_MEMTYPE_SHIFT  (8)
41 #define S5P_DMC0_MEMTYPE_MASK   (0xf)
42
43 #endif /* __ASM_ARCH_REGS_MEM_H */