blob: ff83801f6439bf7256131cc70f587eed31d50489 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Paul Walmsley69d88a02008-03-18 10:02:50 +02002#ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
3#define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
4
5/*
6 * OMAP24XX Power/Reset Management register bits
7 *
8 * Copyright (C) 2007 Texas Instruments, Inc.
9 * Copyright (C) 2007 Nokia Corporation
10 *
11 * Written by Paul Walmsley
Paul Walmsley69d88a02008-03-18 10:02:50 +020012 */
13
Paul Walmsley139563a2012-10-21 01:01:10 -060014#include "prm2xxx.h"
Paul Walmsley69d88a02008-03-18 10:02:50 +020015
Paul Walmsleyfe6a58f2008-08-19 11:08:42 +030016#define OMAP24XX_EN_CORE_SHIFT 0
Paul Walmsleyf38ca102010-05-20 12:31:04 -060017#define OMAP24XX_FORCESTATE_MASK (1 << 18)
Paul Walmsleyf38ca102010-05-20 12:31:04 -060018#define OMAP24XX_AUTOIDLE_MASK (1 << 0)
Paul Walmsleyf38ca102010-05-20 12:31:04 -060019#define OMAP24XX_AUTO_EXTVOLT_MASK (1 << 15)
Paul Walmsley69d88a02008-03-18 10:02:50 +020020#define OMAP24XX_SETOFF_LEVEL_SHIFT 12
Paul Walmsleyf38ca102010-05-20 12:31:04 -060021#define OMAP24XX_MEMRETCTRL_MASK (1 << 8)
Paul Walmsley69d88a02008-03-18 10:02:50 +020022#define OMAP24XX_SETRET_LEVEL_SHIFT 6
Paul Walmsley69d88a02008-03-18 10:02:50 +020023#define OMAP24XX_VOLT_LEVEL_SHIFT 0
Paul Walmsley69d88a02008-03-18 10:02:50 +020024#define OMAP2420_CLKOUT2_EN_SHIFT 15
Paul Walmsley69d88a02008-03-18 10:02:50 +020025#define OMAP2420_CLKOUT2_DIV_SHIFT 11
Rajendra Nayak6ab9f692012-11-10 21:22:28 -070026#define OMAP2420_CLKOUT2_DIV_WIDTH 3
Paul Walmsley69d88a02008-03-18 10:02:50 +020027#define OMAP2420_CLKOUT2_SOURCE_MASK (0x3 << 8)
28#define OMAP24XX_CLKOUT_EN_SHIFT 7
Paul Walmsley69d88a02008-03-18 10:02:50 +020029#define OMAP24XX_CLKOUT_DIV_SHIFT 3
Rajendra Nayak6ab9f692012-11-10 21:22:28 -070030#define OMAP24XX_CLKOUT_DIV_WIDTH 3
Paul Walmsley69d88a02008-03-18 10:02:50 +020031#define OMAP24XX_CLKOUT_SOURCE_MASK (0x3 << 0)
Paul Walmsley69d88a02008-03-18 10:02:50 +020032#define OMAP24XX_EMULATION_EN_SHIFT 0
Paul Walmsleyfe6a58f2008-08-19 11:08:42 +030033#define OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT 5
Paul Walmsleyfe6a58f2008-08-19 11:08:42 +030034#define OMAP24XX_PM_WKDEP_MPU_EN_DSP_SHIFT 2
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060035#define OMAP24XX_EXTWMPU_RST_SHIFT 6
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060036#define OMAP24XX_SECU_WD_RST_SHIFT 5
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060037#define OMAP24XX_MPU_WD_RST_SHIFT 4
Paul Walmsley2bb2a5d2012-10-21 01:01:13 -060038#define OMAP24XX_SECU_VIOL_RST_SHIFT 3
Paul Walmsley69d88a02008-03-18 10:02:50 +020039#endif