blob: 4dbbd99b6e1e737b5502f0105c7fdeafc19e2f39 [file] [log] [blame]
Rajendra Nayakdd708412009-12-08 18:24:54 -07001/*
2 * OMAP44xx Clock Management register bits
3 *
Mike Turquettef19a3022012-09-19 18:04:14 -06004 * Copyright (C) 2009-2012 Texas Instruments, Inc.
Rajendra Nayak568997c2010-09-27 14:02:55 -06005 * Copyright (C) 2009-2010 Nokia Corporation
Rajendra Nayakdd708412009-12-08 18:24:54 -07006 *
7 * Paul Walmsley (paul@pwsan.com)
8 * Rajendra Nayak (rnayak@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
10 *
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
20 */
21
22#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
23#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
24
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070025#define OMAP4430_ABE_STATDEP_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -060026#define OMAP4430_AUTO_DPLL_MODE_MASK (0x7 << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070027#define OMAP4430_CLKSEL_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -060028#define OMAP4430_CLKSEL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060029#define OMAP4430_CLKSEL_MASK (1 << 24)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070030#define OMAP4430_CLKSEL_0_0_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -060031#define OMAP4430_CLKSEL_0_0_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070032#define OMAP4430_CLKSEL_0_1_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -060033#define OMAP4430_CLKSEL_0_1_WIDTH 0x2
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070034#define OMAP4430_CLKSEL_24_25_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -060035#define OMAP4430_CLKSEL_24_25_WIDTH 0x2
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070036#define OMAP4430_CLKSEL_60M_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -060037#define OMAP4430_CLKSEL_60M_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070038#define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -060039#define OMAP4430_CLKSEL_AESS_FCLK_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070040#define OMAP4430_CLKSEL_CORE_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -060041#define OMAP4430_CLKSEL_CORE_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070042#define OMAP4430_CLKSEL_DIV_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -060043#define OMAP4430_CLKSEL_DIV_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070044#define OMAP4430_CLKSEL_FCLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -060045#define OMAP4430_CLKSEL_FCLK_WIDTH 0x2
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070046#define OMAP4430_CLKSEL_INTERNAL_SOURCE_SHIFT 25
Mike Turquettef19a3022012-09-19 18:04:14 -060047#define OMAP4430_CLKSEL_INTERNAL_SOURCE_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070048#define OMAP4430_CLKSEL_L3_SHIFT 4
Mike Turquettef19a3022012-09-19 18:04:14 -060049#define OMAP4430_CLKSEL_L3_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070050#define OMAP4430_CLKSEL_L4_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -060051#define OMAP4430_CLKSEL_L4_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070052#define OMAP4430_CLKSEL_OPP_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -060053#define OMAP4430_CLKSEL_OPP_WIDTH 0x2
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070054#define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT 27
Mike Turquettef19a3022012-09-19 18:04:14 -060055#define OMAP4430_CLKSEL_PMD_STM_CLK_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -060056#define OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK (0x7 << 24)
Rajendra Nayak568997c2010-09-27 14:02:55 -060057#define OMAP4430_CLKSEL_SGX_FCLK_MASK (1 << 24)
Rajendra Nayak568997c2010-09-27 14:02:55 -060058#define OMAP4430_CLKSEL_SOURCE_MASK (0x3 << 24)
Rajendra Nayak568997c2010-09-27 14:02:55 -060059#define OMAP4430_CLKSEL_SOURCE_24_24_MASK (1 << 24)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070060#define OMAP4430_CLKSEL_UTMI_P1_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -060061#define OMAP4430_CLKSEL_UTMI_P1_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070062#define OMAP4430_CLKSEL_UTMI_P2_SHIFT 25
Mike Turquettef19a3022012-09-19 18:04:14 -060063#define OMAP4430_CLKSEL_UTMI_P2_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070064#define OMAP4430_CLKTRCTRL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -060065#define OMAP4430_CLKTRCTRL_MASK (0x3 << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070066#define OMAP4430_DPLL_BYP_CLKSEL_SHIFT 23
Mike Turquettef19a3022012-09-19 18:04:14 -060067#define OMAP4430_DPLL_BYP_CLKSEL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060068#define OMAP4430_DPLL_CLKOUTHIF_DIV_MASK (0x1f << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070069#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -060070#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK (1 << 10)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070071#define OMAP4430_DPLL_CLKOUT_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -060072#define OMAP4430_DPLL_CLKOUT_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -060073#define OMAP4430_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060074#define OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK (0x7f << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060075#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
Rajendra Nayak568997c2010-09-27 14:02:55 -060076#define OMAP4430_DPLL_DIV_MASK (0x7f << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060077#define OMAP4430_DPLL_DIV_0_7_MASK (0xff << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060078#define OMAP4430_DPLL_EN_MASK (0x7 << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060079#define OMAP4430_DPLL_LPMODE_EN_MASK (1 << 10)
Rajendra Nayak568997c2010-09-27 14:02:55 -060080#define OMAP4430_DPLL_MULT_MASK (0x7ff << 8)
Rajendra Nayak568997c2010-09-27 14:02:55 -060081#define OMAP4430_DPLL_MULT_USB_MASK (0xfff << 8)
Rajendra Nayak568997c2010-09-27 14:02:55 -060082#define OMAP4430_DPLL_REGM4XEN_MASK (1 << 11)
Rajendra Nayak568997c2010-09-27 14:02:55 -060083#define OMAP4430_DPLL_SD_DIV_MASK (0xff << 24)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070084#define OMAP4430_DSS_STATDEP_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070085#define OMAP4430_DUCATI_STATDEP_SHIFT 0
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070086#define OMAP4430_GFX_STATDEP_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -060087#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK (0x1f << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060088#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK (0x1f << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060089#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK (0x1f << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060090#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK (0x1f << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070091#define OMAP4430_IDLEST_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060092#define OMAP4430_IDLEST_MASK (0x3 << 16)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070093#define OMAP4430_IVAHD_STATDEP_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -060094#define OMAP4430_L3INIT_STATDEP_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -060095#define OMAP4430_L3_1_STATDEP_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -060096#define OMAP4430_L3_2_STATDEP_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -060097#define OMAP4430_L4CFG_STATDEP_SHIFT 12
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070098#define OMAP4430_L4PER_STATDEP_SHIFT 13
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070099#define OMAP4430_L4SEC_STATDEP_SHIFT 14
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700100#define OMAP4430_L4WKUP_STATDEP_SHIFT 15
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700101#define OMAP4430_MEMIF_STATDEP_SHIFT 4
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700102#define OMAP4430_MODULEMODE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600103#define OMAP4430_MODULEMODE_MASK (0x3 << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700104#define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700105#define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600106#define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700107#define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700108#define OMAP4430_OPTFCLKEN_DBCLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700109#define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600110#define OMAP4430_OPTFCLKEN_FCLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700111#define OMAP4430_OPTFCLKEN_FCLK0_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700112#define OMAP4430_OPTFCLKEN_FCLK1_SHIFT 9
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700113#define OMAP4430_OPTFCLKEN_FCLK2_SHIFT 10
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700114#define OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT 15
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700115#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT 13
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700116#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT 14
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700117#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT 11
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700118#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT 12
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700119#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700120#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT 9
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700121#define OMAP4430_OPTFCLKEN_PHY_48M_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700122#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT 10
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700123#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT 11
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700124#define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530125#define OMAP4460_OPTFCLKEN_TS_FCLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700126#define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700127#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700128#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT 9
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700129#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT 10
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700130#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700131#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT 9
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700132#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT 10
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700133#define OMAP4430_OPTFCLKEN_XCLK_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700134#define OMAP4430_PAD_CLKS_GATE_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700135#define OMAP4430_PMD_STM_MUX_CTRL_SHIFT 20
Mike Turquettef19a3022012-09-19 18:04:14 -0600136#define OMAP4430_PMD_STM_MUX_CTRL_WIDTH 0x2
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700137#define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT 22
Mike Turquettef19a3022012-09-19 18:04:14 -0600138#define OMAP4430_PMD_TRACE_MUX_CTRL_WIDTH 0x2
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700139#define OMAP4430_SCALE_FCLK_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600140#define OMAP4430_SCALE_FCLK_WIDTH 0x1
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700141#define OMAP4430_SLIMBUS_CLK_GATE_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600142#define OMAP4430_ST_DPLL_CLK_MASK (1 << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700143#define OMAP4430_SYS_CLKSEL_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600144#define OMAP4430_SYS_CLKSEL_WIDTH 0x3
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700145#define OMAP4430_TESLA_STATDEP_SHIFT 1
Rajendra Nayakdd708412009-12-08 18:24:54 -0700146#endif