1 #ifndef __ASM_ARCH_CONTROL_H
2 #define __ASM_ARCH_CONTROL_H
5 * include/asm-arm/arch-omap/control.h
7 * OMAP2/3 System Control Module definitions
9 * Copyright (C) 2007 Texas Instruments, Inc.
10 * Copyright (C) 2007 Nokia Corporation
12 * Written by Paul Walmsley
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation.
19 #include <asm/arch/io.h>
21 #define OMAP242X_CTRL_REGADDR(reg) (void __iomem *)IO_ADDRESS(OMAP242X_CTRL_BASE + reg)
22 #define OMAP243X_CTRL_REGADDR(reg) (void __iomem *)IO_ADDRESS(OMAP243X_CTRL_BASE + reg)
23 #define OMAP343X_CTRL_REGADDR(reg) (void __iomem *)IO_ADDRESS(OMAP343X_CTRL_BASE + reg)
25 /* Control submodule offsets */
27 #define CONTROL_INTERFACE 0x000
28 #define CONTROL_PADCONFS 0x030
29 #define CONTROL_GENERAL 0x270
30 #define CONTROL_MEM_WKUP 0x600
31 #define CONTROL_PADCONFS_WKUP 0xa00
32 #define CONTROL_GENERAL_WKUP 0xa60
34 /* Control register offsets - read/write with ctrl_{read,write}_reg() */
36 #define CONTROL_SYSCONFIG (CONTROL_INTERFACE + 0x10)
38 #define CONTROL_DEVCONF0 (CONTROL_GENERAL + 0x04)
39 #define CONTROL_DEVCONF1 (CONTROL_GENERAL + 0x68) /* > 242x */
40 #define CONTROL_STATUS (CONTROL_GENERAL + 0x80)
44 * Control module register bit defines - these should eventually go into
45 * their own regbits file
47 /* CONTROL_DEVCONF0 bits */
48 #define OMAP2_MCBSP2_CLKS_MASK (1 << 6)
49 #define OMAP2_MCBSP1_CLKS_MASK (1 << 2)
51 /* CONTROL_DEVCONF1 bits */
52 #define OMAP2_MCBSP5_CLKS_MASK (1 << 4)
53 #define OMAP2_MCBSP4_CLKS_MASK (1 << 2)
54 #define OMAP2_MCBSP3_CLKS_MASK (1 << 0)
57 #endif /* __ASM_ARCH_CONTROL_H */