Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 1 | #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H |
| 2 | #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H |
| 3 | |
| 4 | /* |
| 5 | * OMAP24XX Power/Reset Management register bits |
| 6 | * |
| 7 | * Copyright (C) 2007 Texas Instruments, Inc. |
| 8 | * Copyright (C) 2007 Nokia Corporation |
| 9 | * |
| 10 | * Written by Paul Walmsley |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License version 2 as |
| 14 | * published by the Free Software Foundation. |
| 15 | */ |
| 16 | |
Paul Walmsley | 139563a | 2012-10-21 01:01:10 -0600 | [diff] [blame] | 17 | #include "prm2xxx.h" |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 18 | |
Paul Walmsley | fe6a58f | 2008-08-19 11:08:42 +0300 | [diff] [blame] | 19 | #define OMAP24XX_EN_CORE_SHIFT 0 |
Paul Walmsley | f38ca10 | 2010-05-20 12:31:04 -0600 | [diff] [blame] | 20 | #define OMAP24XX_FORCESTATE_MASK (1 << 18) |
Paul Walmsley | f38ca10 | 2010-05-20 12:31:04 -0600 | [diff] [blame] | 21 | #define OMAP24XX_AUTOIDLE_MASK (1 << 0) |
Paul Walmsley | f38ca10 | 2010-05-20 12:31:04 -0600 | [diff] [blame] | 22 | #define OMAP24XX_AUTO_EXTVOLT_MASK (1 << 15) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 23 | #define OMAP24XX_SETOFF_LEVEL_SHIFT 12 |
Paul Walmsley | f38ca10 | 2010-05-20 12:31:04 -0600 | [diff] [blame] | 24 | #define OMAP24XX_MEMRETCTRL_MASK (1 << 8) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 25 | #define OMAP24XX_SETRET_LEVEL_SHIFT 6 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 26 | #define OMAP24XX_VOLT_LEVEL_SHIFT 0 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 27 | #define OMAP2420_CLKOUT2_EN_SHIFT 15 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 28 | #define OMAP2420_CLKOUT2_DIV_SHIFT 11 |
Rajendra Nayak | 6ab9f69 | 2012-11-10 21:22:28 -0700 | [diff] [blame] | 29 | #define OMAP2420_CLKOUT2_DIV_WIDTH 3 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 30 | #define OMAP2420_CLKOUT2_SOURCE_MASK (0x3 << 8) |
| 31 | #define OMAP24XX_CLKOUT_EN_SHIFT 7 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 32 | #define OMAP24XX_CLKOUT_DIV_SHIFT 3 |
Rajendra Nayak | 6ab9f69 | 2012-11-10 21:22:28 -0700 | [diff] [blame] | 33 | #define OMAP24XX_CLKOUT_DIV_WIDTH 3 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 34 | #define OMAP24XX_CLKOUT_SOURCE_MASK (0x3 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 35 | #define OMAP24XX_EMULATION_EN_SHIFT 0 |
Paul Walmsley | fe6a58f | 2008-08-19 11:08:42 +0300 | [diff] [blame] | 36 | #define OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT 5 |
Paul Walmsley | fe6a58f | 2008-08-19 11:08:42 +0300 | [diff] [blame] | 37 | #define OMAP24XX_PM_WKDEP_MPU_EN_DSP_SHIFT 2 |
Paul Walmsley | 2bb2a5d | 2012-10-21 01:01:13 -0600 | [diff] [blame] | 38 | #define OMAP24XX_EXTWMPU_RST_SHIFT 6 |
Paul Walmsley | 2bb2a5d | 2012-10-21 01:01:13 -0600 | [diff] [blame] | 39 | #define OMAP24XX_SECU_WD_RST_SHIFT 5 |
Paul Walmsley | 2bb2a5d | 2012-10-21 01:01:13 -0600 | [diff] [blame] | 40 | #define OMAP24XX_MPU_WD_RST_SHIFT 4 |
Paul Walmsley | 2bb2a5d | 2012-10-21 01:01:13 -0600 | [diff] [blame] | 41 | #define OMAP24XX_SECU_VIOL_RST_SHIFT 3 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 42 | #endif |