ARM: S5P: Move the SROM register definitions to plat-s5p
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / plat-s5p / include / plat / regs-srom.h
blob0fdac48a59853b4872590b81eeaade36b20cb601
1 /* linux/arch/arm/plat-s5p/include/plat/regs-srom.h
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * S5P 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_PLAT_S5P_REGS_SROM_H
14 #define __ASM_PLAT_S5P_REGS_SROM_H __FILE__
16 #include <mach/map.h>
18 #define S5P_SROMREG(x) (S5P_VA_SROMC + (x))
20 #define S5P_SROM_BW S5P_SROMREG(0x0)
21 #define S5P_SROM_BC0 S5P_SROMREG(0x4)
22 #define S5P_SROM_BC1 S5P_SROMREG(0x8)
23 #define S5P_SROM_BC2 S5P_SROMREG(0xc)
24 #define S5P_SROM_BC3 S5P_SROMREG(0x10)
26 /* one register BW holds 4 x 4-bit packed settings for NCS0 - NCS3 */
28 #define S5P_SROM_BW__DATAWIDTH__SHIFT 0
29 #define S5P_SROM_BW__ADDRMODE__SHIFT 1
30 #define S5P_SROM_BW__WAITENABLE__SHIFT 2
31 #define S5P_SROM_BW__BYTEENABLE__SHIFT 3
33 #define S5P_SROM_BW__CS_MASK 0xf
35 #define S5P_SROM_BW__NCS0__SHIFT 0
36 #define S5P_SROM_BW__NCS1__SHIFT 4
37 #define S5P_SROM_BW__NCS2__SHIFT 8
38 #define S5P_SROM_BW__NCS3__SHIFT 12
40 /* applies to same to BCS0 - BCS3 */
42 #define S5P_SROM_BCX__PMC__SHIFT 0
43 #define S5P_SROM_BCX__TACP__SHIFT 4
44 #define S5P_SROM_BCX__TCAH__SHIFT 8
45 #define S5P_SROM_BCX__TCOH__SHIFT 12
46 #define S5P_SROM_BCX__TACC__SHIFT 16
47 #define S5P_SROM_BCX__TCOS__SHIFT 24
48 #define S5P_SROM_BCX__TACS__SHIFT 28
50 #endif /* __ASM_PLAT_S5P_REGS_SROM_H */