xref: /openbmc/linux/arch/arm/mach-omap2/scrm44xx.h (revision c4a11bf4)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * OMAP44xx SCRM registers and bitfields
4  *
5  * Copyright (C) 2010 Texas Instruments, Inc.
6  *
7  * Benoit Cousson (b-cousson@ti.com)
8  *
9  * This file is automatically generated from the OMAP hardware databases.
10  * We respectfully ask that any modifications to this file be coordinated
11  * with the public linux-omap@vger.kernel.org mailing list and the
12  * authors above to ensure that the autogeneration scripts are kept
13  * up-to-date with the file contents.
14  */
15 
16 #ifndef __ARCH_ARM_MACH_OMAP2_SCRM_44XX_H
17 #define __ARCH_ARM_MACH_OMAP2_SCRM_44XX_H
18 
19 #define OMAP4_SCRM_BASE				0x4a30a000
20 
21 #define OMAP44XX_SCRM_REGADDR(reg)	\
22 		OMAP2_L4_IO_ADDRESS(OMAP4_SCRM_BASE + (reg))
23 
24 /* Registers offset */
25 #define OMAP4_SCRM_CLKSETUPTIME			OMAP44XX_SCRM_REGADDR(0x0100)
26 
27 /* CLKSETUPTIME */
28 #define OMAP4_DOWNTIME_SHIFT			16
29 #define OMAP4_DOWNTIME_MASK			(0x3f << 16)
30 #define OMAP4_SETUPTIME_SHIFT			0
31 #define OMAP4_SETUPTIME_MASK			(0xfff << 0)
32 
33 #endif
34