2008-03-18 16:02:50 +08:00
|
|
|
#ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
|
|
|
|
#define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* OMAP24XX Power/Reset Management register bits
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Texas Instruments, Inc.
|
|
|
|
* Copyright (C) 2007 Nokia Corporation
|
|
|
|
*
|
|
|
|
* Written by Paul Walmsley
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2012-10-21 15:01:10 +08:00
|
|
|
#include "prm2xxx.h"
|
2008-03-18 16:02:50 +08:00
|
|
|
|
2008-08-19 16:08:42 +08:00
|
|
|
#define OMAP24XX_EN_CORE_SHIFT 0
|
2010-05-21 02:31:04 +08:00
|
|
|
#define OMAP24XX_FORCESTATE_MASK (1 << 18)
|
|
|
|
#define OMAP24XX_AUTOIDLE_MASK (1 << 0)
|
|
|
|
#define OMAP24XX_AUTO_EXTVOLT_MASK (1 << 15)
|
2008-03-18 16:02:50 +08:00
|
|
|
#define OMAP24XX_SETOFF_LEVEL_SHIFT 12
|
2010-05-21 02:31:04 +08:00
|
|
|
#define OMAP24XX_MEMRETCTRL_MASK (1 << 8)
|
2008-03-18 16:02:50 +08:00
|
|
|
#define OMAP24XX_SETRET_LEVEL_SHIFT 6
|
|
|
|
#define OMAP24XX_VOLT_LEVEL_SHIFT 0
|
|
|
|
#define OMAP2420_CLKOUT2_EN_SHIFT 15
|
|
|
|
#define OMAP2420_CLKOUT2_DIV_SHIFT 11
|
2012-11-11 12:22:28 +08:00
|
|
|
#define OMAP2420_CLKOUT2_DIV_WIDTH 3
|
2008-03-18 16:02:50 +08:00
|
|
|
#define OMAP2420_CLKOUT2_SOURCE_MASK (0x3 << 8)
|
|
|
|
#define OMAP24XX_CLKOUT_EN_SHIFT 7
|
|
|
|
#define OMAP24XX_CLKOUT_DIV_SHIFT 3
|
2012-11-11 12:22:28 +08:00
|
|
|
#define OMAP24XX_CLKOUT_DIV_WIDTH 3
|
2008-03-18 16:02:50 +08:00
|
|
|
#define OMAP24XX_CLKOUT_SOURCE_MASK (0x3 << 0)
|
|
|
|
#define OMAP24XX_EMULATION_EN_SHIFT 0
|
2008-08-19 16:08:42 +08:00
|
|
|
#define OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT 5
|
|
|
|
#define OMAP24XX_PM_WKDEP_MPU_EN_DSP_SHIFT 2
|
2012-10-21 15:01:13 +08:00
|
|
|
#define OMAP24XX_EXTWMPU_RST_SHIFT 6
|
|
|
|
#define OMAP24XX_SECU_WD_RST_SHIFT 5
|
|
|
|
#define OMAP24XX_MPU_WD_RST_SHIFT 4
|
|
|
|
#define OMAP24XX_SECU_VIOL_RST_SHIFT 3
|
2008-03-18 16:02:50 +08:00
|
|
|
#endif
|