Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 1 | /* |
| 2 | * OMAP54xx Clock Management register bits |
| 3 | * |
| 4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com |
| 5 | * |
| 6 | * Paul Walmsley (paul@pwsan.com) |
| 7 | * Rajendra Nayak (rnayak@ti.com) |
| 8 | * Benoit Cousson (b-cousson@ti.com) |
| 9 | * |
| 10 | * This file is automatically generated from the OMAP hardware databases. |
| 11 | * We respectfully ask that any modifications to this file be coordinated |
| 12 | * with the public linux-omap@vger.kernel.org mailing list and the |
| 13 | * authors above to ensure that the autogeneration scripts are kept |
| 14 | * up-to-date with the file contents. |
| 15 | * |
| 16 | * This program is free software; you can redistribute it and/or modify |
| 17 | * it under the terms of the GNU General Public License version 2 as |
| 18 | * published by the Free Software Foundation. |
| 19 | */ |
| 20 | |
| 21 | #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_54XX_H |
| 22 | #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_54XX_H |
| 23 | |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 24 | #define OMAP54XX_ABE_STATDEP_SHIFT 3 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 25 | #define OMAP54XX_AUTO_DPLL_MODE_MASK (0x7 << 0) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 26 | #define OMAP54XX_CLKSEL_SHIFT 24 |
| 27 | #define OMAP54XX_CLKSEL_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 28 | #define OMAP54XX_CLKSEL_0_0_SHIFT 0 |
| 29 | #define OMAP54XX_CLKSEL_0_0_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 30 | #define OMAP54XX_CLKSEL_AESS_FCLK_SHIFT 24 |
| 31 | #define OMAP54XX_CLKSEL_AESS_FCLK_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 32 | #define OMAP54XX_CLKSEL_DIV_SHIFT 25 |
| 33 | #define OMAP54XX_CLKSEL_DIV_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 34 | #define OMAP54XX_CLKSEL_FCLK_SHIFT 24 |
| 35 | #define OMAP54XX_CLKSEL_FCLK_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 36 | #define OMAP54XX_CLKSEL_GPU_CORE_GCLK_SHIFT 24 |
| 37 | #define OMAP54XX_CLKSEL_GPU_CORE_GCLK_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 38 | #define OMAP54XX_CLKSEL_GPU_HYD_GCLK_SHIFT 25 |
| 39 | #define OMAP54XX_CLKSEL_GPU_HYD_GCLK_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 40 | #define OMAP54XX_CLKSEL_INTERNAL_SOURCE_SHIFT 26 |
| 41 | #define OMAP54XX_CLKSEL_INTERNAL_SOURCE_WIDTH 0x2 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 42 | #define OMAP54XX_CLKSEL_OPP_SHIFT 0 |
| 43 | #define OMAP54XX_CLKSEL_OPP_WIDTH 0x2 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 44 | #define OMAP54XX_CLKSEL_SOURCE_SHIFT 24 |
| 45 | #define OMAP54XX_CLKSEL_SOURCE_WIDTH 0x2 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 46 | #define OMAP54XX_CLKSEL_SOURCE_L3INIT_MMC1_SHIFT 24 |
| 47 | #define OMAP54XX_CLKSEL_SOURCE_L3INIT_MMC1_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 48 | #define OMAP54XX_CLKSEL_UTMI_P1_SHIFT 24 |
| 49 | #define OMAP54XX_CLKSEL_UTMI_P1_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 50 | #define OMAP54XX_CLKSEL_UTMI_P2_SHIFT 25 |
| 51 | #define OMAP54XX_CLKSEL_UTMI_P2_WIDTH 0x1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 52 | #define OMAP54XX_DIVHS_MASK (0x3f << 0) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 53 | #define OMAP54XX_DIVHS_0_4_MASK (0x1f << 0) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 54 | #define OMAP54XX_DIVHS_0_6_MASK (0x7f << 0) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 55 | #define OMAP54XX_DPLL_DIV_MASK (0x7f << 0) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 56 | #define OMAP54XX_DPLL_EN_MASK (0x7 << 0) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 57 | #define OMAP54XX_DPLL_LPMODE_EN_MASK (1 << 10) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 58 | #define OMAP54XX_DPLL_MULT_MASK (0x7ff << 8) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 59 | #define OMAP54XX_DPLL_REGM4XEN_MASK (1 << 11) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 60 | #define OMAP54XX_DPLL_SD_DIV_MASK (0xff << 24) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 61 | #define OMAP54XX_DSP_STATDEP_SHIFT 1 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 62 | #define OMAP54XX_DSS_STATDEP_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 63 | #define OMAP54XX_EMIF_STATDEP_SHIFT 4 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 64 | #define OMAP54XX_GPU_STATDEP_SHIFT 10 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 65 | #define OMAP54XX_IPU_STATDEP_SHIFT 0 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 66 | #define OMAP54XX_IVA_STATDEP_SHIFT 2 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 67 | #define OMAP54XX_L3INIT_STATDEP_SHIFT 7 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 68 | #define OMAP54XX_L3MAIN1_STATDEP_SHIFT 5 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 69 | #define OMAP54XX_L3MAIN2_STATDEP_SHIFT 6 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 70 | #define OMAP54XX_L4CFG_STATDEP_SHIFT 12 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 71 | #define OMAP54XX_L4PER_STATDEP_SHIFT 13 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 72 | #define OMAP54XX_L4SEC_STATDEP_SHIFT 14 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 73 | #define OMAP54XX_OPTFCLKEN_32KHZ_CLK_SHIFT 11 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 74 | #define OMAP54XX_OPTFCLKEN_32KHZ_CLK_8_8_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 75 | #define OMAP54XX_OPTFCLKEN_48MHZ_CLK_SHIFT 9 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 76 | #define OMAP54XX_OPTFCLKEN_CLK32K_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 77 | #define OMAP54XX_OPTFCLKEN_CTRLCLK_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 78 | #define OMAP54XX_OPTFCLKEN_DBCLK_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 79 | #define OMAP54XX_OPTFCLKEN_DSSCLK_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 80 | #define OMAP54XX_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT 13 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 81 | #define OMAP54XX_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT 14 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 82 | #define OMAP54XX_OPTFCLKEN_HSIC480M_P3_CLK_SHIFT 7 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 83 | #define OMAP54XX_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT 11 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 84 | #define OMAP54XX_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT 12 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 85 | #define OMAP54XX_OPTFCLKEN_HSIC60M_P3_CLK_SHIFT 6 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 86 | #define OMAP54XX_OPTFCLKEN_REFCLK960M_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 87 | #define OMAP54XX_OPTFCLKEN_REF_CLK_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 88 | #define OMAP54XX_OPTFCLKEN_SLIMBUS_CLK_SHIFT 11 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 89 | #define OMAP54XX_OPTFCLKEN_SYS_CLK_SHIFT 10 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 90 | #define OMAP54XX_OPTFCLKEN_TXPHY_CLK_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 91 | #define OMAP54XX_OPTFCLKEN_TXPHY_LS_CLK_SHIFT 9 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 92 | #define OMAP54XX_OPTFCLKEN_USB_CH0_CLK_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 93 | #define OMAP54XX_OPTFCLKEN_USB_CH1_CLK_SHIFT 9 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 94 | #define OMAP54XX_OPTFCLKEN_USB_CH2_CLK_SHIFT 10 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 95 | #define OMAP54XX_OPTFCLKEN_UTMI_P1_CLK_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 96 | #define OMAP54XX_OPTFCLKEN_UTMI_P2_CLK_SHIFT 9 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 97 | #define OMAP54XX_OPTFCLKEN_UTMI_P3_CLK_SHIFT 10 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 98 | #define OMAP54XX_PAD_CLKS_GATE_SHIFT 8 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 99 | #define OMAP54XX_SLIMBUS1_CLK_GATE_SHIFT 10 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 100 | #define OMAP54XX_ST_DPLL_CLK_MASK (1 << 0) |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 101 | #define OMAP54XX_SYS_CLKSEL_SHIFT 0 |
| 102 | #define OMAP54XX_SYS_CLKSEL_WIDTH 0x3 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 103 | #define OMAP54XX_WKUPAON_STATDEP_SHIFT 15 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 104 | #endif |