1 /* linux/arch/arm/mach-s5pv310/include/mach/regs-mem.h
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * S5PV310 - SROMC register definitions
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.
13 #ifndef __ASM_ARCH_REGS_MEM_H
14 #define __ASM_ARCH_REGS_MEM_H __FILE__
18 #define S5P_MEMREG(x) (S5P_VA_SROMC + (x))
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)
26 #define S5P_SROM_BYTE_EN(x) (1 << (((x) * 4) + 3))
27 #define S5P_SROM_BYTE_DIS(x) (0 << (((x) * 4) + 3))
29 #define S5P_SROM_WAIT_EN(x) (1 << (((x) * 4) + 2))
30 #define S5P_SROM_WAIT_DIS(x) (0 << (((x) * 4) + 2))
32 #define S5P_SROM_BYTEADDR(x) (1 << (((x) * 4) + 1))
33 #define S5P_SROM_HALFADDR(x) (0 << (((x) * 4) + 1))
35 #define S5P_SROM_16WIDTH(x) (1 << ((x) * 4))
36 #define S5P_SROM_8WIDTH(x) (0 << ((x) * 4))
38 #define S5P_DMC0_MEMCON_OFFSET (0x04)
40 #define S5P_DMC0_MEMTYPE_SHIFT (8)
41 #define S5P_DMC0_MEMTYPE_MASK (0xf)
43 #endif /* __ASM_ARCH_REGS_MEM_H */