Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 1 | #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H |
| 2 | #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H |
| 3 | |
| 4 | /* |
| 5 | * OMAP3430 Clock Management register bits |
| 6 | * |
| 7 | * Copyright (C) 2007-2008 Texas Instruments, Inc. |
| 8 | * Copyright (C) 2007-2008 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 | |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 17 | #define OMAP3430ES2_EN_MMC3_SHIFT 30 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 18 | #define OMAP3430_EN_MSPRO_SHIFT 23 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 19 | #define OMAP3430_EN_HDQ_SHIFT 22 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 20 | #define OMAP3430ES1_EN_FSHOSTUSB_SHIFT 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 21 | #define OMAP3430ES1_EN_D2D_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 22 | #define OMAP3430_EN_SSI_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 23 | #define OMAP3430ES2_EN_USBTLL_SHIFT 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 24 | #define OMAP3430_EN_WDT2_SHIFT 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 25 | #define OMAP3430_EN_CAM_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 26 | #define OMAP3430_EN_WDT3_SHIFT 12 |
Kevin Hilman | dfa6d6f | 2010-02-24 12:05:48 -0700 | [diff] [blame] | 27 | #define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_MASK (1 << 0) |
Hiroshi DOYU | 31c203d | 2008-04-01 10:11:22 +0300 | [diff] [blame] | 28 | #define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 29 | #define OMAP3430_IVA2_DPLL_FREQSEL_MASK (0xf << 4) |
| 30 | #define OMAP3430_EN_IVA2_DPLL_DRIFTGUARD_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 31 | #define OMAP3430_EN_IVA2_DPLL_MASK (0x7 << 0) |
Tero Kristo | ed73361 | 2012-09-03 11:50:52 -0600 | [diff] [blame] | 32 | #define OMAP3430_ST_IVA2_SHIFT 0 |
Paul Walmsley | 542313c | 2008-07-03 12:24:45 +0300 | [diff] [blame] | 33 | #define OMAP3430_ST_IVA2_CLK_MASK (1 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 34 | #define OMAP3430_AUTO_IVA2_DPLL_MASK (0x7 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 35 | #define OMAP3430_IVA2_CLK_SRC_SHIFT 19 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 36 | #define OMAP3430_IVA2_CLK_SRC_WIDTH 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 37 | #define OMAP3430_IVA2_DPLL_MULT_MASK (0x7ff << 8) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 38 | #define OMAP3430_IVA2_DPLL_DIV_MASK (0x7f << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 39 | #define OMAP3430_IVA2_DPLL_CLKOUT_DIV_SHIFT 0 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 40 | #define OMAP3430_IVA2_DPLL_CLKOUT_DIV_WIDTH 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 41 | #define OMAP3430_CLKTRCTRL_IVA2_MASK (0x3 << 0) |
Paul Walmsley | 801954d | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 42 | #define OMAP3430_CLKACTIVITY_IVA2_MASK (1 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 43 | #define OMAP3430_MPU_DPLL_FREQSEL_MASK (0xf << 4) |
| 44 | #define OMAP3430_EN_MPU_DPLL_DRIFTGUARD_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 45 | #define OMAP3430_EN_MPU_DPLL_MASK (0x7 << 0) |
Paul Walmsley | 542313c | 2008-07-03 12:24:45 +0300 | [diff] [blame] | 46 | #define OMAP3430_ST_MPU_CLK_SHIFT 0 |
Roman Tereshonkov | 3760d31 | 2008-03-13 21:35:09 +0200 | [diff] [blame] | 47 | #define OMAP3430_ST_MPU_CLK_MASK (1 << 0) |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 48 | #define OMAP3430_ST_MPU_CLK_WIDTH 1 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 49 | #define OMAP3430_AUTO_MPU_DPLL_MASK (0x7 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 50 | #define OMAP3430_MPU_CLK_SRC_SHIFT 19 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 51 | #define OMAP3430_MPU_CLK_SRC_WIDTH 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 52 | #define OMAP3430_MPU_DPLL_MULT_MASK (0x7ff << 8) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 53 | #define OMAP3430_MPU_DPLL_DIV_MASK (0x7f << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 54 | #define OMAP3430_MPU_DPLL_CLKOUT_DIV_SHIFT 0 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 55 | #define OMAP3430_MPU_DPLL_CLKOUT_DIV_WIDTH 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 56 | #define OMAP3430_CLKTRCTRL_MPU_MASK (0x3 << 0) |
Kevin Hilman | 8111b22 | 2009-04-28 15:27:44 -0700 | [diff] [blame] | 57 | #define OMAP3430_EN_MODEM_SHIFT 31 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 58 | #define OMAP3430_EN_ICR_SHIFT 29 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 59 | #define OMAP3430_EN_AES2_SHIFT 28 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 60 | #define OMAP3430_EN_SHA12_SHIFT 27 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 61 | #define OMAP3430_EN_DES2_SHIFT 26 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 62 | #define OMAP3430ES1_EN_FAC_SHIFT 8 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 63 | #define OMAP3430_EN_MAILBOXES_SHIFT 7 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 64 | #define OMAP3430_EN_OMAPCTRL_SHIFT 6 |
Kevin Hilman | 8111b22 | 2009-04-28 15:27:44 -0700 | [diff] [blame] | 65 | #define OMAP3430_EN_SAD2D_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 66 | #define OMAP3430_EN_SDRC_SHIFT 1 |
Ranjith Lohithakshan | 3cc4a2f | 2010-02-24 12:05:55 -0700 | [diff] [blame] | 67 | #define AM35XX_EN_IPSS_SHIFT 4 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 68 | #define OMAP3430_EN_PKA_SHIFT 4 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 69 | #define OMAP3430_EN_AES1_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 70 | #define OMAP3430_EN_RNG_SHIFT 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 71 | #define OMAP3430_EN_SHA11_SHIFT 1 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 72 | #define OMAP3430_EN_DES1_SHIFT 0 |
Kevin Hilman | 8111b22 | 2009-04-28 15:27:44 -0700 | [diff] [blame] | 73 | #define OMAP3430_EN_MAD2D_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 74 | #define OMAP3430ES2_EN_TS_SHIFT 1 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 75 | #define OMAP3430ES2_EN_CPEFUSE_SHIFT 0 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 76 | #define OMAP3430_ST_AES2_SHIFT 28 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 77 | #define OMAP3430_ST_SHA12_SHIFT 27 |
Paul Walmsley | bf76523 | 2012-06-27 14:53:46 -0600 | [diff] [blame] | 78 | #define AM35XX_ST_UART4_SHIFT 23 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 79 | #define OMAP3430_ST_HDQ_SHIFT 22 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 80 | #define OMAP3430ES2_ST_SSI_IDLE_SHIFT 8 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 81 | #define OMAP3430_ST_MAILBOXES_SHIFT 7 |
Tero Kristo | 8f993a0 | 2012-09-23 17:28:21 -0600 | [diff] [blame] | 82 | #define OMAP3430_ST_SAD2D_SHIFT 3 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 83 | #define OMAP3430_ST_SDMA_SHIFT 2 |
Ranjith Lohithakshan | 3cc4a2f | 2010-02-24 12:05:55 -0700 | [diff] [blame] | 84 | #define AM35XX_ST_IPSS_SHIFT 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 85 | #define OMAP3430ES2_ST_USBTLL_SHIFT 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 86 | #define OMAP3430_CLKSEL_SSI_MASK (0xf << 8) |
| 87 | #define OMAP3430_CLKSEL_GPT11_MASK (1 << 7) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 88 | #define OMAP3430_CLKSEL_GPT10_MASK (1 << 6) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 89 | #define OMAP3430ES1_CLKSEL_FSHOSTUSB_MASK (0x3 << 4) |
| 90 | #define OMAP3430_CLKSEL_L4_SHIFT 2 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 91 | #define OMAP3430_CLKSEL_L4_WIDTH 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 92 | #define OMAP3430_CLKSEL_L3_SHIFT 0 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 93 | #define OMAP3430_CLKSEL_L3_WIDTH 2 |
Vishwanath BS | 7356f0b | 2010-02-22 22:09:10 -0700 | [diff] [blame] | 94 | #define OMAP3630_CLKSEL_96M_MASK (0x3 << 12) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 95 | #define OMAP3430ES1_CLKTRCTRL_D2D_MASK (0x3 << 4) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 96 | #define OMAP3430_CLKTRCTRL_L4_MASK (0x3 << 2) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 97 | #define OMAP3430_CLKTRCTRL_L3_MASK (0x3 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 98 | #define OMAP3430ES1_EN_3D_SHIFT 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 99 | #define OMAP3430ES1_EN_2D_SHIFT 1 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 100 | #define OMAP3430ES1_CLKTRCTRL_GFX_MASK (0x3 << 0) |
Daniel Stone | 712d7c8 | 2009-01-27 19:13:05 -0700 | [diff] [blame] | 101 | #define OMAP3430ES2_CM_FCLKEN_SGX_EN_SGX_SHIFT 1 |
Daniel Stone | 712d7c8 | 2009-01-27 19:13:05 -0700 | [diff] [blame] | 102 | #define OMAP3430ES2_CM_ICLKEN_SGX_EN_SGX_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 103 | #define OMAP3430ES2_CLKSEL_SGX_MASK (0x7 << 0) |
Paul Walmsley | 801954d | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 104 | #define OMAP3430ES2_CLKTRCTRL_SGX_MASK (0x3 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 105 | #define OMAP3430ES2_EN_USIMOCP_SHIFT 9 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 106 | #define OMAP3430_EN_WDT1_SHIFT 4 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 107 | #define OMAP3430_EN_32KSYNC_SHIFT 2 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 108 | #define OMAP3430_ST_WDT2_SHIFT 5 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 109 | #define OMAP3430_ST_32KSYNC_SHIFT 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 110 | #define OMAP3430ES2_CLKSEL_USIMOCP_MASK (0xf << 3) |
| 111 | #define OMAP3430_CLKSEL_RM_SHIFT 1 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 112 | #define OMAP3430_CLKSEL_RM_WIDTH 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 113 | #define OMAP3430_CLKSEL_GPT1_MASK (1 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 114 | #define OMAP3430_PWRDN_EMU_PERIPH_SHIFT 31 |
| 115 | #define OMAP3430_PWRDN_CAM_SHIFT 30 |
| 116 | #define OMAP3430_PWRDN_DSS1_SHIFT 29 |
| 117 | #define OMAP3430_PWRDN_TV_SHIFT 28 |
| 118 | #define OMAP3430_PWRDN_96M_SHIFT 27 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 119 | #define OMAP3430_PERIPH_DPLL_FREQSEL_MASK (0xf << 20) |
| 120 | #define OMAP3430_EN_PERIPH_DPLL_DRIFTGUARD_SHIFT 19 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 121 | #define OMAP3430_EN_PERIPH_DPLL_MASK (0x7 << 16) |
| 122 | #define OMAP3430_PWRDN_EMU_CORE_SHIFT 12 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 123 | #define OMAP3430_CORE_DPLL_FREQSEL_MASK (0xf << 4) |
| 124 | #define OMAP3430_EN_CORE_DPLL_DRIFTGUARD_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 125 | #define OMAP3430_EN_CORE_DPLL_MASK (0x7 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 126 | #define OMAP3430ES2_PERIPH2_DPLL_FREQSEL_MASK (0xf << 4) |
| 127 | #define OMAP3430ES2_EN_PERIPH2_DPLL_DRIFTGUARD_SHIFT 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 128 | #define OMAP3430ES2_EN_PERIPH2_DPLL_MASK (0x7 << 0) |
Paul Walmsley | 542313c | 2008-07-03 12:24:45 +0300 | [diff] [blame] | 129 | #define OMAP3430_ST_PERIPH_CLK_MASK (1 << 1) |
Paul Walmsley | 542313c | 2008-07-03 12:24:45 +0300 | [diff] [blame] | 130 | #define OMAP3430_ST_CORE_CLK_MASK (1 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 131 | #define OMAP3430ES2_ST_PERIPH2_CLK_MASK (1 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 132 | #define OMAP3430_AUTO_PERIPH_DPLL_MASK (0x7 << 3) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 133 | #define OMAP3430_AUTO_CORE_DPLL_MASK (0x7 << 0) |
Paul Walmsley | 542313c | 2008-07-03 12:24:45 +0300 | [diff] [blame] | 134 | #define OMAP3430ES2_AUTO_PERIPH2_DPLL_MASK (0x7 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 135 | #define OMAP3430_CORE_DPLL_CLKOUT_DIV_SHIFT 27 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 136 | #define OMAP3430_CORE_DPLL_CLKOUT_DIV_WIDTH 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 137 | #define OMAP3430_CORE_DPLL_MULT_MASK (0x7ff << 16) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 138 | #define OMAP3430_CORE_DPLL_DIV_MASK (0x7f << 8) |
Paul Walmsley | 9cfd985 | 2009-01-27 19:13:02 -0700 | [diff] [blame] | 139 | #define OMAP3430_SOURCE_96M_SHIFT 6 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 140 | #define OMAP3430_SOURCE_96M_WIDTH 1 |
Paul Walmsley | 9cfd985 | 2009-01-27 19:13:02 -0700 | [diff] [blame] | 141 | #define OMAP3430_SOURCE_54M_SHIFT 5 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 142 | #define OMAP3430_SOURCE_54M_WIDTH 1 |
Paul Walmsley | 9cfd985 | 2009-01-27 19:13:02 -0700 | [diff] [blame] | 143 | #define OMAP3430_SOURCE_48M_MASK (1 << 3) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 144 | #define OMAP3430_PERIPH_DPLL_MULT_MASK (0x7ff << 8) |
Richard Woodruff | 358965d | 2010-02-22 22:09:08 -0700 | [diff] [blame] | 145 | #define OMAP3630_PERIPH_DPLL_MULT_MASK (0xfff << 8) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 146 | #define OMAP3430_PERIPH_DPLL_DIV_MASK (0x7f << 0) |
Richard Woodruff | 358965d | 2010-02-22 22:09:08 -0700 | [diff] [blame] | 147 | #define OMAP3630_PERIPH_DPLL_DCO_SEL_MASK (0x7 << 21) |
Richard Woodruff | 358965d | 2010-02-22 22:09:08 -0700 | [diff] [blame] | 148 | #define OMAP3630_PERIPH_DPLL_SD_DIV_MASK (0xff << 24) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 149 | #define OMAP3430_DIV_96M_SHIFT 0 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 150 | #define OMAP3630_DIV_96M_WIDTH 6 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 151 | #define OMAP3430ES2_PERIPH2_DPLL_MULT_MASK (0x7ff << 8) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 152 | #define OMAP3430ES2_PERIPH2_DPLL_DIV_MASK (0x7f << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 153 | #define OMAP3430ES2_DIV_120M_SHIFT 0 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 154 | #define OMAP3430ES2_DIV_120M_WIDTH 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 155 | #define OMAP3430_CLKOUT2_EN_SHIFT 7 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 156 | #define OMAP3430_CLKOUT2_DIV_SHIFT 3 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 157 | #define OMAP3430_CLKOUT2_DIV_WIDTH 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 158 | #define OMAP3430_CLKOUT2SOURCE_MASK (0x3 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 159 | #define OMAP3430_EN_TV_SHIFT 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 160 | #define OMAP3430_EN_DSS2_SHIFT 1 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 161 | #define OMAP3430_EN_DSS1_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 162 | #define OMAP3430_CM_ICLKEN_DSS_EN_DSS_SHIFT 0 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 163 | #define OMAP3430ES2_ST_DSS_IDLE_SHIFT 1 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 164 | #define OMAP3430ES2_ST_DSS_STDBY_SHIFT 0 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 165 | #define OMAP3430ES1_ST_DSS_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 166 | #define OMAP3430_CLKSEL_TV_SHIFT 8 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 167 | #define OMAP3630_CLKSEL_TV_WIDTH 6 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 168 | #define OMAP3430_CLKSEL_DSS1_SHIFT 0 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 169 | #define OMAP3630_CLKSEL_DSS1_WIDTH 6 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 170 | #define OMAP3430_CLKTRCTRL_DSS_MASK (0x3 << 0) |
Sergio Aguirre | 6c8fe0b | 2009-01-27 19:13:09 -0700 | [diff] [blame] | 171 | #define OMAP3430_EN_CSI2_SHIFT 1 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 172 | #define OMAP3430_CLKSEL_CAM_SHIFT 0 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 173 | #define OMAP3630_CLKSEL_CAM_WIDTH 6 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 174 | #define OMAP3430_CLKTRCTRL_CAM_MASK (0x3 << 0) |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 175 | #define OMAP3430_ST_MCBSP4_SHIFT 2 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 176 | #define OMAP3430_ST_MCBSP3_SHIFT 1 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 177 | #define OMAP3430_ST_MCBSP2_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 178 | #define OMAP3430_CLKSEL_GPT9_MASK (1 << 7) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 179 | #define OMAP3430_CLKSEL_GPT8_MASK (1 << 6) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 180 | #define OMAP3430_CLKSEL_GPT7_MASK (1 << 5) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 181 | #define OMAP3430_CLKSEL_GPT6_MASK (1 << 4) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 182 | #define OMAP3430_CLKSEL_GPT5_MASK (1 << 3) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 183 | #define OMAP3430_CLKSEL_GPT4_MASK (1 << 2) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 184 | #define OMAP3430_CLKSEL_GPT3_MASK (1 << 1) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 185 | #define OMAP3430_CLKSEL_GPT2_MASK (1 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 186 | #define OMAP3430_CLKTRCTRL_PER_MASK (0x3 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 187 | #define OMAP3430_DIV_DPLL4_SHIFT 24 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 188 | #define OMAP3630_DIV_DPLL4_WIDTH 6 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 189 | #define OMAP3430_DIV_DPLL3_SHIFT 16 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 190 | #define OMAP3430_DIV_DPLL3_WIDTH 5 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 191 | #define OMAP3430_CLKSEL_TRACECLK_SHIFT 11 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 192 | #define OMAP3430_CLKSEL_TRACECLK_WIDTH 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 193 | #define OMAP3430_CLKSEL_PCLK_SHIFT 8 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 194 | #define OMAP3430_CLKSEL_PCLK_WIDTH 3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 195 | #define OMAP3430_CLKSEL_PCLKX2_SHIFT 6 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 196 | #define OMAP3430_CLKSEL_PCLKX2_WIDTH 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 197 | #define OMAP3430_CLKSEL_ATCLK_SHIFT 4 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 198 | #define OMAP3430_CLKSEL_ATCLK_WIDTH 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 199 | #define OMAP3430_TRACE_MUX_CTRL_SHIFT 2 |
Rajendra Nayak | 99e7938 | 2012-11-02 05:02:58 -0600 | [diff] [blame] | 200 | #define OMAP3430_TRACE_MUX_CTRL_WIDTH 2 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 201 | #define OMAP3430_MUX_CTRL_MASK (0x3 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 202 | #define OMAP3430_CLKTRCTRL_EMU_MASK (0x3 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 203 | #define OMAP3430_CLKTRCTRL_NEON_MASK (0x3 << 0) |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 204 | #define OMAP3430ES2_EN_USBHOST2_SHIFT 1 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 205 | #define OMAP3430ES2_EN_USBHOST1_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 206 | #define OMAP3430ES2_EN_USBHOST_SHIFT 0 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 207 | #define OMAP3430ES2_ST_USBHOST_IDLE_SHIFT 1 |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 208 | #define OMAP3430ES2_ST_USBHOST_STDBY_SHIFT 0 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 209 | #define OMAP3430ES2_CLKTRCTRL_USBHOST_MASK (3 << 0) |
Paul Walmsley | bd2122c | 2010-12-21 21:05:15 -0700 | [diff] [blame] | 210 | #define OMAP34XX_CLKSTCTRL_DISABLE_AUTO 0x0 |
| 211 | #define OMAP34XX_CLKSTCTRL_FORCE_SLEEP 0x1 |
| 212 | #define OMAP34XX_CLKSTCTRL_FORCE_WAKEUP 0x2 |
| 213 | #define OMAP34XX_CLKSTCTRL_ENABLE_AUTO 0x3 |
Tony Lindgren | c595713 | 2008-03-18 14:53:17 +0200 | [diff] [blame] | 214 | #endif |