blob: 37fc905c96360d8c9877f9cf8e4e20f7f6b008ba [file] [log] [blame]
Paul Walmsley69d88a02008-03-18 10:02:50 +02001#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 Walmsley139563a2012-10-21 01:01:10 -060017#include "prm2xxx.h"
Paul Walmsley69d88a02008-03-18 10:02:50 +020018
Paul Walmsleyfe6a58f2008-08-19 11:08:42 +030019#define OMAP24XX_EN_CORE_SHIFT 0
Paul Walmsleyf38ca102010-05-20 12:31:04 -060020#define OMAP24XX_FORCESTATE_MASK (1 << 18)
Paul Walmsleyf38ca102010-05-20 12:31:04 -060021#define OMAP24XX_AUTOIDLE_MASK (1 << 0)
Paul Walmsleyf38ca102010-05-20 12:31:04 -060022#define OMAP24XX_AUTO_EXTVOLT_MASK (1 << 15)
Paul Walmsley69d88a02008-03-18 10:02:50 +020023#define OMAP24XX_SETOFF_LEVEL_SHIFT 12
Paul Walmsleyf38ca102010-05-20 12:31:04 -060024#define OMAP24XX_MEMRETCTRL_MASK (1 << 8)
Paul Walmsley69d88a02008-03-18 10:02:50 +020025#define OMAP24XX_SETRET_LEVEL_SHIFT 6
Paul Walmsley69d88a02008-03-18 10:02:50 +020026#define OMAP24XX_VOLT_LEVEL_SHIFT 0
Paul Walmsley69d88a02008-03-18 10:02:50 +020027#define OMAP2420_CLKOUT2_EN_SHIFT 15
Paul Walmsley69d88a02008-03-18 10:02:50 +020028#define OMAP2420_CLKOUT2_DIV_SHIFT 11
Rajendra Nayak6ab9f692012-11-10 21:22:28 -070029#define OMAP2420_CLKOUT2_DIV_WIDTH 3
Paul Walmsley69d88a02008-03-18 10:02:50 +020030#define OMAP2420_CLKOUT2_SOURCE_MASK (0x3 << 8)
31#define OMAP24XX_CLKOUT_EN_SHIFT 7
Paul Walmsley69d88a02008-03-18 10:02:50 +020032#define OMAP24XX_CLKOUT_DIV_SHIFT 3
Rajendra Nayak6ab9f692012-11-10 21:22:28 -070033#define OMAP24XX_CLKOUT_DIV_WIDTH 3
Paul Walmsley69d88a02008-03-18 10:02:50 +020034#define OMAP24XX_CLKOUT_SOURCE_MASK (0x3 << 0)
Paul Walmsley69d88a02008-03-18 10:02:50 +020035#define OMAP24XX_EMULATION_EN_SHIFT 0
Paul Walmsleyfe6a58f2008-08-19 11:08:42 +030036#define OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT 5
Paul Walmsleyfe6a58f2008-08-19 11:08:42 +030037#define OMAP24XX_PM_WKDEP_MPU_EN_DSP_SHIFT 2
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060038#define OMAP24XX_EXTWMPU_RST_SHIFT 6
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060039#define OMAP24XX_SECU_WD_RST_SHIFT 5
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060040#define OMAP24XX_MPU_WD_RST_SHIFT 4
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060041#define OMAP24XX_SECU_VIOL_RST_SHIFT 3
Paul Walmsley69d88a02008-03-18 10:02:50 +020042#endif