blob: c0823fd6d5e038ab2281276505a3bcdb0af270d8 [file] [log] [blame]
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -06001/*
2 * AM33XX Power Management register bits
3 *
4 * This file is automatically generated from the AM33XX hardware databases.
5 * Vaibhav Hiremath <hvaibhav@ti.com>
6 *
7 * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation version 2.
12 *
13 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
14 * kind, whether express or implied; without even the implied warranty
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 */
18
19
20#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_33XX_H
21#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_33XX_H
22
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060023#define AM33XX_CLKOUT2DIV_SHIFT 3
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060024#define AM33XX_CLKOUT2DIV_WIDTH 3
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060025#define AM33XX_CLKOUT2EN_SHIFT 7
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060026#define AM33XX_CLKOUT2SOURCE_MASK (0x7 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060027#define AM33XX_CLKSEL_0_0_SHIFT 0
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060028#define AM33XX_CLKSEL_0_0_WIDTH 1
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060029#define AM33XX_CLKSEL_0_0_MASK (1 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060030#define AM33XX_CLKSEL_0_1_MASK (3 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060031#define AM33XX_CLKSEL_0_2_MASK (7 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060032#define AM33XX_CLKSEL_GFX_FCLK_MASK (1 << 1)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060033#define AM33XX_CLKTRCTRL_SHIFT 0
34#define AM33XX_CLKTRCTRL_MASK (0x3 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060035#define AM33XX_DPLL_CLKOUT_DIV_SHIFT 0
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060036#define AM33XX_DPLL_CLKOUT_DIV_WIDTH 5
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060037#define AM33XX_DPLL_DIV_MASK (0x7f << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060038#define AM33XX_DPLL_PER_DIV_MASK (0xff << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060039#define AM33XX_DPLL_EN_MASK (0x7 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060040#define AM33XX_DPLL_MULT_MASK (0x7ff << 8)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060041#define AM33XX_DPLL_MULT_PERIPH_MASK (0xfff << 8)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060042#define AM33XX_HSDIVIDER_CLKOUT1_DIV_SHIFT 0
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060043#define AM33XX_HSDIVIDER_CLKOUT1_DIV_WIDTH 5
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060044#define AM33XX_HSDIVIDER_CLKOUT2_DIV_SHIFT 0
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060045#define AM33XX_HSDIVIDER_CLKOUT2_DIV_WIDTH 5
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060046#define AM33XX_HSDIVIDER_CLKOUT3_DIV_SHIFT 0
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060047#define AM33XX_HSDIVIDER_CLKOUT3_DIV_WIDTH 5
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060048#define AM33XX_IDLEST_SHIFT 16
49#define AM33XX_IDLEST_MASK (0x3 << 16)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060050#define AM33XX_MODULEMODE_SHIFT 0
51#define AM33XX_MODULEMODE_MASK (0x3 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060052#define AM33XX_OPTCLK_DEBUG_CLKA_SHIFT 30
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060053#define AM33XX_OPTFCLKEN_DBGSYSCLK_SHIFT 19
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060054#define AM33XX_OPTFCLKEN_GPIO0_GDBCLK_SHIFT 18
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060055#define AM33XX_OPTFCLKEN_GPIO_1_GDBCLK_SHIFT 18
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060056#define AM33XX_OPTFCLKEN_GPIO_2_GDBCLK_SHIFT 18
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060057#define AM33XX_OPTFCLKEN_GPIO_3_GDBCLK_SHIFT 18
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060058#define AM33XX_STM_PMD_CLKDIVSEL_SHIFT 27
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060059#define AM33XX_STM_PMD_CLKDIVSEL_WIDTH 3
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060060#define AM33XX_STM_PMD_CLKSEL_SHIFT 22
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060061#define AM33XX_STM_PMD_CLKSEL_WIDTH 2
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060062#define AM33XX_ST_DPLL_CLK_MASK (1 << 0)
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060063#define AM33XX_ST_DPLL_CLKDCOLDO_SHIFT 8
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060064#define AM33XX_TRC_PMD_CLKDIVSEL_SHIFT 24
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060065#define AM33XX_TRC_PMD_CLKDIVSEL_WIDTH 3
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060066#define AM33XX_TRC_PMD_CLKSEL_SHIFT 20
Vaibhav Hirematha86c0b92012-09-19 18:05:15 -060067#define AM33XX_TRC_PMD_CLKSEL_WIDTH 2
Vaibhav Hiremathf969a6d2012-06-18 00:47:26 -060068#endif