OMAP4: ES2 PRCM diff series
Subsystems (5)
cover OMAP4: ES2 PRCM diff series
The PRCM IP in OMAP4430 ES2 is completely validated and is expected to be functional, unlike the one in ES1 which was untested and non functional.
This series of patches brings in all the differences introducted by PRCM in ES2.0. Includes additional registers added, some removed, bitfields in registers moved around. Some changes in clock tree modelling and some in powerdomain states supported.
This series is tested on OMAP4430 ES2 using the below series
http://www.spinics.net/lists/linux-omap/msg36023.html
and also boot tested on OMAP4430 ES1 and applied on latest mainline.
Patches based on mainline rc4 are available here:
http://gitorious.org/omap-pm/linux for_2.6.37
Rajendra Nayak (4):
OMAP4: PM: Update PRCM register bitshits and masks for ES2
OMAP4: PM: Define additional registers for ES2
OMAP4: clocks: Update clock tree for ES2
OMAP4: powerdomain: Update DSS logic state for ES2
Santosh Shilimkar (1):
OMAP4: powerdomain: add context_offset field
arch/arm/mach-omap2/clock44xx_data.c | 168 ++++++-------- arch/arm/mach-omap2/cm-regbits-44xx.h | 327 ++++++++++++++----------- arch/arm/mach-omap2/cm44xx.h | 90 +++++++- arch/arm/mach-omap2/powerdomains44xx.h | 16 ++- arch/arm/mach-omap2/prm-regbits-44xx.h | 194 ++++++++++++--- arch/arm/mach-omap2/prm44xx.h | 14 +- arch/arm/plat-omap/include/plat/powerdomain.h | 2 + 7 files changed, 525 insertions(+), 286 deletions(-)
PATCH 1/5 OMAP4: PM: Update PRCM register bitshits and masks for ES2
This patch updates the PRM and CM register bitshifts and masks for OMAP4430 ES2.0.
--- arch/arm/mach-omap2/cm-regbits-44xx.h | 327 ++++++++++++++++++-------------- arch/arm/mach-omap2/prm-regbits-44xx.h | 194 +++++++++++++++---- 2 files changed, 342 insertions(+), 179 deletions(-)
arch/arm/mach-omap2/cm-regbits-44xx.h +187 -140
@@ -1,8 +1,8 @@/* * OMAP44xx Clock Management register bits * -* Copyright (C) 2009 Texas Instruments, Inc. -* Copyright (C) 2009 Nokia Corporation +* Copyright (C) 2009-2010 Texas Instruments, Inc. +* Copyright (C) 2009-2010 Nokia Corporation * * Paul Walmsley ([email protected]) * Rajendra Nayak ([email protected])
@@ -25,19 +25,22 @@#include "cm.h" -/* Used by CM_L3_1_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP */ +/* +* Used by CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP, +* CM_TESLA_DYNAMICDEP +*/ #define OMAP4430_ABE_DYNDEP_SHIFT 3#define OMAP4430_ABE_DYNDEP_MASK BITFIELD(3, 3)/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, -* CM_L3INIT_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP, -* CM_TESLA_STATICDEP +* CM_L3INIT_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_SDMA_STATICDEP_RESTORE, +* CM_MPU_STATICDEP, CM_TESLA_STATICDEP */ #define OMAP4430_ABE_STATDEP_SHIFT 3#define OMAP4430_ABE_STATDEP_MASK BITFIELD(3, 3) -/* Used by CM_L4CFG_DYNAMICDEP */ +/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */ #define OMAP4430_ALWONCORE_DYNDEP_SHIFT 16#define OMAP4430_ALWONCORE_DYNDEP_MASK BITFIELD(16, 16)
@@ -53,7 +56,7 @@#define OMAP4430_AUTO_DPLL_MODE_SHIFT 0#define OMAP4430_AUTO_DPLL_MODE_MASK BITFIELD(0, 2) -/* Used by CM_L4CFG_DYNAMICDEP */ +/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */ #define OMAP4430_CEFUSE_DYNDEP_SHIFT 17#define OMAP4430_CEFUSE_DYNDEP_MASK BITFIELD(17, 17)
@@ -97,6 +100,10 @@#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_SHIFT 9#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_MASK BITFIELD(9, 9) +/* Used by CM_ALWON_CLKSTCTRL */ +#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_SHIFT 12 +#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_MASK BITFIELD(12, 12) +/* Used by CM_EMU_CLKSTCTRL */ #define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT 9#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK BITFIELD(9, 9)
@@ -145,10 +152,6 @@#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_SHIFT 8#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_MASK BITFIELD(8, 8) -/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */ -#define OMAP4430_CLKACTIVITY_EMAC_50MHZ_CLK_SHIFT 10 -#define OMAP4430_CLKACTIVITY_EMAC_50MHZ_CLK_MASK BITFIELD(10, 10) -/* Used by CM_EMU_CLKSTCTRL */ #define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_SHIFT 8#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_MASK BITFIELD(8, 8)
@@ -185,10 +188,6 @@#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_SHIFT 27#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_MASK BITFIELD(27, 27) -/* Used by CM_L3INIT_CLKSTCTRL */ -#define OMAP4430_CLKACTIVITY_INIT_32K_GFCLK_SHIFT 31 -#define OMAP4430_CLKACTIVITY_INIT_32K_GFCLK_MASK BITFIELD(31, 31) -/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */ #define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_SHIFT 13#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_MASK BITFIELD(13, 13)
@@ -233,9 +232,9 @@#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_SHIFT 8#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_MASK BITFIELD(8, 8) -/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */ -#define OMAP4430_CLKACTIVITY_L3INIT_DPLL_ALWON_CLK_SHIFT 14 -#define OMAP4430_CLKACTIVITY_L3INIT_DPLL_ALWON_CLK_MASK BITFIELD(14, 14) +/* Used by CM_D2D_CLKSTCTRL */ +#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_SHIFT 10 +#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_MASK BITFIELD(10, 10)/* Used by CM_L3_1_CLKSTCTRL, CM_L3_1_CLKSTCTRL_RESTORE */ #define OMAP4430_CLKACTIVITY_L3_1_GICLK_SHIFT 8
@@ -337,10 +336,6 @@#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_SHIFT 25#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_MASK BITFIELD(25, 25) -/* Used by CM_EMU_CLKSTCTRL */ -#define OMAP4430_CLKACTIVITY_PER_DPLL_EMU_CLK_SHIFT 10 -#define OMAP4430_CLKACTIVITY_PER_DPLL_EMU_CLK_MASK BITFIELD(10, 10) -/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */ #define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_SHIFT 20#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_MASK BITFIELD(20, 20)
@@ -398,6 +393,14 @@#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_MASK BITFIELD(24, 24)/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */ +#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_SHIFT 10 +#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_MASK BITFIELD(10, 10) + +/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */ +#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_SHIFT 14 +#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_MASK BITFIELD(14, 14) + +/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */ #define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_SHIFT 15#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_MASK BITFIELD(15, 15)
@@ -431,8 +434,7 @@/* * Renamed from CLKSEL Used by CM_ABE_DSS_SYS_CLKSEL, CM_ABE_PLL_REF_CLKSEL, -* CM_DPLL_SYS_REF_CLKSEL, CM_L4_WKUP_CLKSEL, CM_CLKSEL_DUCATI_ISS_ROOT, -* CM_CLKSEL_USB_60MHZ +* CM_L4_WKUP_CLKSEL, CM_CLKSEL_DUCATI_ISS_ROOT, CM_CLKSEL_USB_60MHZ */ #define OMAP4430_CLKSEL_0_0_SHIFT 0#define OMAP4430_CLKSEL_0_0_MASK BITFIELD(0, 0)
@@ -457,7 +459,10 @@#define OMAP4430_CLKSEL_CORE_SHIFT 0#define OMAP4430_CLKSEL_CORE_MASK BITFIELD(0, 0) -/* Renamed from CLKSEL_CORE Used by CM_SHADOW_FREQ_CONFIG2 */ +/* +* Renamed from CLKSEL_CORE Used by CM_SHADOW_FREQ_CONFIG2_RESTORE, +* CM_SHADOW_FREQ_CONFIG2 +*/ #define OMAP4430_CLKSEL_CORE_1_1_SHIFT 1#define OMAP4430_CLKSEL_CORE_1_1_MASK BITFIELD(1, 1)
@@ -485,7 +490,10 @@#define OMAP4430_CLKSEL_L3_SHIFT 4#define OMAP4430_CLKSEL_L3_MASK BITFIELD(4, 4) -/* Renamed from CLKSEL_L3 Used by CM_SHADOW_FREQ_CONFIG2 */ +/* +* Renamed from CLKSEL_L3 Used by CM_SHADOW_FREQ_CONFIG2_RESTORE, +* CM_SHADOW_FREQ_CONFIG2 +*/ #define OMAP4430_CLKSEL_L3_SHADOW_SHIFT 2#define OMAP4430_CLKSEL_L3_SHADOW_MASK BITFIELD(2, 2)
@@ -497,10 +505,6 @@#define OMAP4430_CLKSEL_OPP_SHIFT 0#define OMAP4430_CLKSEL_OPP_MASK BITFIELD(0, 1) -/* Used by CM_GFX_GFX_CLKCTRL */ -#define OMAP4430_CLKSEL_PER_192M_SHIFT 25 -#define OMAP4430_CLKSEL_PER_192M_MASK BITFIELD(25, 26) -/* Used by CM_EMU_DEBUGSS_CLKCTRL */ #define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT 27#define OMAP4430_CLKSEL_PMD_STM_CLK_MASK BITFIELD(27, 29)
@@ -555,7 +559,14 @@#define OMAP4430_CORE_DPLL_EMU_MULT_SHIFT 8#define OMAP4430_CORE_DPLL_EMU_MULT_MASK BITFIELD(8, 18) -/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */ +/* Used by REVISION_CM2, REVISION_CM1 */ +#define OMAP4430_CUSTOM_SHIFT 6 +#define OMAP4430_CUSTOM_MASK BITFIELD(6, 7) + +/* +* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, +* CM_L4CFG_DYNAMICDEP_RESTORE +*/ #define OMAP4430_D2D_DYNDEP_SHIFT 18#define OMAP4430_D2D_DYNDEP_MASK BITFIELD(18, 18)
@@ -666,14 +677,10 @@#define OMAP4430_DPLL_CORE_M2_DIV_SHIFT 11#define OMAP4430_DPLL_CORE_M2_DIV_MASK BITFIELD(11, 15) -/* Used by CM_SHADOW_FREQ_CONFIG2 */ +/* Used by CM_SHADOW_FREQ_CONFIG2_RESTORE, CM_SHADOW_FREQ_CONFIG2 */ #define OMAP4430_DPLL_CORE_M5_DIV_SHIFT 3#define OMAP4430_DPLL_CORE_M5_DIV_MASK BITFIELD(3, 7) -/* Used by CM_SHADOW_FREQ_CONFIG1_RESTORE, CM_SHADOW_FREQ_CONFIG1 */ -#define OMAP4430_DPLL_CORE_SYS_REF_CLKSEL_SHIFT 1 -#define OMAP4430_DPLL_CORE_SYS_REF_CLKSEL_MASK BITFIELD(1, 1) -/* * Used by CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO, * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
@@ -687,9 +694,9 @@#define OMAP4430_DPLL_DIV_0_7_MASK BITFIELD(0, 7)/* -* Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_USB, -* CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, -* CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU +* Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_CORE_RESTORE, +* CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY, +* CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU */ #define OMAP4430_DPLL_DRIFTGUARD_EN_SHIFT 8#define OMAP4430_DPLL_DRIFTGUARD_EN_MASK BITFIELD(8, 8)
@@ -762,7 +769,11 @@#define OMAP4430_DPLL_SSC_EN_SHIFT 12#define OMAP4430_DPLL_SSC_EN_MASK BITFIELD(12, 12) -/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */ +/* +* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP, +* CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP_RESTORE, +* CM_L4PER_DYNAMICDEP_RESTORE +*/ #define OMAP4430_DSS_DYNDEP_SHIFT 8#define OMAP4430_DSS_DYNDEP_MASK BITFIELD(8, 8)
@@ -773,7 +784,7 @@#define OMAP4430_DSS_STATDEP_SHIFT 8#define OMAP4430_DSS_STATDEP_MASK BITFIELD(8, 8) -/* Used by CM_L3_2_DYNAMICDEP */ +/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */ #define OMAP4430_DUCATI_DYNDEP_SHIFT 0#define OMAP4430_DUCATI_DYNDEP_MASK BITFIELD(0, 0)
@@ -785,7 +796,11 @@#define OMAP4430_FREQ_UPDATE_SHIFT 0#define OMAP4430_FREQ_UPDATE_MASK BITFIELD(0, 0) -/* Used by CM_L3_2_DYNAMICDEP */ +/* Used by REVISION_CM2, REVISION_CM1 */ +#define OMAP4430_FUNC_SHIFT 16 +#define OMAP4430_FUNC_MASK BITFIELD(16, 27) + +/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */ #define OMAP4430_GFX_DYNDEP_SHIFT 10#define OMAP4430_GFX_DYNDEP_MASK BITFIELD(10, 10)
@@ -793,7 +808,7 @@#define OMAP4430_GFX_STATDEP_SHIFT 10#define OMAP4430_GFX_STATDEP_MASK BITFIELD(10, 10) -/* Used by CM_SHADOW_FREQ_CONFIG2 */ +/* Used by CM_SHADOW_FREQ_CONFIG2_RESTORE, CM_SHADOW_FREQ_CONFIG2 */ #define OMAP4430_GPMC_FREQ_UPDATE_SHIFT 0#define OMAP4430_GPMC_FREQ_UPDATE_MASK BITFIELD(0, 0)
@@ -910,20 +925,19 @@#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_MASK BITFIELD(12, 12)/* -* Used by PRM_PRM_PROFILING_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, -* CM_WKUP_KEYBOARD_CLKCTRL, CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, -* CM_WKUP_SARRAM_CLKCTRL, CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, -* CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, -* CM_WKUP_WDT2_CLKCTRL, CM_EMU_DEBUGSS_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL, -* CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL, -* CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL, -* CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, -* CM_L3_2_L3_2_CLKCTRL, CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, -* CM_L4CFG_L4_CFG_CLKCTRL, CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, -* CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL, -* CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL, -* CM_MEMIF_EMIF_H2_CLKCTRL, CM_SDMA_SDMA_CLKCTRL, CM_GFX_GFX_CLKCTRL, -* CM_L4PER_ADC_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL, +* Used by CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL, +* CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL, +* CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL, +* CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL, +* CM_EMU_DEBUGSS_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, +* CM_D2D_SAD2D_FW_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL, +* CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL, +* CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL, +* CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL, +* CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_MEMIF_DMM_CLKCTRL, +* CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL, CM_MEMIF_EMIF_FW_CLKCTRL, +* CM_MEMIF_EMIF_H1_CLKCTRL, CM_MEMIF_EMIF_H2_CLKCTRL, CM_SDMA_SDMA_CLKCTRL, +* CM_GFX_GFX_CLKCTRL, CM_L4PER_ADC_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL, * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL, * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL, * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL,
@@ -947,25 +961,29 @@* CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL, * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL, CM_CAM_FDIF_CLKCTRL, * CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL, -* CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, -* CM_L3INSTR_L3_3_CLKCTRL_RESTORE, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE, -* CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE, CM_L4PER_GPIO2_CLKCTRL_RESTORE, -* CM_L4PER_GPIO3_CLKCTRL_RESTORE, CM_L4PER_GPIO4_CLKCTRL_RESTORE, -* CM_L4PER_GPIO5_CLKCTRL_RESTORE, CM_L4PER_GPIO6_CLKCTRL_RESTORE, -* CM_ALWON_MDMINTC_CLKCTRL, CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, -* CM_ALWON_SR_MPU_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL, CM_IVAHD_SL2_CLKCTRL, -* CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_CM2_PROFILING_CLKCTRL, -* CM_MPU_MPU_CLKCTRL, CM_TESLA_TESLA_CLKCTRL, CM1_ABE_AESS_CLKCTRL, -* CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, -* CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL, -* CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL, CM1_ABE_TIMER5_CLKCTRL, -* CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, -* CM1_ABE_WDT3_CLKCTRL, CM_CM1_PROFILING_CLKCTRL +* CM_CM2_PROFILING_CLKCTRL_RESTORE, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, +* CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, CM_L3INSTR_L3_3_CLKCTRL_RESTORE, +* CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE, CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE, +* CM_L4PER_GPIO2_CLKCTRL_RESTORE, CM_L4PER_GPIO3_CLKCTRL_RESTORE, +* CM_L4PER_GPIO4_CLKCTRL_RESTORE, CM_L4PER_GPIO5_CLKCTRL_RESTORE, +* CM_L4PER_GPIO6_CLKCTRL_RESTORE, CM_ALWON_MDMINTC_CLKCTRL, +* CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL, +* CM_IVAHD_IVAHD_CLKCTRL, CM_IVAHD_SL2_CLKCTRL, CM_DSS_DEISS_CLKCTRL, +* CM_DSS_DSS_CLKCTRL, CM_CM2_PROFILING_CLKCTRL, CM_MPU_MPU_CLKCTRL, +* CM_TESLA_TESLA_CLKCTRL, CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, +* CM1_ABE_L4ABE_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, +* CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, +* CM1_ABE_SLIMBUS_CLKCTRL, CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, +* CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, +* CM_CM1_PROFILING_CLKCTRL_RESTORE, CM_CM1_PROFILING_CLKCTRL */ #define OMAP4430_IDLEST_SHIFT 16#define OMAP4430_IDLEST_MASK BITFIELD(16, 17) -/* Used by CM_DUCATI_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */ +/* +* Used by CM_DUCATI_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, +* CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP_RESTORE +*/ #define OMAP4430_ISS_DYNDEP_SHIFT 9#define OMAP4430_ISS_DYNDEP_MASK BITFIELD(9, 9)
@@ -976,33 +994,39 @@#define OMAP4430_ISS_STATDEP_SHIFT 9#define OMAP4430_ISS_STATDEP_MASK BITFIELD(9, 9) -/* Used by CM_L3_2_DYNAMICDEP, CM_TESLA_DYNAMICDEP */ +/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_TESLA_DYNAMICDEP */ #define OMAP4430_IVAHD_DYNDEP_SHIFT 2#define OMAP4430_IVAHD_DYNDEP_MASK BITFIELD(2, 2)/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, * CM_GFX_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP, -* CM_SDMA_STATICDEP_RESTORE, CM_DSS_STATICDEP, CM_MPU_STATICDEP, -* CM_TESLA_STATICDEP +* CM_D2D_STATICDEP_RESTORE, CM_SDMA_STATICDEP_RESTORE, CM_DSS_STATICDEP, +* CM_MPU_STATICDEP, CM_TESLA_STATICDEP */ #define OMAP4430_IVAHD_STATDEP_SHIFT 2#define OMAP4430_IVAHD_STATDEP_MASK BITFIELD(2, 2) -/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */ +/* +* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP, +* CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP_RESTORE, +* CM_L4PER_DYNAMICDEP_RESTORE +*/ #define OMAP4430_L3INIT_DYNDEP_SHIFT 7#define OMAP4430_L3INIT_DYNDEP_MASK BITFIELD(7, 7)/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, -* CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP, CM_TESLA_STATICDEP +* CM_D2D_STATICDEP_RESTORE, CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP, +* CM_TESLA_STATICDEP */ #define OMAP4430_L3INIT_STATDEP_SHIFT 7#define OMAP4430_L3INIT_STATDEP_MASK BITFIELD(7, 7)/* * Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, -* CM_DSS_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP +* CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP_RESTORE, CM_DSS_DYNAMICDEP, +* CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP */ #define OMAP4430_L3_1_DYNDEP_SHIFT 5#define OMAP4430_L3_1_DYNDEP_MASK BITFIELD(5, 5)
@@ -1010,8 +1034,8 @@/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, * CM_GFX_STATICDEP, CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP, -* CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, CM_DSS_STATICDEP, -* CM_MPU_STATICDEP, CM_TESLA_STATICDEP +* CM_D2D_STATICDEP_RESTORE, CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, +* CM_DSS_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */ #define OMAP4430_L3_1_STATDEP_SHIFT 5#define OMAP4430_L3_1_STATDEP_MASK BITFIELD(5, 5)
@@ -1020,7 +1044,8 @@* Used by CM_EMU_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP, * CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_SDMA_DYNAMICDEP, * CM_GFX_DYNAMICDEP, CM_L4SEC_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, -* CM_CAM_DYNAMICDEP, CM_IVAHD_DYNAMICDEP +* CM_CAM_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE, CM_L3_1_DYNAMICDEP_RESTORE, +* CM_L4CFG_DYNAMICDEP_RESTORE, CM_IVAHD_DYNAMICDEP */ #define OMAP4430_L3_2_DYNDEP_SHIFT 6#define OMAP4430_L3_2_DYNDEP_MASK BITFIELD(6, 6)
@@ -1028,37 +1053,40 @@/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, * CM_GFX_STATICDEP, CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP, -* CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, CM_DSS_STATICDEP, -* CM_MPU_STATICDEP, CM_TESLA_STATICDEP +* CM_D2D_STATICDEP_RESTORE, CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, +* CM_DSS_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */ #define OMAP4430_L3_2_STATDEP_SHIFT 6#define OMAP4430_L3_2_STATDEP_MASK BITFIELD(6, 6) -/* Used by CM_L3_1_DYNAMICDEP */ +/* Used by CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE */ #define OMAP4430_L4CFG_DYNDEP_SHIFT 12#define OMAP4430_L4CFG_DYNDEP_MASK BITFIELD(12, 12)/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, -* CM_L3INIT_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP, -* CM_TESLA_STATICDEP +* CM_L3INIT_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_SDMA_STATICDEP_RESTORE, +* CM_MPU_STATICDEP, CM_TESLA_STATICDEP */ #define OMAP4430_L4CFG_STATDEP_SHIFT 12#define OMAP4430_L4CFG_STATDEP_MASK BITFIELD(12, 12) -/* Used by CM_L3_2_DYNAMICDEP */ +/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */ #define OMAP4430_L4PER_DYNDEP_SHIFT 13#define OMAP4430_L4PER_DYNDEP_MASK BITFIELD(13, 13)/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, -* CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_SDMA_STATICDEP_RESTORE, -* CM_MPU_STATICDEP, CM_TESLA_STATICDEP +* CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_D2D_STATICDEP_RESTORE, +* CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */ #define OMAP4430_L4PER_STATDEP_SHIFT 13#define OMAP4430_L4PER_STATDEP_MASK BITFIELD(13, 13) -/* Used by CM_L3_2_DYNAMICDEP, CM_L4PER_DYNAMICDEP */ +/* +* Used by CM_L3_2_DYNAMICDEP, CM_L4PER_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, +* CM_L4PER_DYNAMICDEP_RESTORE +*/ #define OMAP4430_L4SEC_DYNDEP_SHIFT 14#define OMAP4430_L4SEC_DYNDEP_MASK BITFIELD(14, 14)
@@ -1069,7 +1097,7 @@#define OMAP4430_L4SEC_STATDEP_SHIFT 14#define OMAP4430_L4SEC_STATDEP_MASK BITFIELD(14, 14) -/* Used by CM_L4CFG_DYNAMICDEP */ +/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */ #define OMAP4430_L4WKUP_DYNDEP_SHIFT 15#define OMAP4430_L4WKUP_DYNDEP_MASK BITFIELD(15, 15)
@@ -1082,7 +1110,8 @@/* * Used by CM_D2D_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, -* CM_MPU_DYNAMICDEP +* CM_D2D_DYNAMICDEP_RESTORE, CM_L3_1_DYNAMICDEP_RESTORE, +* CM_L4CFG_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP */ #define OMAP4430_MEMIF_DYNDEP_SHIFT 4#define OMAP4430_MEMIF_DYNDEP_MASK BITFIELD(4, 4)
@@ -1090,8 +1119,8 @@/* * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, * CM_GFX_STATICDEP, CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP, -* CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, CM_DSS_STATICDEP, -* CM_MPU_STATICDEP, CM_TESLA_STATICDEP +* CM_D2D_STATICDEP_RESTORE, CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, +* CM_DSS_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */ #define OMAP4430_MEMIF_STATDEP_SHIFT 4#define OMAP4430_MEMIF_STATDEP_MASK BITFIELD(4, 4)
@@ -1117,20 +1146,19 @@#define OMAP4430_MODFREQDIV_MANTISSA_MASK BITFIELD(0, 6)/* -* Used by PRM_PRM_PROFILING_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, -* CM_WKUP_KEYBOARD_CLKCTRL, CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, -* CM_WKUP_SARRAM_CLKCTRL, CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, -* CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, -* CM_WKUP_WDT2_CLKCTRL, CM_EMU_DEBUGSS_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL, -* CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL, -* CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL, -* CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, -* CM_L3_2_L3_2_CLKCTRL, CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, -* CM_L4CFG_L4_CFG_CLKCTRL, CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, -* CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL, -* CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL, -* CM_MEMIF_EMIF_H2_CLKCTRL, CM_SDMA_SDMA_CLKCTRL, CM_GFX_GFX_CLKCTRL, -* CM_L4PER_ADC_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL, +* Used by CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL, +* CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL, +* CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL, +* CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL, +* CM_EMU_DEBUGSS_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, +* CM_D2D_SAD2D_FW_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL, +* CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL, +* CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL, +* CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL, +* CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_MEMIF_DMM_CLKCTRL, +* CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL, CM_MEMIF_EMIF_FW_CLKCTRL, +* CM_MEMIF_EMIF_H1_CLKCTRL, CM_MEMIF_EMIF_H2_CLKCTRL, CM_SDMA_SDMA_CLKCTRL, +* CM_GFX_GFX_CLKCTRL, CM_L4PER_ADC_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL, * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL, * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL, * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL,
@@ -1154,20 +1182,21 @@* CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL, * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL, CM_CAM_FDIF_CLKCTRL, * CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL, -* CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, -* CM_L3INSTR_L3_3_CLKCTRL_RESTORE, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE, -* CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE, CM_L4PER_GPIO2_CLKCTRL_RESTORE, -* CM_L4PER_GPIO3_CLKCTRL_RESTORE, CM_L4PER_GPIO4_CLKCTRL_RESTORE, -* CM_L4PER_GPIO5_CLKCTRL_RESTORE, CM_L4PER_GPIO6_CLKCTRL_RESTORE, -* CM_ALWON_MDMINTC_CLKCTRL, CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, -* CM_ALWON_SR_MPU_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL, CM_IVAHD_SL2_CLKCTRL, -* CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_CM2_PROFILING_CLKCTRL, -* CM_MPU_MPU_CLKCTRL, CM_TESLA_TESLA_CLKCTRL, CM1_ABE_AESS_CLKCTRL, -* CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, -* CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL, -* CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL, CM1_ABE_TIMER5_CLKCTRL, -* CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, -* CM1_ABE_WDT3_CLKCTRL, CM_CM1_PROFILING_CLKCTRL +* CM_CM2_PROFILING_CLKCTRL_RESTORE, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, +* CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, CM_L3INSTR_L3_3_CLKCTRL_RESTORE, +* CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE, CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE, +* CM_L4PER_GPIO2_CLKCTRL_RESTORE, CM_L4PER_GPIO3_CLKCTRL_RESTORE, +* CM_L4PER_GPIO4_CLKCTRL_RESTORE, CM_L4PER_GPIO5_CLKCTRL_RESTORE, +* CM_L4PER_GPIO6_CLKCTRL_RESTORE, CM_ALWON_MDMINTC_CLKCTRL, +* CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL, +* CM_IVAHD_IVAHD_CLKCTRL, CM_IVAHD_SL2_CLKCTRL, CM_DSS_DEISS_CLKCTRL, +* CM_DSS_DSS_CLKCTRL, CM_CM2_PROFILING_CLKCTRL, CM_MPU_MPU_CLKCTRL, +* CM_TESLA_TESLA_CLKCTRL, CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, +* CM1_ABE_L4ABE_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, +* CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, +* CM1_ABE_SLIMBUS_CLKCTRL, CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, +* CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, +* CM_CM1_PROFILING_CLKCTRL_RESTORE, CM_CM1_PROFILING_CLKCTRL */ #define OMAP4430_MODULEMODE_SHIFT 0#define OMAP4430_MODULEMODE_MASK BITFIELD(0, 1)
@@ -1180,9 +1209,9 @@#define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT 8#define OMAP4430_OPTFCLKEN_BGAP_32K_MASK BITFIELD(8, 8) -/* Used by CM_L3INIT_USBPHYOCP2SCP_CLKCTRL */ -#define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 9 -#define OMAP4430_OPTFCLKEN_CLK32K_MASK BITFIELD(9, 9) +/* Used by CM_ALWON_USBPHY_CLKCTRL */ +#define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 8 +#define OMAP4430_OPTFCLKEN_CLK32K_MASK BITFIELD(8, 8)/* Used by CM_CAM_ISS_CLKCTRL */ #define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT 8
@@ -1206,6 +1235,10 @@#define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT 8#define OMAP4430_OPTFCLKEN_DSSCLK_MASK BITFIELD(8, 8) +/* Used by CM_WKUP_USIM_CLKCTRL */ +#define OMAP4430_OPTFCLKEN_FCLK_SHIFT 8 +#define OMAP4430_OPTFCLKEN_FCLK_MASK BITFIELD(8, 8) +/* Used by CM1_ABE_SLIMBUS_CLKCTRL */ #define OMAP4430_OPTFCLKEN_FCLK0_SHIFT 8#define OMAP4430_OPTFCLKEN_FCLK0_MASK BITFIELD(8, 8)
@@ -1298,7 +1331,7 @@#define OMAP4430_OPTFCLKEN_XCLK_SHIFT 8#define OMAP4430_OPTFCLKEN_XCLK_MASK BITFIELD(8, 8) -/* Used by CM_EMU_OVERRIDE_DPLL_PER, CM_EMU_OVERRIDE_DPLL_CORE */ +/* Used by CM_EMU_OVERRIDE_DPLL_CORE */ #define OMAP4430_OVERRIDE_ENABLE_SHIFT 19#define OMAP4430_OVERRIDE_ENABLE_MASK BITFIELD(19, 19)
@@ -1318,14 +1351,6 @@#define OMAP4430_PERF_REQ_SHIFT 0#define OMAP4430_PERF_REQ_MASK BITFIELD(0, 7) -/* Used by CM_EMU_OVERRIDE_DPLL_PER */ -#define OMAP4430_PER_DPLL_EMU_DIV_SHIFT 0 -#define OMAP4430_PER_DPLL_EMU_DIV_MASK BITFIELD(0, 6) - -/* Used by CM_EMU_OVERRIDE_DPLL_PER */ -#define OMAP4430_PER_DPLL_EMU_MULT_SHIFT 8 -#define OMAP4430_PER_DPLL_EMU_MULT_MASK BITFIELD(8, 18) -/* Used by CM_RESTORE_ST */ #define OMAP4430_PHASE1_COMPLETED_SHIFT 0#define OMAP4430_PHASE1_COMPLETED_MASK BITFIELD(0, 0)
@@ -1346,13 +1371,13 @@#define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT 22#define OMAP4430_PMD_TRACE_MUX_CTRL_MASK BITFIELD(22, 23) -/* Used by CM_DYN_DEP_PRESCAL */ +/* Used by CM_DYN_DEP_PRESCAL_RESTORE, CM_DYN_DEP_PRESCAL */ #define OMAP4430_PRESCAL_SHIFT 0#define OMAP4430_PRESCAL_MASK BITFIELD(0, 5)/* Used by REVISION_CM2, REVISION_CM1 */ -#define OMAP4430_REV_SHIFT 0 -#define OMAP4430_REV_MASK BITFIELD(0, 7) +#define OMAP4430_R_RTL_SHIFT 11 +#define OMAP4430_R_RTL_MASK BITFIELD(11, 15)/* * Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
@@ -1365,7 +1390,11 @@#define OMAP4430_SCALE_FCLK_SHIFT 0#define OMAP4430_SCALE_FCLK_MASK BITFIELD(0, 0) -/* Used by CM_L4CFG_DYNAMICDEP */ +/* Used by REVISION_CM2, REVISION_CM1 */ +#define OMAP4430_SCHEME_SHIFT 30 +#define OMAP4430_SCHEME_MASK BITFIELD(30, 31) + +/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */ #define OMAP4430_SDMA_DYNDEP_SHIFT 11#define OMAP4430_SDMA_DYNDEP_MASK BITFIELD(11, 11)
@@ -1452,11 +1481,19 @@#define OMAP4430_ST_HSDIVIDER_CLKOUT4_SHIFT 9#define OMAP4430_ST_HSDIVIDER_CLKOUT4_MASK BITFIELD(9, 9) +/* +* Used by CM_IDLEST_DPLL_PER, CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB, +* CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY, +* CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU +*/ +#define OMAP4430_ST_MN_BYPASS_SHIFT 8 +#define OMAP4430_ST_MN_BYPASS_MASK BITFIELD(8, 8) +/* Used by CM_SYS_CLKSEL */ #define OMAP4430_SYS_CLKSEL_SHIFT 0#define OMAP4430_SYS_CLKSEL_MASK BITFIELD(0, 2) -/* Used by CM_L4CFG_DYNAMICDEP */ +/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */ #define OMAP4430_TESLA_DYNDEP_SHIFT 1#define OMAP4430_TESLA_DYNDEP_MASK BITFIELD(1, 1)
@@ -1467,8 +1504,18 @@/* * Used by CM_EMU_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP, * CM_L3_1_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, -* CM_L4PER_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP +* CM_L4PER_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE, CM_L3_1_DYNAMICDEP_RESTORE, +* CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP_RESTORE, +* CM_L4PER_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP */ #define OMAP4430_WINDOWSIZE_SHIFT 24#define OMAP4430_WINDOWSIZE_MASK BITFIELD(24, 27) + +/* Used by REVISION_CM2, REVISION_CM1 */ +#define OMAP4430_X_MAJOR_SHIFT 8 +#define OMAP4430_X_MAJOR_MASK BITFIELD(8, 10) + +/* Used by REVISION_CM2, REVISION_CM1 */ +#define OMAP4430_Y_MINOR_SHIFT 0 +#define OMAP4430_Y_MINOR_MASK BITFIELD(0, 5)#endif
arch/arm/mach-omap2/prm-regbits-44xx.h +155 -39
316 lines not on this page · raw message
Signature · 6 lines
1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/5 OMAP4: PM: Define additional registers for ES2
4430 ES2 has a few new registers added and a few modified from ES1. This patch adds all the register changes in PRM and CM for OMAP4430 ES2.
--- arch/arm/mach-omap2/cm44xx.h | 90 ++++++++++++++++++++++++++++++++++++++++- arch/arm/mach-omap2/prm44xx.h | 14 ++++--- 2 files changed, 96 insertions(+), 8 deletions(-)
arch/arm/mach-omap2/cm44xx.h +88 -2
@@ -195,6 +195,42 @@#define OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET 0x0088#define OMAP4430_CM1_ABE_WDT3_CLKCTRL OMAP44XX_CM1_REGADDR(OMAP4430_CM1_ABE_MOD, 0x0088) +/* CM1.RESTORE_CM1 register offsets */ +#define OMAP4_CM_CLKSEL_CORE_RESTORE_OFFSET 0x0000 +#define OMAP4430_CM_CLKSEL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0000) +#define OMAP4_CM_DIV_M2_DPLL_CORE_RESTORE_OFFSET 0x0004 +#define OMAP4430_CM_DIV_M2_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0004) +#define OMAP4_CM_DIV_M3_DPLL_CORE_RESTORE_OFFSET 0x0008 +#define OMAP4430_CM_DIV_M3_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0008) +#define OMAP4_CM_DIV_M4_DPLL_CORE_RESTORE_OFFSET 0x000c +#define OMAP4430_CM_DIV_M4_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x000c) +#define OMAP4_CM_DIV_M5_DPLL_CORE_RESTORE_OFFSET 0x0010 +#define OMAP4430_CM_DIV_M5_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0010) +#define OMAP4_CM_DIV_M6_DPLL_CORE_RESTORE_OFFSET 0x0014 +#define OMAP4430_CM_DIV_M6_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0014) +#define OMAP4_CM_DIV_M7_DPLL_CORE_RESTORE_OFFSET 0x0018 +#define OMAP4430_CM_DIV_M7_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0018) +#define OMAP4_CM_CLKSEL_DPLL_CORE_RESTORE_OFFSET 0x001c +#define OMAP4430_CM_CLKSEL_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x001c) +#define OMAP4_CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE_OFFSET 0x0020 +#define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0020) +#define OMAP4_CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE_OFFSET 0x0024 +#define OMAP4430_CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0024) +#define OMAP4_CM_CLKMODE_DPLL_CORE_RESTORE_OFFSET 0x0028 +#define OMAP4430_CM_CLKMODE_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0028) +#define OMAP4_CM_SHADOW_FREQ_CONFIG2_RESTORE_OFFSET 0x002c +#define OMAP4430_CM_SHADOW_FREQ_CONFIG2_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x002c) +#define OMAP4_CM_SHADOW_FREQ_CONFIG1_RESTORE_OFFSET 0x0030 +#define OMAP4430_CM_SHADOW_FREQ_CONFIG1_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0030) +#define OMAP4_CM_AUTOIDLE_DPLL_CORE_RESTORE_OFFSET 0x0034 +#define OMAP4430_CM_AUTOIDLE_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0034) +#define OMAP4_CM_MPU_CLKSTCTRL_RESTORE_OFFSET 0x0038 +#define OMAP4430_CM_MPU_CLKSTCTRL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0038) +#define OMAP4_CM_CM1_PROFILING_CLKCTRL_RESTORE_OFFSET 0x003c +#define OMAP4430_CM_CM1_PROFILING_CLKCTRL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x003c) +#define OMAP4_CM_DYN_DEP_PRESCAL_RESTORE_OFFSET 0x0040 +#define OMAP4430_CM_DYN_DEP_PRESCAL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0040) +/* CM2 */ /* CM2.OCP_SOCKET_CM2 register offsets */
@@ -252,8 +288,6 @@#define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0068)#define OMAP4_CM_SSC_MODFREQDIV_DPLL_PER_OFFSET 0x006c#define OMAP4430_CM_SSC_MODFREQDIV_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x006c) -#define OMAP4_CM_EMU_OVERRIDE_DPLL_PER_OFFSET 0x0070 -#define OMAP4430_CM_EMU_OVERRIDE_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0070)#define OMAP4_CM_CLKMODE_DPLL_USB_OFFSET 0x0080#define OMAP4430_CM_CLKMODE_DPLL_USB OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0080)#define OMAP4_CM_IDLEST_DPLL_USB_OFFSET 0x0084
@@ -296,6 +330,8 @@#define OMAP4430_CM_ALWON_SR_IVA_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0030)#define OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET 0x0038#define OMAP4430_CM_ALWON_SR_CORE_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0038) +#define OMAP4_CM_ALWON_USBPHY_CLKCTRL_OFFSET 0x0040 +#define OMAP4430_CM_ALWON_USBPHY_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0040)/* CM2.CORE_CM2 register offsets */ #define OMAP4_CM_L3_1_CLKSTCTRL_OFFSET 0x0000
@@ -578,4 +614,54 @@#define OMAP4430_CM_CEFUSE_CLKSTCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_MOD, 0x0000)#define OMAP4_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET 0x0020#define OMAP4430_CM_CEFUSE_CEFUSE_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_MOD, 0x0020) + +/* CM2.RESTORE_CM2 register offsets */ +#define OMAP4_CM_L3_1_CLKSTCTRL_RESTORE_OFFSET 0x0000 +#define OMAP4430_CM_L3_1_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0000) +#define OMAP4_CM_L3_2_CLKSTCTRL_RESTORE_OFFSET 0x0004 +#define OMAP4430_CM_L3_2_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0004) +#define OMAP4_CM_L4CFG_CLKSTCTRL_RESTORE_OFFSET 0x0008 +#define OMAP4430_CM_L4CFG_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0008) +#define OMAP4_CM_MEMIF_CLKSTCTRL_RESTORE_OFFSET 0x000c +#define OMAP4430_CM_MEMIF_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x000c) +#define OMAP4_CM_L4PER_CLKSTCTRL_RESTORE_OFFSET 0x0010 +#define OMAP4430_CM_L4PER_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0010) +#define OMAP4_CM_L3INIT_CLKSTCTRL_RESTORE_OFFSET 0x0014 +#define OMAP4430_CM_L3INIT_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0014) +#define OMAP4_CM_L3INSTR_L3_3_CLKCTRL_RESTORE_OFFSET 0x0018 +#define OMAP4430_CM_L3INSTR_L3_3_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0018) +#define OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE_OFFSET 0x001c +#define OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x001c) +#define OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE_OFFSET 0x0020 +#define OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0020) +#define OMAP4_CM_CM2_PROFILING_CLKCTRL_RESTORE_OFFSET 0x0024 +#define OMAP4430_CM_CM2_PROFILING_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0024) +#define OMAP4_CM_D2D_STATICDEP_RESTORE_OFFSET 0x0028 +#define OMAP4430_CM_D2D_STATICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0028) +#define OMAP4_CM_L3_1_DYNAMICDEP_RESTORE_OFFSET 0x002c +#define OMAP4430_CM_L3_1_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x002c) +#define OMAP4_CM_L3_2_DYNAMICDEP_RESTORE_OFFSET 0x0030 +#define OMAP4430_CM_L3_2_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0030) +#define OMAP4_CM_D2D_DYNAMICDEP_RESTORE_OFFSET 0x0034 +#define OMAP4430_CM_D2D_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0034) +#define OMAP4_CM_L4CFG_DYNAMICDEP_RESTORE_OFFSET 0x0038 +#define OMAP4430_CM_L4CFG_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0038) +#define OMAP4_CM_L4PER_DYNAMICDEP_RESTORE_OFFSET 0x003c +#define OMAP4430_CM_L4PER_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x003c) +#define OMAP4_CM_L4PER_GPIO2_CLKCTRL_RESTORE_OFFSET 0x0040 +#define OMAP4430_CM_L4PER_GPIO2_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0040) +#define OMAP4_CM_L4PER_GPIO3_CLKCTRL_RESTORE_OFFSET 0x0044 +#define OMAP4430_CM_L4PER_GPIO3_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0044) +#define OMAP4_CM_L4PER_GPIO4_CLKCTRL_RESTORE_OFFSET 0x0048 +#define OMAP4430_CM_L4PER_GPIO4_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0048) +#define OMAP4_CM_L4PER_GPIO5_CLKCTRL_RESTORE_OFFSET 0x004c +#define OMAP4430_CM_L4PER_GPIO5_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x004c) +#define OMAP4_CM_L4PER_GPIO6_CLKCTRL_RESTORE_OFFSET 0x0050 +#define OMAP4430_CM_L4PER_GPIO6_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0050) +#define OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE_OFFSET 0x0054 +#define OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0054) +#define OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE_OFFSET 0x0058 +#define OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0058) +#define OMAP4_CM_SDMA_STATICDEP_RESTORE_OFFSET 0x005c +#define OMAP4430_CM_SDMA_STATICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x005c)#endif
arch/arm/mach-omap2/prm44xx.h +8 -6
@@ -44,14 +44,12 @@#define OMAP4430_PRM_IRQSTATUS_TESLA OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0030)#define OMAP4_PRM_IRQENABLE_TESLA_OFFSET 0x0038#define OMAP4430_PRM_IRQENABLE_TESLA OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0038) -#define OMAP4_PRM_PRM_PROFILING_CLKCTRL_OFFSET 0x0040 -#define OMAP4430_PRM_PRM_PROFILING_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0040) +#define OMAP4_CM_PRM_PROFILING_CLKCTRL_OFFSET 0x0040 +#define OMAP4430_CM_PRM_PROFILING_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0040)/* PRM.CKGEN_PRM register offsets */ #define OMAP4_CM_ABE_DSS_SYS_CLKSEL_OFFSET 0x0000#define OMAP4430_CM_ABE_DSS_SYS_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0000) -#define OMAP4_CM_DPLL_SYS_REF_CLKSEL_OFFSET 0x0004 -#define OMAP4430_CM_DPLL_SYS_REF_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0004)#define OMAP4_CM_L4_WKUP_CLKSEL_OFFSET 0x0008#define OMAP4430_CM_L4_WKUP_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0008)#define OMAP4_CM_ABE_PLL_REF_CLKSEL_OFFSET 0x000c
@@ -686,8 +684,8 @@#define OMAP4430_PRM_LDO_ABB_IVA_SETUP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00d8)#define OMAP4_PRM_LDO_ABB_IVA_CTRL_OFFSET 0x00dc#define OMAP4430_PRM_LDO_ABB_IVA_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00dc) -#define OMAP4_PRM_LDO_BANDGAP_CTRL_OFFSET 0x00e0 -#define OMAP4430_PRM_LDO_BANDGAP_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e0) +#define OMAP4_PRM_LDO_BANDGAP_SETUP_OFFSET 0x00e0 +#define OMAP4430_PRM_LDO_BANDGAP_SETUP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e0)#define OMAP4_PRM_DEVICE_OFF_CTRL_OFFSET 0x00e4#define OMAP4430_PRM_DEVICE_OFF_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e4)#define OMAP4_PRM_PHASE1_CNDP_OFFSET 0x00e8
@@ -698,6 +696,8 @@#define OMAP4430_PRM_PHASE2B_CNDP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f0)#define OMAP4_PRM_MODEM_IF_CTRL_OFFSET 0x00f4#define OMAP4430_PRM_MODEM_IF_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f4) +#define OMAP4_PRM_VC_ERRST_OFFSET 0x00f8 +#define OMAP4430_PRM_VC_ERRST OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f8)/* * PRCM_MPU
@@ -715,6 +715,8 @@/* PRCM_MPU.DEVICE_PRM register offsets */ #define OMAP4_PRCM_MPU_PRM_RSTST_OFFSET 0x0000#define OMAP4430_PRCM_MPU_PRM_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD, 0x0000) +#define OMAP4_PRCM_MPU_PRM_PSCON_COUNT_OFFSET 0x0004 +#define OMAP4430_PRCM_MPU_PRM_PSCON_COUNT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD, 0x0004)/* PRCM_MPU.CPU0 register offsets */ #define OMAP4_PM_CPU0_PWRSTCTRL_OFFSET 0x0000
Signature · 6 lines
1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 3/5 OMAP4: clocks: Update clock tree for ES2
This patch updates the clock tree with all the
changes in OMAP4430 ES2.
clock nodes added
-1- tie_low_clock_ck
-2- abe_dpll_bypass_clk_mux_ck
clock nodes deleted
-1- dpll_sys_ref_clk
-2- per_sgx_fclk
-3- usbphyocp2scp_ick
--- arch/arm/mach-omap2/clock44xx_data.c | 168 ++++++++++++++-------------------- 1 files changed, 70 insertions(+), 98 deletions(-)
arch/arm/mach-omap2/clock44xx_data.c +70 -98
@@ -175,21 +175,27 @@ static struct clk sys_clkin_ck = { .recalc = &omap2_clksel_recalc, }; +static struct clk tie_low_clock_ck = { + .name ="tie_low_clock_ck" , + .rate =0 , + .ops = &clkops_null, +}; +static struct clk utmi_phy_clkout_ck = { .name ="utmi_phy_clkout_ck" , - .rate =12000000 , + .rate =60000000 , .ops = &clkops_null, };static struct clk xclk60mhsp1_ck = { .name ="xclk60mhsp1_ck" , - .rate =12000000 , + .rate =60000000 , .ops = &clkops_null, };static struct clk xclk60mhsp2_ck = { .name ="xclk60mhsp2_ck" , - .rate =12000000 , + .rate =60000000 , .ops = &clkops_null, };
@@ -201,39 +207,23 @@ static struct clk xclk60motg_ck = {/* Module clocks and DPLL outputs */ -static const struct clksel_rate div2_1to2_rates[] = { - { .div =1 , .val =0 , .flags =RATE_IN_4430 }, - { .div =2 , .val =1 , .flags =RATE_IN_4430 }, - { .div =0 }, -}; - -static const struct clksel dpll_sys_ref_clk_div[] = { - { .parent = &sys_clkin_ck, .rates = div2_1to2_rates }, +static const struct clksel abe_dpll_bypass_clk_mux_sel[] = { + { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, + { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL }, }; -static struct clk dpll_sys_ref_clk = { - .name ="dpll_sys_ref_clk" , +static struct clk abe_dpll_bypass_clk_mux_ck = { + .name ="abe_dpll_bypass_clk_mux_ck" , .parent = &sys_clkin_ck, - .clksel = dpll_sys_ref_clk_div, - .clksel_reg =OMAP4430_CM_DPLL_SYS_REF_CLKSEL , - .clksel_mask =OMAP4430_CLKSEL_0_0_MASK , .ops = &clkops_null, - .recalc = &omap2_clksel_recalc, - .round_rate = &omap2_clksel_round_rate, - .set_rate = &omap2_clksel_set_rate, -}; - -static const struct clksel abe_dpll_refclk_mux_sel[] = { - { .parent = &dpll_sys_ref_clk, .rates = div_1_0_rates }, - { .parent = &sys_32k_ck, .rates = div_1_1_rates }, - { .parent =NULL }, + .recalc = &followparent_recalc, };static struct clk abe_dpll_refclk_mux_ck = { .name ="abe_dpll_refclk_mux_ck" , - .parent = &dpll_sys_ref_clk, - .clksel = abe_dpll_refclk_mux_sel, + .parent = &sys_clkin_ck, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_ABE_PLL_REF_CLKSEL , .clksel_mask =OMAP4430_CLKSEL_0_0_MASK ,
@@ -244,7 +234,7 @@ static struct clk abe_dpll_refclk_mux_ck = {/* DPLL_ABE */ static struct dpll_data dpll_abe_dd = { .mult_div1_reg =OMAP4430_CM_CLKSEL_DPLL_ABE , - .clk_bypass = &sys_clkin_ck, + .clk_bypass = &abe_dpll_bypass_clk_mux_ck, .clk_ref = &abe_dpll_refclk_mux_ck, .control_reg =OMAP4430_CM_CLKMODE_DPLL_ABE , .modes = (1 <<DPLL_LOW_POWER_BYPASS ) | (1 <<DPLL_LOCKED ),
@@ -310,6 +300,12 @@ static struct clk abe_clk = { .set_rate = &omap2_clksel_set_rate, }; +static const struct clksel_rate div2_1to2_rates[] = { + { .div =1 , .val =0 , .flags =RATE_IN_4430 }, + { .div =2 , .val =1 , .flags =RATE_IN_4430 }, + { .div =0 }, +}; +static const struct clksel aess_fclk_div[] = { { .parent = &abe_clk, .rates = div2_1to2_rates }, { .parent =NULL },
@@ -380,14 +376,14 @@ static struct clk dpll_abe_m3_ck = { };static const struct clksel core_hsd_byp_clk_mux_sel[] = { - { .parent = &dpll_sys_ref_clk, .rates = div_1_0_rates }, + { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_abe_m3_ck, .rates = div_1_1_rates }, { .parent =NULL }, };static struct clk core_hsd_byp_clk_mux_ck = { .name ="core_hsd_byp_clk_mux_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .clksel = core_hsd_byp_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_CLKSEL_DPLL_CORE ,
@@ -400,7 +396,7 @@ static struct clk core_hsd_byp_clk_mux_ck = {static struct dpll_data dpll_core_dd = { .mult_div1_reg =OMAP4430_CM_CLKSEL_DPLL_CORE , .clk_bypass = &core_hsd_byp_clk_mux_ck, - .clk_ref = &dpll_sys_ref_clk, + .clk_ref = &sys_clkin_ck, .control_reg =OMAP4430_CM_CLKMODE_DPLL_CORE , .modes = (1 <<DPLL_LOW_POWER_BYPASS ) | (1 <<DPLL_LOCKED ), .autoidle_reg =OMAP4430_CM_AUTOIDLE_DPLL_CORE ,
@@ -418,7 +414,7 @@ static struct dpll_data dpll_core_dd = {static struct clk dpll_core_ck = { .name ="dpll_core_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .dpll_data = &dpll_core_dd, .init = &omap2_init_dpll_parent, .ops = &clkops_null,
@@ -596,14 +592,14 @@ static struct clk dpll_core_m7_ck = { };static const struct clksel iva_hsd_byp_clk_mux_sel[] = { - { .parent = &dpll_sys_ref_clk, .rates = div_1_0_rates }, + { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &div_iva_hs_clk, .rates = div_1_1_rates }, { .parent =NULL }, };static struct clk iva_hsd_byp_clk_mux_ck = { .name ="iva_hsd_byp_clk_mux_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .ops = &clkops_null, .recalc = &followparent_recalc, };
@@ -612,7 +608,7 @@ static struct clk iva_hsd_byp_clk_mux_ck = {static struct dpll_data dpll_iva_dd = { .mult_div1_reg =OMAP4430_CM_CLKSEL_DPLL_IVA , .clk_bypass = &iva_hsd_byp_clk_mux_ck, - .clk_ref = &dpll_sys_ref_clk, + .clk_ref = &sys_clkin_ck, .control_reg =OMAP4430_CM_CLKMODE_DPLL_IVA , .modes = (1 <<DPLL_LOW_POWER_BYPASS ) | (1 <<DPLL_LOCKED ), .autoidle_reg =OMAP4430_CM_AUTOIDLE_DPLL_IVA ,
@@ -630,7 +626,7 @@ static struct dpll_data dpll_iva_dd = {static struct clk dpll_iva_ck = { .name ="dpll_iva_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .dpll_data = &dpll_iva_dd, .init = &omap2_init_dpll_parent, .ops = &clkops_omap3_noncore_dpll_ops,
@@ -672,7 +668,7 @@ static struct clk dpll_iva_m5_ck = {static struct dpll_data dpll_mpu_dd = { .mult_div1_reg =OMAP4430_CM_CLKSEL_DPLL_MPU , .clk_bypass = &div_mpu_hs_clk, - .clk_ref = &dpll_sys_ref_clk, + .clk_ref = &sys_clkin_ck, .control_reg =OMAP4430_CM_CLKMODE_DPLL_MPU , .modes = (1 <<DPLL_LOW_POWER_BYPASS ) | (1 <<DPLL_LOCKED ), .autoidle_reg =OMAP4430_CM_AUTOIDLE_DPLL_MPU ,
@@ -690,7 +686,7 @@ static struct dpll_data dpll_mpu_dd = {static struct clk dpll_mpu_ck = { .name ="dpll_mpu_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .dpll_data = &dpll_mpu_dd, .init = &omap2_init_dpll_parent, .ops = &clkops_omap3_noncore_dpll_ops,
@@ -724,14 +720,14 @@ static struct clk per_hs_clk_div_ck = { };static const struct clksel per_hsd_byp_clk_mux_sel[] = { - { .parent = &dpll_sys_ref_clk, .rates = div_1_0_rates }, + { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &per_hs_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL }, };static struct clk per_hsd_byp_clk_mux_ck = { .name ="per_hsd_byp_clk_mux_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .clksel = per_hsd_byp_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_CLKSEL_DPLL_PER ,
@@ -744,7 +740,7 @@ static struct clk per_hsd_byp_clk_mux_ck = {static struct dpll_data dpll_per_dd = { .mult_div1_reg =OMAP4430_CM_CLKSEL_DPLL_PER , .clk_bypass = &per_hsd_byp_clk_mux_ck, - .clk_ref = &dpll_sys_ref_clk, + .clk_ref = &sys_clkin_ck, .control_reg =OMAP4430_CM_CLKMODE_DPLL_PER , .modes = (1 <<DPLL_LOW_POWER_BYPASS ) | (1 <<DPLL_LOCKED ), .autoidle_reg =OMAP4430_CM_AUTOIDLE_DPLL_PER ,
@@ -762,7 +758,7 @@ static struct dpll_data dpll_per_dd = {static struct clk dpll_per_ck = { .name ="dpll_per_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .dpll_data = &dpll_per_dd, .init = &omap2_init_dpll_parent, .ops = &clkops_omap3_noncore_dpll_ops,
@@ -858,8 +854,8 @@ static struct clk dpll_per_m7_ck = {/* DPLL_UNIPRO */ static struct dpll_data dpll_unipro_dd = { .mult_div1_reg =OMAP4430_CM_CLKSEL_DPLL_UNIPRO , - .clk_bypass = &dpll_sys_ref_clk, - .clk_ref = &dpll_sys_ref_clk, + .clk_bypass = &sys_clkin_ck, + .clk_ref = &sys_clkin_ck, .control_reg =OMAP4430_CM_CLKMODE_DPLL_UNIPRO , .modes = (1 <<DPLL_LOW_POWER_BYPASS ) | (1 <<DPLL_LOCKED ), .autoidle_reg =OMAP4430_CM_AUTOIDLE_DPLL_UNIPRO ,
@@ -877,7 +873,7 @@ static struct dpll_data dpll_unipro_dd = {static struct clk dpll_unipro_ck = { .name ="dpll_unipro_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .dpll_data = &dpll_unipro_dd, .init = &omap2_init_dpll_parent, .ops = &clkops_omap3_noncore_dpll_ops,
@@ -914,7 +910,7 @@ static struct clk usb_hs_clk_div_ck = {static struct dpll_data dpll_usb_dd = { .mult_div1_reg =OMAP4430_CM_CLKSEL_DPLL_USB , .clk_bypass = &usb_hs_clk_div_ck, - .clk_ref = &dpll_sys_ref_clk, + .clk_ref = &sys_clkin_ck, .control_reg =OMAP4430_CM_CLKMODE_DPLL_USB , .modes = (1 <<DPLL_LOW_POWER_BYPASS ) | (1 <<DPLL_LOCKED ), .autoidle_reg =OMAP4430_CM_AUTOIDLE_DPLL_USB ,
@@ -933,7 +929,7 @@ static struct dpll_data dpll_usb_dd = {static struct clk dpll_usb_ck = { .name ="dpll_usb_ck" , - .parent = &dpll_sys_ref_clk, + .parent = &sys_clkin_ck, .dpll_data = &dpll_usb_dd, .init = &omap2_init_dpll_parent, .ops = &clkops_omap3_noncore_dpll_ops,
@@ -1222,7 +1218,7 @@ static struct clk per_abe_24m_fclk = {static const struct clksel pmd_stm_clock_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6_ck, .rates = div_1_1_rates }, - { .parent = &dpll_per_m7_ck, .rates = div_1_2_rates }, + { .parent = &tie_low_clock_ck, .rates = div_1_2_rates }, { .parent =NULL }, };
@@ -1240,10 +1236,15 @@ static struct clk pmd_trace_clk_mux_ck = { .recalc = &followparent_recalc, }; +static const struct clksel syc_clk_div_div[] = { + { .parent = &sys_clkin_ck, .rates = div2_1to2_rates }, + { .parent =NULL }, +}; +static struct clk syc_clk_div_ck = { .name ="syc_clk_div_ck" , .parent = &sys_clkin_ck, - .clksel = dpll_sys_ref_clk_div, + .clksel = syc_clk_div_div, .clksel_reg =OMAP4430_CM_ABE_DSS_SYS_CLKSEL , .clksel_mask =OMAP4430_CLKSEL_0_0_MASK , .ops = &clkops_null,
@@ -1407,26 +1408,9 @@ static struct clk fdif_fck = { .clkdm_name = "iss_clkdm", }; -static const struct clksel per_sgx_fclk_div[] = { - { .parent = &dpll_per_m2x2_ck, .rates = div3_1to4_rates }, - { .parent =NULL }, -}; - -static struct clk per_sgx_fclk = { - .name ="per_sgx_fclk" , - .parent = &dpll_per_m2x2_ck, - .clksel = per_sgx_fclk_div, - .clksel_reg =OMAP4430_CM_GFX_GFX_CLKCTRL , - .clksel_mask =OMAP4430_CLKSEL_PER_192M_MASK , - .ops = &clkops_null, - .recalc = &omap2_clksel_recalc, - .round_rate = &omap2_clksel_round_rate, - .set_rate = &omap2_clksel_set_rate, -}; -static const struct clksel sgx_clk_mux_sel[] = { { .parent = &dpll_core_m7_ck, .rates = div_1_0_rates }, - { .parent = &per_sgx_fclk, .rates = div_1_1_rates }, + { .parent = &dpll_per_m7_ck, .rates = div_1_1_rates }, { .parent =NULL }, };
@@ -1515,12 +1499,6 @@ static struct clk gpmc_ick = { .recalc = &followparent_recalc, }; -static const struct clksel dmt1_clk_mux_sel[] = { - { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, - { .parent = &sys_32k_ck, .rates = div_1_1_rates }, - { .parent =NULL }, -}; -/* * Merged dmt1_clk_mux into gptimer1 * gptimer1 renamed temporarily into gpt1 to match OMAP3 convention
@@ -1528,7 +1506,7 @@ static const struct clksel dmt1_clk_mux_sel[] = {static struct clk gpt1_fck = { .name ="gpt1_fck" , .parent = &sys_clkin_ck, - .clksel = dmt1_clk_mux_sel, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_WKUP_TIMER1_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_MASK ,
@@ -1546,7 +1524,7 @@ static struct clk gpt1_fck = {static struct clk gpt10_fck = { .name ="gpt10_fck" , .parent = &sys_clkin_ck, - .clksel = dmt1_clk_mux_sel, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_MASK ,
@@ -1564,7 +1542,7 @@ static struct clk gpt10_fck = {static struct clk gpt11_fck = { .name ="gpt11_fck" , .parent = &sys_clkin_ck, - .clksel = dmt1_clk_mux_sel, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_MASK ,
@@ -1582,7 +1560,7 @@ static struct clk gpt11_fck = {static struct clk gpt2_fck = { .name ="gpt2_fck" , .parent = &sys_clkin_ck, - .clksel = dmt1_clk_mux_sel, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_MASK ,
@@ -1600,7 +1578,7 @@ static struct clk gpt2_fck = {static struct clk gpt3_fck = { .name ="gpt3_fck" , .parent = &sys_clkin_ck, - .clksel = dmt1_clk_mux_sel, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_MASK ,
@@ -1618,7 +1596,7 @@ static struct clk gpt3_fck = {static struct clk gpt4_fck = { .name ="gpt4_fck" , .parent = &sys_clkin_ck, - .clksel = dmt1_clk_mux_sel, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_MASK ,
@@ -1714,7 +1692,7 @@ static struct clk gpt8_fck = {static struct clk gpt9_fck = { .name ="gpt9_fck" , .parent = &sys_clkin_ck, - .clksel = dmt1_clk_mux_sel, + .clksel = abe_dpll_bypass_clk_mux_sel, .init = &omap2_init_clksel_parent, .clksel_reg =OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_MASK ,
@@ -1735,11 +1713,16 @@ static struct clk hdq1w_fck = { .recalc = &followparent_recalc, }; +static const struct clksel hsi_fclk_div[] = { + { .parent = &dpll_per_m2x2_ck, .rates = div3_1to4_rates }, + { .parent =NULL }, +}; +/* Merged hsi_fclk into hsi */ static struct clk hsi_ick = { .name ="hsi_ick" , .parent = &dpll_per_m2x2_ck, - .clksel = per_sgx_fclk_div, + .clksel = hsi_fclk_div, .clksel_reg =OMAP4430_CM_L3INIT_HSI_CLKCTRL , .clksel_mask =OMAP4430_CLKSEL_24_25_MASK , .ops = &clkops_omap2_dflt,
@@ -2315,21 +2298,11 @@ static struct clk usb_tll_ick = { .recalc = &followparent_recalc, }; -static struct clk usbphyocp2scp_ick = { - .name ="usbphyocp2scp_ick" , - .ops = &clkops_omap2_dflt, - .enable_reg =OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL , - .enable_bit =OMAP4430_MODULEMODE_HWCTRL , - .clkdm_name ="l3_init_clkdm" , - .parent = &l4_div_ck, - .recalc = &followparent_recalc, -}; - -static struct clk usim_fck = { - .name ="usim_fck" , +static struct clk usim_ick = { + .name ="usim_ick" , .ops = &clkops_omap2_dflt, .enable_reg =OMAP4430_CM_WKUP_USIM_CLKCTRL , - .enable_bit =OMAP4430_MODULEMODE_SWCTRL , + .enable_bit =OMAP4430_MODULEMODE_HWCTRL , .clkdm_name ="l4_wkup_clkdm" , .parent = &sys_32k_ck, .recalc = &followparent_recalc,
@@ -2483,11 +2456,12 @@ static struct omap_clk omap44xx_clks[] = {CLK (NULL ,"virt_27000000_ck" , &virt_27000000_ck,CK_443X ),CLK (NULL ,"virt_38400000_ck" , &virt_38400000_ck,CK_443X ),CLK (NULL ,"sys_clkin_ck" , &sys_clkin_ck,CK_443X ), +CLK (NULL ,"tie_low_clock_ck" , &tie_low_clock_ck,CK_443X ),CLK (NULL ,"utmi_phy_clkout_ck" , &utmi_phy_clkout_ck,CK_443X ),CLK (NULL ,"xclk60mhsp1_ck" , &xclk60mhsp1_ck,CK_443X ),CLK (NULL ,"xclk60mhsp2_ck" , &xclk60mhsp2_ck,CK_443X ),CLK (NULL ,"xclk60motg_ck" , &xclk60motg_ck,CK_443X ), -CLK (NULL ,"dpll_sys_ref_clk" , &dpll_sys_ref_clk,CK_443X ), +CLK (NULL ,"abe_dpll_bypass_clk_mux_ck" , &abe_dpll_bypass_clk_mux_ck,CK_443X ),CLK (NULL ,"abe_dpll_refclk_mux_ck" , &abe_dpll_refclk_mux_ck,CK_443X ),CLK (NULL ,"dpll_abe_ck" , &dpll_abe_ck,CK_443X ), CLK(NULL, "dpll_abe_m2x2_ck", &dpll_abe_m2x2_ck, CK_443X),
@@ -2566,7 +2540,6 @@ static struct omap_clk omap44xx_clks[] = {CLK (NULL ,"emif1_ick" , &emif1_ick,CK_443X ),CLK (NULL ,"emif2_ick" , &emif2_ick,CK_443X ),CLK (NULL ,"fdif_fck" , &fdif_fck,CK_443X ), -CLK (NULL ,"per_sgx_fclk" , &per_sgx_fclk,CK_443X ),CLK (NULL ,"gfx_fck" , &gfx_fck,CK_443X ),CLK (NULL ,"gpio1_ick" , &gpio1_ick,CK_443X ), CLK(NULL, "gpio2_ick", &gpio2_ick, CK_443X),
@@ -2637,8 +2610,7 @@ static struct omap_clk omap44xx_clks[] = {CLK (NULL ,"usb_host_fs_fck" , &usb_host_fs_fck,CK_443X ),CLK ("musb_hdrc" ,"ick" , &usb_otg_ick,CK_443X ),CLK (NULL ,"usb_tll_ick" , &usb_tll_ick,CK_443X ), -CLK (NULL ,"usbphyocp2scp_ick" , &usbphyocp2scp_ick,CK_443X ), -CLK (NULL ,"usim_fck" , &usim_fck,CK_443X ), +CLK (NULL ,"usim_ick" , &usim_ick,CK_443X ),CLK ("omap_wdt" ,"fck" , &wdt2_fck,CK_443X ),CLK (NULL ,"wdt3_fck" , &wdt3_fck,CK_443X ), CLK(NULL, "otg_60m_gfclk_ck", &otg_60m_gfclk_ck, CK_443X),
Signature · 6 lines
1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 4/5 OMAP4: powerdomain: Update DSS logic state for ES2
DSS on ES2 supports only OSWR, hence remove the support for CSWR from the powerdomain framework.
--- arch/arm/mach-omap2/powerdomains44xx.h | 2 +- arch/arm/plat-omap/include/plat/powerdomain.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/powerdomains44xx.h +1 -1
@@ -98,7 +98,7 @@ static struct powerdomain dss_44xx_pwrdm = { .prcm_offs = OMAP4430_PRM_DSS_MOD, .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_RET_ON, - .pwrsts_logic_ret = PWRSTS_OFF_RET, + .pwrsts_logic_ret = PWRSTS_OFF, .banks = 1, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* dss_mem */
arch/arm/plat-omap/include/plat/powerdomain.h +1 -0
@@ -32,6 +32,7 @@/* Powerdomain allowable state bitfields */ #define PWRSTS_ON (1 << PWRDM_POWER_ON) +#define PWRSTS_OFF (1 << PWRDM_POWER_OFF)#define PWRSTS_OFF_ON ((1 << PWRDM_POWER_OFF) | \ (1 << PWRDM_POWER_ON))
Signature · 6 lines
1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 5/5 OMAP4: powerdomain: add context_offset field
From: Santosh Shilimkar <[email protected]>
Context register in various power domain is not at same offset on OMAP4. Mainly the CPUx context resgiters againts rest of them. This patch adds a field in power-domain strucures to handle this.
This will be needed to make "pwrdm_clear_all_prev_pwrst" API work on OMAP4.
--- arch/arm/mach-omap2/powerdomains44xx.h | 14 ++++++++++++++ arch/arm/plat-omap/include/plat/powerdomain.h | 1 + 2 files changed, 15 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/powerdomains44xx.h +14 -0
@@ -40,6 +40,7 @@ static struct powerdomain core_44xx_pwrdm = { .pwrsts = PWRSTS_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 5, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* core_nret_bank */ [1] = PWRSTS_OFF_RET, /* core_ocmram */
@@ -64,6 +65,7 @@ static struct powerdomain gfx_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* gfx_mem */ },
@@ -81,6 +83,7 @@ static struct powerdomain abe_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRDM_POWER_OFF, .banks = 2, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_RET, /* aessmem */ [1] = PWRDM_POWER_OFF, /* periphmem */
@@ -100,6 +103,7 @@ static struct powerdomain dss_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* dss_mem */ },
@@ -117,6 +121,7 @@ static struct powerdomain tesla_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 3, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_RET, /* tesla_edma */ [1] = PWRSTS_OFF_RET, /* tesla_l1 */
@@ -137,6 +142,7 @@ static struct powerdomain wkup_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* wkup_bank */ },
@@ -153,6 +159,7 @@ static struct powerdomain cpu0_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x18, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* cpu0_l1 */ },
@@ -169,6 +176,7 @@ static struct powerdomain cpu1_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x18, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* cpu1_l1 */ },
@@ -184,6 +192,7 @@ static struct powerdomain emu_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* emu_bank */ },
@@ -200,6 +209,7 @@ static struct powerdomain mpu_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 3, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* mpu_l1 */ [1] = PWRSTS_OFF_RET, /* mpu_l2 */
@@ -220,6 +230,7 @@ static struct powerdomain ivahd_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRDM_POWER_OFF, .banks = 4, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* hwa_mem */ [1] = PWRSTS_OFF_RET, /* sl2_mem */
@@ -242,6 +253,7 @@ static struct powerdomain cam_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* cam_mem */ },
@@ -259,6 +271,7 @@ static struct powerdomain l3init_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* l3init_bank1 */ },
@@ -276,6 +289,7 @@ static struct powerdomain l4per_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 2, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* nonretained_bank */ [1] = PWRDM_POWER_RET, /* retained_bank */
arch/arm/plat-omap/include/plat/powerdomain.h +1 -0
@@ -102,6 +102,7 @@ struct powerdomain {const u8 pwrsts_logic_ret;const u8 flags;const u8 banks; +const s16 context_offset;const u8 pwrsts_mem_ret[PWRDM_MAX_MEM_BANKS ];const u8 pwrsts_mem_on[PWRDM_MAX_MEM_BANKS ];struct clockdomain *pwrdm_clkdms[PWRDM_MAX_CLKDMS ];
Signature · 1 line
1.6.0.4
Paul Walmsley
maintainerRe: [PATCH 5/5] OMAP4: powerdomain: add context_offset field
Hello Santosh, Rajendra,
a few comments on this patch:
Quoted 9 lines · Rajendra Nayak
From: Santosh Shilimkar <[email protected]>
Context register in various power domain is not at same offset on OMAP4. Mainly the CPUx context resgiters againts rest of them. This patch adds a field in power-domain strucures to handle this.
This will be needed to make "
pwrdm_clear_all_prev_pwrst" API work on OMAP4.
Is the powerdomain.c code that uses context_offset ready yet? If not, it seems best to submit this together with the code that uses it?
Quoted 131 lines
Signed-off-by Santosh Shilimkar <[email protected]>Signed-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoit Cousson <[email protected]>Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>--- arch/arm/mach-omap2/powerdomains44xx.h | 14 ++++++++++++++ arch/arm/plat-omap/include/plat/powerdomain.h | 1 + 2 files changed, 15 insertions(+), 0 deletions(-)arch/arm/mach-omap2/powerdomains44xx.h +14
-0@@ -40,6 +40,7 @@ static struct powerdomain core_44xx_pwrdm = { .pwrsts = PWRSTS_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 5, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* core_nret_bank */ [1] = PWRSTS_OFF_RET, /* core_ocmram */@@ -64,6 +65,7 @@ static struct powerdomain gfx_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* gfx_mem */ },@@ -81,6 +83,7 @@ static struct powerdomain abe_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRDM_POWER_OFF, .banks = 2, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_RET, /* aessmem */ [1] = PWRDM_POWER_OFF, /* periphmem */@@ -100,6 +103,7 @@ static struct powerdomain dss_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* dss_mem */ },@@ -117,6 +121,7 @@ static struct powerdomain tesla_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 3, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_RET, /* tesla_edma */ [1] = PWRSTS_OFF_RET, /* tesla_l1 */@@ -137,6 +142,7 @@ static struct powerdomain wkup_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* wkup_bank */ },@@ -153,6 +159,7 @@ static struct powerdomain cpu0_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x18, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* cpu0_l1 */ },@@ -169,6 +176,7 @@ static struct powerdomain cpu1_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x18, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* cpu1_l1 */ },@@ -184,6 +192,7 @@ static struct powerdomain emu_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* emu_bank */ },@@ -200,6 +209,7 @@ static struct powerdomain mpu_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 3, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* mpu_l1 */ [1] = PWRSTS_OFF_RET, /* mpu_l2 */@@ -220,6 +230,7 @@ static struct powerdomain ivahd_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRDM_POWER_OFF, .banks = 4, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* hwa_mem */ [1] = PWRSTS_OFF_RET, /* sl2_mem */@@ -242,6 +253,7 @@ static struct powerdomain cam_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* cam_mem */ },@@ -259,6 +271,7 @@ static struct powerdomain l3init_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* l3init_bank1 */ },@@ -276,6 +289,7 @@ static struct powerdomain l4per_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 2, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* nonretained_bank */ [1] = PWRDM_POWER_RET, /* retained_bank */arch/arm/plat-omap/include/plat/powerdomain.h +0
-0
arch/arm/plat-omap/include/plat/powerdomain.h struct powerdomain { · line 105
Quoted 4 lines
arch/arm/plat-omap/include/plat/powerdomain.h +1
-0@@ -102,6 +102,7 @@ struct powerdomain {const u8 pwrsts_logic_ret;const u8 flags;const u8 banks; +const s16 context_offset;
Looks like this can simply be a u8?
Also, this structure has kerneldoc entries defined for most of its members. Please add some kerneldoc for this new field, describing what it is and noting that it is used on OMAP4 only.
Quoted 11 lines
arch/arm/plat-omap/include/plat/powerdomain.h +0
-0const u8 pwrsts_mem_ret[PWRDM_MAX_MEM_BANKS ];const u8 pwrsts_mem_on[PWRDM_MAX_MEM_BANKS ];struct clockdomain *pwrdm_clkdms[PWRDM_MAX_CLKDMS ];Signature · 6 lines
1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
- Paul
RE: [PATCH 5/5] OMAP4: powerdomain: add context_offset field
Quoted 20 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 11:43 AM
To: Nayak, Rajendra; Shilimkar, Santosh
Cc: [email protected]; Cousson, Benoit; Kevin Hilman
Subject: Re: [PATCH 5/5] OMAP4: powerdomain: addcontext_offsetfieldHello Santosh, Rajendra,
a few comments on this patch:
Quoted 7 lines · Rajendra Nayak
From: Santosh Shilimkar <[email protected]>
Context register in various power domain is not at same offset on OMAP4. Mainly the CPUx context resgiters againts rest of them. This patch adds a field in power-domain strucures to handle this.
Quoted 6 lines
Quoted 2 lines
This will be needed to make "
pwrdm_clear_all_prev_pwrst" API work on OMAP4.Is the
powerdomain.ccode that usescontext_offsetready yet? If not, it seems best to submit this together with the code that uses it?
It's the next series what Rajendra is doing. We can add this one as part of that series if you like.
Quoted 129 lines
arch/arm/mach-
Quoted 11 lines
Signed-off-by Santosh Shilimkar <[email protected]>Signed-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoit Cousson <[email protected]>Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>--- arch/arm/mach-omap2/powerdomains44xx.h | 14 ++++++++++++++ arch/arm/plat-omap/include/plat/powerdomain.h | 1 + 2 files changed, 15 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-omap2/powerdomains44xx.h +0
-0
omap2/powerdomains44xx.hReview
Quoted 116 lines
index 9c01b55..65e919b 100644
arch/arm/mach-omap2/powerdomains44xx.h +14
-0@@ -40,6 +40,7 @@ static struct powerdomain core_44xx_pwrdm = { .pwrsts = PWRSTS_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 5, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* core_nret_bank */ [1] = PWRSTS_OFF_RET, /* core_ocmram */@@ -64,6 +65,7 @@ static struct powerdomain gfx_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* gfx_mem */ },@@ -81,6 +83,7 @@ static struct powerdomain abe_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRDM_POWER_OFF, .banks = 2, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_RET, /* aessmem */ [1] = PWRDM_POWER_OFF, /* periphmem */@@ -100,6 +103,7 @@ static struct powerdomain dss_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* dss_mem */ },@@ -117,6 +121,7 @@ static struct powerdomain tesla_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 3, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_RET, /* tesla_edma */ [1] = PWRSTS_OFF_RET, /* tesla_l1 */@@ -137,6 +142,7 @@ static struct powerdomain wkup_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* wkup_bank */ },@@ -153,6 +159,7 @@ static struct powerdomain cpu0_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x18, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* cpu0_l1 */ },@@ -169,6 +176,7 @@ static struct powerdomain cpu1_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x18, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* cpu1_l1 */ },@@ -184,6 +192,7 @@ static struct powerdomain emu_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* emu_bank */ },@@ -200,6 +209,7 @@ static struct powerdomain mpu_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 3, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRSTS_OFF_RET, /* mpu_l1 */ [1] = PWRSTS_OFF_RET, /* mpu_l2 */@@ -220,6 +230,7 @@ static struct powerdomain ivahd_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRDM_POWER_OFF, .banks = 4, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* hwa_mem */ [1] = PWRSTS_OFF_RET, /* sl2_mem */@@ -242,6 +253,7 @@ static struct powerdomain cam_44xx_pwrdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), .pwrsts = PWRSTS_OFF_ON, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* cam_mem */ },@@ -259,6 +271,7 @@ static struct powerdomain l3init_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 1, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* l3init_bank1 */ },@@ -276,6 +289,7 @@ static struct powerdomain l4per_44xx_pwrdm = { .pwrsts = PWRSTS_OFF_RET_ON, .pwrsts_logic_ret = PWRSTS_OFF_RET, .banks = 2, + .context_offset = 0x24, .pwrsts_mem_ret = { [0] = PWRDM_POWER_OFF, /* nonretained_bank */ [1] = PWRDM_POWER_RET, /* retained_bank */(quoted diff) +0
-0
b/arch/arm/plat-omap/include/plat/powerdomain.h
Quoted 11 lines
arch/arm/plat-omap/include/plat/powerdomain.h struct powerdomain { · line 105
Quoted 8 lines
index 3ea7220..a524285 100644
arch/arm/plat-omap/include/plat/powerdomain.h +1
-0@@ -102,6 +102,7 @@ struct powerdomain {const u8 pwrsts_logic_ret;const u8 flags;const u8 banks; +const s16 context_offset;Looks like this can simply be a u8?
Yep
Quoted 4 lines
Also, this structure has kerneldoc entries defined for most of its members. Please add some kerneldoc for this new field, describing what it is and noting that it is used on OMAP4 only.
Ok
Quoted 14 lines
Quoted 11 lines
arch/arm/plat-omap/include/plat/powerdomain.h +0
-1const u8 pwrsts_mem_ret[PWRDM_MAX_MEM_BANKS ];const u8 pwrsts_mem_on[PWRDM_MAX_MEM_BANKS ];struct clockdomain *pwrdm_clkdms[PWRDM_MAX_CLKDMS ]; --1.6.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html- Paul
Paul Walmsley
maintainerRE: [PATCH 5/5] OMAP4: powerdomain: add context_offset field
Quoted 20 lines · Santosh
Quoted 20 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 11:43 AM
To: Nayak, Rajendra; Shilimkar, Santosh
Cc: [email protected]; Cousson, Benoit; Kevin Hilman
Subject: Re: [PATCH 5/5] OMAP4: powerdomain: addcontext_offsetfieldHello Santosh, Rajendra,
a few comments on this patch:
Quoted 7 lines · Rajendra Nayak
From: Santosh Shilimkar <[email protected]>
Context register in various power domain is not at same offset on OMAP4. Mainly the CPUx context resgiters againts rest of them. This patch adds a field in power-domain strucures to handle this.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
This will be needed to make "
pwrdm_clear_all_prev_pwrst" API work on OMAP4.Is the
powerdomain.ccode that usescontext_offsetready yet? If not, it seems best to submit this together with the code that uses it?It's the next series what Rajendra is doing. We can add this one as part of that series if you like.
Yep, let's do it that way.
regards
- Paul
Paul Walmsley
maintainerRe: [PATCH 4/5] OMAP4: powerdomain: Update DSS logic state for ES2
In reply to Rajendra NayakHi Rajendra,
Quoted 7 lines · Rajendra Nayak
DSS on ES2 supports only OSWR, hence remove the support for CSWR from the powerdomain framework.
Signed-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoît Cousson <[email protected]>Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>
Thanks, queued for 2.6.37 (with Benoît's name fixed)
- Paul
Paul Walmsley
maintainerRe: [PATCH 3/5] OMAP4: clocks: Update clock tree for ES2
In reply to Rajendra NayakHello Rajendra, Benoît,
Quoted 7 lines · Rajendra Nayak
This patch updates the clock tree with all the changes in OMAP4430 ES2.
clock nodes added
-1-tie_low_clock_ck
-2-abe_dpll_bypass_clk_mux_ck
Quoted 7 lines
clock nodes deleted
-1-dpll_sys_ref_clk
-2-per_sgx_fclk
-3-usbphyocp2scp_ickSigned-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoît Cousson <[email protected]>
UTF-8 problem again here...
Quoted 2 lines
Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>
The clock tree resulting from this patch doesn't match the output from the current OMAP4 clock autogen script. Seems like it should. Could you help me understand that?
thanks
- Paul
RE: [PATCH 3/5] OMAP4: clocks: Update clock tree for ES2
Hi Paul,
Quoted 26 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 10:34 AM
To: Nayak, Rajendra
Cc: [email protected]; Cousson, Benoit; Kevin Hilman
Subject: Re: [PATCH 3/5] OMAP4: clocks: Update clock tree for ES2Hello Rajendra, Benoît,
Quoted 7 lines · Rajendra Nayak
This patch updates the clock tree with all the changes in OMAP4430 ES2.
clock nodes added
-1-tie_low_clock_ck
-2-abe_dpll_bypass_clk_mux_ckQuoted 7 lines
clock nodes deleted
-1-dpll_sys_ref_clk
-2-per_sgx_fclk
-3-usbphyocp2scp_ickSigned-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoît Cousson <[email protected]>
Quoted 8 lines
UTF-8 problem again here...
Quoted 2 lines
Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>The clock tree resulting from this patch doesn't match the output from the current OMAP4 clock autogen script. Seems like it should. Could you help me understand that?
I guess that's mainly because of fixes in the autogen scripts, the patches for which have not yet made it to the list.
Regards,
Rajendra
Quoted 5 lines
thanks
- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Paul Walmsley
maintainerRE: [PATCH 3/5] OMAP4: clocks: Update clock tree for ES2
Hi Rajendra,
Quoted 10 lines · Rajendra
Quoted 7 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 10:34 AMThe clock tree resulting from this patch doesn't match the output from the current OMAP4 clock autogen script. Seems like it should. Could you help me understand that?
I guess that's mainly because of fixes in the autogen scripts, the patches for which have not yet made it to the list.
OK, thanks, I think I see what's going on. Patch queued for 2.6.37, but hopefully you and Benoît can review the final set of OMAP4 clock patches, since I had to resolve conflicts by hand. Also it is very important to make sure that what we've got in the mainline tree matches exactly what is coming out of the autogenerator...
- Paul
RE: [PATCH 3/5] OMAP4: clocks: Update clock tree for ES2
Hi Paul,
Quoted 19 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 12:46 PM
To: Nayak, Rajendra
Cc: [email protected]; Cousson, Benoit; Kevin Hilman
Subject: RE: [PATCH 3/5] OMAP4: clocks: Update clock tree for ES2Hi Rajendra,
Quoted 8 lines · Rajendra
Quoted 7 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 10:34 AMThe clock tree resulting from this patch doesn't match the output from the current OMAP4 clock autogen script. Seems like it should. Could you help me understand that?
Quoted 8 lines
Quoted 2 lines
I guess that's mainly because of fixes in the autogen scripts, the patches for which have not yet made it to the list.
OK, thanks, I think I see what's going on. Patch queued for 2.6.37, but hopefully you and Benoît can review the final set of OMAP4 clock patches, since I had to resolve conflicts by hand. Also it is very important to make sure that what we've got in the mainline tree matches exactly what is coming out of the autogenerator...
I agree, we'll get the scripts and the header in sync very soon by posting most of the pending fixes.
Regards,
Rajendra
Quoted 3 lines
- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Paul Walmsley
maintainerRe: [PATCH 2/5] OMAP4: PM: Define additional registers for ES2
In reply to Rajendra NayakQuoted 6 lines · Rajendra Nayak
4430 ES2 has a few new registers added and a few modified from ES1. This patch adds all the register changes in PRM and CM for OMAP4430 ES2.
Signed-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoît Cousson <[email protected]>
Thanks, queued for 2.6.37 (with the UTF-8 fixed here; please fix this on your end)
- Paul
Quoted 185 lines
Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>--- arch/arm/mach-omap2/cm44xx.h | 90 ++++++++++++++++++++++++++++++++++++++++- arch/arm/mach-omap2/prm44xx.h | 14 ++++--- 2 files changed, 96 insertions(+), 8 deletions(-)arch/arm/mach-omap2/cm44xx.h +88
-2@@ -195,6 +195,42 @@#define OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET 0x0088#define OMAP4430_CM1_ABE_WDT3_CLKCTRL OMAP44XX_CM1_REGADDR(OMAP4430_CM1_ABE_MOD, 0x0088) +/* CM1.RESTORE_CM1 register offsets */ +#define OMAP4_CM_CLKSEL_CORE_RESTORE_OFFSET 0x0000 +#define OMAP4430_CM_CLKSEL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0000) +#define OMAP4_CM_DIV_M2_DPLL_CORE_RESTORE_OFFSET 0x0004 +#define OMAP4430_CM_DIV_M2_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0004) +#define OMAP4_CM_DIV_M3_DPLL_CORE_RESTORE_OFFSET 0x0008 +#define OMAP4430_CM_DIV_M3_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0008) +#define OMAP4_CM_DIV_M4_DPLL_CORE_RESTORE_OFFSET 0x000c +#define OMAP4430_CM_DIV_M4_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x000c) +#define OMAP4_CM_DIV_M5_DPLL_CORE_RESTORE_OFFSET 0x0010 +#define OMAP4430_CM_DIV_M5_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0010) +#define OMAP4_CM_DIV_M6_DPLL_CORE_RESTORE_OFFSET 0x0014 +#define OMAP4430_CM_DIV_M6_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0014) +#define OMAP4_CM_DIV_M7_DPLL_CORE_RESTORE_OFFSET 0x0018 +#define OMAP4430_CM_DIV_M7_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0018) +#define OMAP4_CM_CLKSEL_DPLL_CORE_RESTORE_OFFSET 0x001c +#define OMAP4430_CM_CLKSEL_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x001c) +#define OMAP4_CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE_OFFSET 0x0020 +#define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0020) +#define OMAP4_CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE_OFFSET 0x0024 +#define OMAP4430_CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0024) +#define OMAP4_CM_CLKMODE_DPLL_CORE_RESTORE_OFFSET 0x0028 +#define OMAP4430_CM_CLKMODE_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0028) +#define OMAP4_CM_SHADOW_FREQ_CONFIG2_RESTORE_OFFSET 0x002c +#define OMAP4430_CM_SHADOW_FREQ_CONFIG2_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x002c) +#define OMAP4_CM_SHADOW_FREQ_CONFIG1_RESTORE_OFFSET 0x0030 +#define OMAP4430_CM_SHADOW_FREQ_CONFIG1_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0030) +#define OMAP4_CM_AUTOIDLE_DPLL_CORE_RESTORE_OFFSET 0x0034 +#define OMAP4430_CM_AUTOIDLE_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0034) +#define OMAP4_CM_MPU_CLKSTCTRL_RESTORE_OFFSET 0x0038 +#define OMAP4430_CM_MPU_CLKSTCTRL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0038) +#define OMAP4_CM_CM1_PROFILING_CLKCTRL_RESTORE_OFFSET 0x003c +#define OMAP4430_CM_CM1_PROFILING_CLKCTRL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x003c) +#define OMAP4_CM_DYN_DEP_PRESCAL_RESTORE_OFFSET 0x0040 +#define OMAP4430_CM_DYN_DEP_PRESCAL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0040) +/* CM2 */ /* CM2.OCP_SOCKET_CM2 register offsets */ @@ -252,8 +288,6 @@#define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0068)#define OMAP4_CM_SSC_MODFREQDIV_DPLL_PER_OFFSET 0x006c#define OMAP4430_CM_SSC_MODFREQDIV_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x006c) -#define OMAP4_CM_EMU_OVERRIDE_DPLL_PER_OFFSET 0x0070 -#define OMAP4430_CM_EMU_OVERRIDE_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0070)#define OMAP4_CM_CLKMODE_DPLL_USB_OFFSET 0x0080#define OMAP4430_CM_CLKMODE_DPLL_USB OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0080)#define OMAP4_CM_IDLEST_DPLL_USB_OFFSET 0x0084@@ -296,6 +330,8 @@#define OMAP4430_CM_ALWON_SR_IVA_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0030)#define OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET 0x0038#define OMAP4430_CM_ALWON_SR_CORE_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0038) +#define OMAP4_CM_ALWON_USBPHY_CLKCTRL_OFFSET 0x0040 +#define OMAP4430_CM_ALWON_USBPHY_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0040)/* CM2.CORE_CM2 register offsets */ #define OMAP4_CM_L3_1_CLKSTCTRL_OFFSET 0x0000@@ -578,4 +614,54 @@#define OMAP4430_CM_CEFUSE_CLKSTCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_MOD, 0x0000)#define OMAP4_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET 0x0020#define OMAP4430_CM_CEFUSE_CEFUSE_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_MOD, 0x0020) + +/* CM2.RESTORE_CM2 register offsets */ +#define OMAP4_CM_L3_1_CLKSTCTRL_RESTORE_OFFSET 0x0000 +#define OMAP4430_CM_L3_1_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0000) +#define OMAP4_CM_L3_2_CLKSTCTRL_RESTORE_OFFSET 0x0004 +#define OMAP4430_CM_L3_2_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0004) +#define OMAP4_CM_L4CFG_CLKSTCTRL_RESTORE_OFFSET 0x0008 +#define OMAP4430_CM_L4CFG_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0008) +#define OMAP4_CM_MEMIF_CLKSTCTRL_RESTORE_OFFSET 0x000c +#define OMAP4430_CM_MEMIF_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x000c) +#define OMAP4_CM_L4PER_CLKSTCTRL_RESTORE_OFFSET 0x0010 +#define OMAP4430_CM_L4PER_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0010) +#define OMAP4_CM_L3INIT_CLKSTCTRL_RESTORE_OFFSET 0x0014 +#define OMAP4430_CM_L3INIT_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0014) +#define OMAP4_CM_L3INSTR_L3_3_CLKCTRL_RESTORE_OFFSET 0x0018 +#define OMAP4430_CM_L3INSTR_L3_3_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0018) +#define OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE_OFFSET 0x001c +#define OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x001c) +#define OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE_OFFSET 0x0020 +#define OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0020) +#define OMAP4_CM_CM2_PROFILING_CLKCTRL_RESTORE_OFFSET 0x0024 +#define OMAP4430_CM_CM2_PROFILING_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0024) +#define OMAP4_CM_D2D_STATICDEP_RESTORE_OFFSET 0x0028 +#define OMAP4430_CM_D2D_STATICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0028) +#define OMAP4_CM_L3_1_DYNAMICDEP_RESTORE_OFFSET 0x002c +#define OMAP4430_CM_L3_1_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x002c) +#define OMAP4_CM_L3_2_DYNAMICDEP_RESTORE_OFFSET 0x0030 +#define OMAP4430_CM_L3_2_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0030) +#define OMAP4_CM_D2D_DYNAMICDEP_RESTORE_OFFSET 0x0034 +#define OMAP4430_CM_D2D_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0034) +#define OMAP4_CM_L4CFG_DYNAMICDEP_RESTORE_OFFSET 0x0038 +#define OMAP4430_CM_L4CFG_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0038) +#define OMAP4_CM_L4PER_DYNAMICDEP_RESTORE_OFFSET 0x003c +#define OMAP4430_CM_L4PER_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x003c) +#define OMAP4_CM_L4PER_GPIO2_CLKCTRL_RESTORE_OFFSET 0x0040 +#define OMAP4430_CM_L4PER_GPIO2_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0040) +#define OMAP4_CM_L4PER_GPIO3_CLKCTRL_RESTORE_OFFSET 0x0044 +#define OMAP4430_CM_L4PER_GPIO3_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0044) +#define OMAP4_CM_L4PER_GPIO4_CLKCTRL_RESTORE_OFFSET 0x0048 +#define OMAP4430_CM_L4PER_GPIO4_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0048) +#define OMAP4_CM_L4PER_GPIO5_CLKCTRL_RESTORE_OFFSET 0x004c +#define OMAP4430_CM_L4PER_GPIO5_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x004c) +#define OMAP4_CM_L4PER_GPIO6_CLKCTRL_RESTORE_OFFSET 0x0050 +#define OMAP4430_CM_L4PER_GPIO6_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0050) +#define OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE_OFFSET 0x0054 +#define OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0054) +#define OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE_OFFSET 0x0058 +#define OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0058) +#define OMAP4_CM_SDMA_STATICDEP_RESTORE_OFFSET 0x005c +#define OMAP4430_CM_SDMA_STATICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x005c)#endif arch/arm/mach-omap2/prm44xx.h +8
-6@@ -44,14 +44,12 @@#define OMAP4430_PRM_IRQSTATUS_TESLA OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0030)#define OMAP4_PRM_IRQENABLE_TESLA_OFFSET 0x0038#define OMAP4430_PRM_IRQENABLE_TESLA OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0038) -#define OMAP4_PRM_PRM_PROFILING_CLKCTRL_OFFSET 0x0040 -#define OMAP4430_PRM_PRM_PROFILING_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0040) +#define OMAP4_CM_PRM_PROFILING_CLKCTRL_OFFSET 0x0040 +#define OMAP4430_CM_PRM_PROFILING_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0040)/* PRM.CKGEN_PRM register offsets */ #define OMAP4_CM_ABE_DSS_SYS_CLKSEL_OFFSET 0x0000#define OMAP4430_CM_ABE_DSS_SYS_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0000) -#define OMAP4_CM_DPLL_SYS_REF_CLKSEL_OFFSET 0x0004 -#define OMAP4430_CM_DPLL_SYS_REF_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0004)#define OMAP4_CM_L4_WKUP_CLKSEL_OFFSET 0x0008#define OMAP4430_CM_L4_WKUP_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0008)#define OMAP4_CM_ABE_PLL_REF_CLKSEL_OFFSET 0x000c@@ -686,8 +684,8 @@#define OMAP4430_PRM_LDO_ABB_IVA_SETUP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00d8)#define OMAP4_PRM_LDO_ABB_IVA_CTRL_OFFSET 0x00dc#define OMAP4430_PRM_LDO_ABB_IVA_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00dc) -#define OMAP4_PRM_LDO_BANDGAP_CTRL_OFFSET 0x00e0 -#define OMAP4430_PRM_LDO_BANDGAP_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e0) +#define OMAP4_PRM_LDO_BANDGAP_SETUP_OFFSET 0x00e0 +#define OMAP4430_PRM_LDO_BANDGAP_SETUP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e0)#define OMAP4_PRM_DEVICE_OFF_CTRL_OFFSET 0x00e4#define OMAP4430_PRM_DEVICE_OFF_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e4)#define OMAP4_PRM_PHASE1_CNDP_OFFSET 0x00e8@@ -698,6 +696,8 @@#define OMAP4430_PRM_PHASE2B_CNDP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f0)#define OMAP4_PRM_MODEM_IF_CTRL_OFFSET 0x00f4#define OMAP4430_PRM_MODEM_IF_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f4) +#define OMAP4_PRM_VC_ERRST_OFFSET 0x00f8 +#define OMAP4430_PRM_VC_ERRST OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f8)/* * PRCM_MPU @@ -715,6 +715,8 @@/* PRCM_MPU.DEVICE_PRM register offsets */ #define OMAP4_PRCM_MPU_PRM_RSTST_OFFSET 0x0000#define OMAP4430_PRCM_MPU_PRM_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD, 0x0000) +#define OMAP4_PRCM_MPU_PRM_PSCON_COUNT_OFFSET 0x0004 +#define OMAP4430_PRCM_MPU_PRM_PSCON_COUNT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD, 0x0004)/* PRCM_MPU.CPU0 register offsets */ #define OMAP4_PM_CPU0_PWRSTCTRL_OFFSET 0x0000Signature · 6 lines
1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
- Paul
RE: [PATCH 2/5] OMAP4: PM: Define additional registers for ES2
Quoted 15 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 11:48 AM
To: Nayak, Rajendra
Cc: [email protected]; Cousson, Benoit; Kevin Hilman
Subject: Re: [PATCH 2/5] OMAP4: PM: Define additional registers for ES2Quoted 4 lines · Rajendra Nayak
4430 ES2 has a few new registers added and a few modified from ES1. This patch adds all the register changes in PRM and CM for OMAP4430 ES2.
Quoted 5 lines
Quoted 2 lines
Signed-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoît Cousson <[email protected]>Thanks, queued for 2.6.37 (with the UTF-8 fixed here; please fix this on your end)
Thanks Paul, I'll get the encoding issue fixed.
Quoted 254 lines
- Paul
Quoted 4 lines
Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>--- arch/arm/mach-omap2/cm44xx.h | 90++++++++++++++++++++++++++++++++++++++++-
arch/arm/mach-omap2/cm44xx.h line 196
Quoted 10 lines
arch/arm/mach-omap2/prm44xx.h | 14 ++++--- 2 files changed, 96 insertions(+), 8 deletions(-)arch/arm/mach-omap2/cm44xx.h +0
-0@@ -195,6 +195,42 @@#define OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET 0x0088#define OMAP4430_CM1_ABE_WDT3_CLKCTRL OMAP44XX_CM1_REGADDR(OMAP4430_CM1_ABE_MOD, 0x0088)arch/arm/mach-omap2/cm44xx.h
Quoted 4 lines
arch/arm/mach-omap2/cm44xx.h +3
-0+/* CM1.RESTORE_CM1 register offsets */ +#define OMAP4_CM_CLKSEL_CORE_RESTORE_OFFSET 0x0000 +#define OMAP4430_CM_CLKSEL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0000)arch/arm/mach-omap2/cm44xx.h line 201
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_DIV_M2_DPLL_CORE_RESTORE_OFFSET 0x0004 +#define OMAP4430_CM_DIV_M2_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0004)arch/arm/mach-omap2/cm44xx.h line 203
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_DIV_M3_DPLL_CORE_RESTORE_OFFSET 0x0008 +#define OMAP4430_CM_DIV_M3_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0008)arch/arm/mach-omap2/cm44xx.h line 205
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_DIV_M4_DPLL_CORE_RESTORE_OFFSET 0x000c +#define OMAP4430_CM_DIV_M4_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x000c)arch/arm/mach-omap2/cm44xx.h line 207
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_DIV_M5_DPLL_CORE_RESTORE_OFFSET 0x0010 +#define OMAP4430_CM_DIV_M5_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0010)arch/arm/mach-omap2/cm44xx.h line 209
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_DIV_M6_DPLL_CORE_RESTORE_OFFSET 0x0014 +#define OMAP4430_CM_DIV_M6_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0014)arch/arm/mach-omap2/cm44xx.h line 211
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_DIV_M7_DPLL_CORE_RESTORE_OFFSET 0x0018 +#define OMAP4430_CM_DIV_M7_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0018)arch/arm/mach-omap2/cm44xx.h line 213
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_CLKSEL_DPLL_CORE_RESTORE_OFFSET 0x001c +#define OMAP4430_CM_CLKSEL_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x001c)arch/arm/mach-omap2/cm44xx.h line 215
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE_OFFSET 0x0020 +#define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0020)arch/arm/mach-omap2/cm44xx.h line 217
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE_OFFSET 0x0024 +#define OMAP4430_CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0024)arch/arm/mach-omap2/cm44xx.h line 219
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_CLKMODE_DPLL_CORE_RESTORE_OFFSET 0x0028 +#define OMAP4430_CM_CLKMODE_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0028)arch/arm/mach-omap2/cm44xx.h line 221
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_SHADOW_FREQ_CONFIG2_RESTORE_OFFSET 0x002c +#define OMAP4430_CM_SHADOW_FREQ_CONFIG2_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x002c)arch/arm/mach-omap2/cm44xx.h line 223
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_SHADOW_FREQ_CONFIG1_RESTORE_OFFSET 0x0030 +#define OMAP4430_CM_SHADOW_FREQ_CONFIG1_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0030)arch/arm/mach-omap2/cm44xx.h line 225
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_AUTOIDLE_DPLL_CORE_RESTORE_OFFSET 0x0034 +#define OMAP4430_CM_AUTOIDLE_DPLL_CORE_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0034)arch/arm/mach-omap2/cm44xx.h line 227
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_MPU_CLKSTCTRL_RESTORE_OFFSET 0x0038 +#define OMAP4430_CM_MPU_CLKSTCTRL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0038)arch/arm/mach-omap2/cm44xx.h line 229
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_CM1_PROFILING_CLKCTRL_RESTORE_OFFSET 0x003c +#define OMAP4430_CM_CM1_PROFILING_CLKCTRL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x003c)arch/arm/mach-omap2/cm44xx.h line 231
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_DYN_DEP_PRESCAL_RESTORE_OFFSET 0x0040 +#define OMAP4430_CM_DYN_DEP_PRESCAL_RESTORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_RESTORE_MOD, 0x0040)arch/arm/mach-omap2/cm44xx.h line 288
Quoted 6 lines
arch/arm/mach-omap2/cm44xx.h +1
-0+/* CM2 */ /* CM2.OCP_SOCKET_CM2 register offsets */ @@ -252,8 +288,6 @@#define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0068)arch/arm/mach-omap2/cm44xx.h line 290
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +0
-0#define OMAP4_CM_SSC_MODFREQDIV_DPLL_PER_OFFSET 0x006c#define OMAP4430_CM_SSC_MODFREQDIV_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x006c)arch/arm/mach-omap2/cm44xx.h line 256
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +0
-2-#define OMAP4_CM_EMU_OVERRIDE_DPLL_PER_OFFSET 0x0070 -#define OMAP4430_CM_EMU_OVERRIDE_DPLL_PER OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0070)arch/arm/mach-omap2/cm44xx.h line 292
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +0
-0#define OMAP4_CM_CLKMODE_DPLL_USB_OFFSET 0x0080#define OMAP4430_CM_CLKMODE_DPLL_USB OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_MOD, 0x0080)arch/arm/mach-omap2/cm44xx.h line 330
Quoted 3 lines
arch/arm/mach-omap2/cm44xx.h +0
-0#define OMAP4_CM_IDLEST_DPLL_USB_OFFSET 0x0084@@ -296,6 +330,8 @@#define OMAP4430_CM_ALWON_SR_IVA_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0030)arch/arm/mach-omap2/cm44xx.h line 332
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +0
-0#define OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET 0x0038#define OMAP4430_CM_ALWON_SR_CORE_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0038)arch/arm/mach-omap2/cm44xx.h line 334
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_ALWON_USBPHY_CLKCTRL_OFFSET 0x0040 +#define OMAP4430_CM_ALWON_USBPHY_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_MOD, 0x0040)arch/arm/mach-omap2/cm44xx.h line 614
Quoted 5 lines
arch/arm/mach-omap2/cm44xx.h +0
-0/* CM2.CORE_CM2 register offsets */ #define OMAP4_CM_L3_1_CLKSTCTRL_OFFSET 0x0000@@ -578,4 +614,54 @@#define OMAP4430_CM_CEFUSE_CLKSTCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_MOD, 0x0000)arch/arm/mach-omap2/cm44xx.h line 616
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +0
-0#define OMAP4_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET 0x0020#define OMAP4430_CM_CEFUSE_CEFUSE_CLKCTRL OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_MOD, 0x0020)arch/arm/mach-omap2/cm44xx.h
Quoted 4 lines
arch/arm/mach-omap2/cm44xx.h +4
-0+ +/* CM2.RESTORE_CM2 register offsets */ +#define OMAP4_CM_L3_1_CLKSTCTRL_RESTORE_OFFSET 0x0000 +#define OMAP4430_CM_L3_1_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0000)arch/arm/mach-omap2/cm44xx.h line 622
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3_2_CLKSTCTRL_RESTORE_OFFSET 0x0004 +#define OMAP4430_CM_L3_2_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0004)arch/arm/mach-omap2/cm44xx.h line 624
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4CFG_CLKSTCTRL_RESTORE_OFFSET 0x0008 +#define OMAP4430_CM_L4CFG_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0008)arch/arm/mach-omap2/cm44xx.h line 626
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_MEMIF_CLKSTCTRL_RESTORE_OFFSET 0x000c +#define OMAP4430_CM_MEMIF_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x000c)arch/arm/mach-omap2/cm44xx.h line 628
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4PER_CLKSTCTRL_RESTORE_OFFSET 0x0010 +#define OMAP4430_CM_L4PER_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0010)arch/arm/mach-omap2/cm44xx.h line 630
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3INIT_CLKSTCTRL_RESTORE_OFFSET 0x0014 +#define OMAP4430_CM_L3INIT_CLKSTCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0014)arch/arm/mach-omap2/cm44xx.h line 632
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3INSTR_L3_3_CLKCTRL_RESTORE_OFFSET 0x0018 +#define OMAP4430_CM_L3INSTR_L3_3_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0018)arch/arm/mach-omap2/cm44xx.h line 634
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE_OFFSET 0x001c +#define OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x001c)arch/arm/mach-omap2/cm44xx.h line 636
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE_OFFSET 0x0020 +#define OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0020)arch/arm/mach-omap2/cm44xx.h line 638
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_CM2_PROFILING_CLKCTRL_RESTORE_OFFSET 0x0024 +#define OMAP4430_CM_CM2_PROFILING_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0024)arch/arm/mach-omap2/cm44xx.h line 640
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_D2D_STATICDEP_RESTORE_OFFSET 0x0028 +#define OMAP4430_CM_D2D_STATICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0028)arch/arm/mach-omap2/cm44xx.h line 642
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3_1_DYNAMICDEP_RESTORE_OFFSET 0x002c +#define OMAP4430_CM_L3_1_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x002c)arch/arm/mach-omap2/cm44xx.h line 644
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3_2_DYNAMICDEP_RESTORE_OFFSET 0x0030 +#define OMAP4430_CM_L3_2_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0030)arch/arm/mach-omap2/cm44xx.h line 646
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_D2D_DYNAMICDEP_RESTORE_OFFSET 0x0034 +#define OMAP4430_CM_D2D_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0034)arch/arm/mach-omap2/cm44xx.h line 648
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4CFG_DYNAMICDEP_RESTORE_OFFSET 0x0038 +#define OMAP4430_CM_L4CFG_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0038)arch/arm/mach-omap2/cm44xx.h line 650
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4PER_DYNAMICDEP_RESTORE_OFFSET 0x003c +#define OMAP4430_CM_L4PER_DYNAMICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x003c)arch/arm/mach-omap2/cm44xx.h line 652
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4PER_GPIO2_CLKCTRL_RESTORE_OFFSET 0x0040 +#define OMAP4430_CM_L4PER_GPIO2_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0040)arch/arm/mach-omap2/cm44xx.h line 654
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4PER_GPIO3_CLKCTRL_RESTORE_OFFSET 0x0044 +#define OMAP4430_CM_L4PER_GPIO3_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0044)arch/arm/mach-omap2/cm44xx.h line 656
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4PER_GPIO4_CLKCTRL_RESTORE_OFFSET 0x0048 +#define OMAP4430_CM_L4PER_GPIO4_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0048)arch/arm/mach-omap2/cm44xx.h line 658
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4PER_GPIO5_CLKCTRL_RESTORE_OFFSET 0x004c +#define OMAP4430_CM_L4PER_GPIO5_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x004c)arch/arm/mach-omap2/cm44xx.h line 660
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L4PER_GPIO6_CLKCTRL_RESTORE_OFFSET 0x0050 +#define OMAP4430_CM_L4PER_GPIO6_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0050)arch/arm/mach-omap2/cm44xx.h line 662
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE_OFFSET 0x0054 +#define OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0054)arch/arm/mach-omap2/cm44xx.h line 664
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE_OFFSET 0x0058 +#define OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x0058)arch/arm/mach-omap2/cm44xx.h line 666
Quoted 2 lines
arch/arm/mach-omap2/cm44xx.h +2
-0+#define OMAP4_CM_SDMA_STATICDEP_RESTORE_OFFSET 0x005c +#define OMAP4430_CM_SDMA_STATICDEP_RESTORE OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_MOD, 0x005c)arch/arm/mach-omap2/prm44xx.h line 44
Quoted 7 lines
arch/arm/mach-omap2/cm44xx.h +0
-0#endif arch/arm/mach-omap2/prm44xx.h +0
-0@@ -44,14 +44,12 @@#define OMAP4430_PRM_IRQSTATUS_TESLA OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0030)arch/arm/mach-omap2/prm44xx.h line 46
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-0#define OMAP4_PRM_IRQENABLE_TESLA_OFFSET 0x0038#define OMAP4430_PRM_IRQENABLE_TESLA OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0038)arch/arm/mach-omap2/prm44xx.h line 48
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-2-#define OMAP4_PRM_PRM_PROFILING_CLKCTRL_OFFSET 0x0040 -#define OMAP4430_PRM_PRM_PROFILING_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0040)arch/arm/mach-omap2/prm44xx.h line 48
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +2
-0+#define OMAP4_CM_PRM_PROFILING_CLKCTRL_OFFSET 0x0040 +#define OMAP4430_CM_PRM_PROFILING_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_MOD, 0x0040)arch/arm/mach-omap2/prm44xx.h
Quoted 4 lines
arch/arm/mach-omap2/prm44xx.h +0
-0/* PRM.CKGEN_PRM register offsets */ #define OMAP4_CM_ABE_DSS_SYS_CLKSEL_OFFSET 0x0000#define OMAP4430_CM_ABE_DSS_SYS_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0000)arch/arm/mach-omap2/prm44xx.h line 53
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-2-#define OMAP4_CM_DPLL_SYS_REF_CLKSEL_OFFSET 0x0004 -#define OMAP4430_CM_DPLL_SYS_REF_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0004)arch/arm/mach-omap2/prm44xx.h line 53
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-0#define OMAP4_CM_L4_WKUP_CLKSEL_OFFSET 0x0008#define OMAP4430_CM_L4_WKUP_CLKSEL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_CKGEN_MOD, 0x0008)arch/arm/mach-omap2/prm44xx.h line 684
Quoted 3 lines
arch/arm/mach-omap2/prm44xx.h +0
-0#define OMAP4_CM_ABE_PLL_REF_CLKSEL_OFFSET 0x000c@@ -686,8 +684,8 @@#define OMAP4430_PRM_LDO_ABB_IVA_SETUP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00d8)arch/arm/mach-omap2/prm44xx.h line 686
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-0#define OMAP4_PRM_LDO_ABB_IVA_CTRL_OFFSET 0x00dc#define OMAP4430_PRM_LDO_ABB_IVA_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00dc)arch/arm/mach-omap2/prm44xx.h line 690
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-2-#define OMAP4_PRM_LDO_BANDGAP_CTRL_OFFSET 0x00e0 -#define OMAP4430_PRM_LDO_BANDGAP_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e0)arch/arm/mach-omap2/prm44xx.h line 688
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +2
-0+#define OMAP4_PRM_LDO_BANDGAP_SETUP_OFFSET 0x00e0 +#define OMAP4430_PRM_LDO_BANDGAP_SETUP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e0)arch/arm/mach-omap2/prm44xx.h line 690
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-0#define OMAP4_PRM_DEVICE_OFF_CTRL_OFFSET 0x00e4#define OMAP4430_PRM_DEVICE_OFF_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00e4)arch/arm/mach-omap2/prm44xx.h line 696
Quoted 3 lines
arch/arm/mach-omap2/prm44xx.h +0
-0#define OMAP4_PRM_PHASE1_CNDP_OFFSET 0x00e8@@ -698,6 +696,8 @@#define OMAP4430_PRM_PHASE2B_CNDP OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f0)arch/arm/mach-omap2/prm44xx.h line 698
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +0
-0#define OMAP4_PRM_MODEM_IF_CTRL_OFFSET 0x00f4#define OMAP4430_PRM_MODEM_IF_CTRL OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f4)arch/arm/mach-omap2/prm44xx.h line 700
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +2
-0+#define OMAP4_PRM_VC_ERRST_OFFSET 0x00f8 +#define OMAP4430_PRM_VC_ERRST OMAP44XX_PRM_REGADDR(OMAP4430_PRM_DEVICE_MOD, 0x00f8)arch/arm/mach-omap2/prm44xx.h line 717
Quoted 7 lines
arch/arm/mach-omap2/prm44xx.h +0
-0/* * PRCM_MPU @@ -715,6 +715,8 @@/* PRCM_MPU.DEVICE_PRM register offsets */ #define OMAP4_PRCM_MPU_PRM_RSTST_OFFSET 0x0000#define OMAP4430_PRCM_MPU_PRM_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD,
0x0000)arch/arm/mach-omap2/prm44xx.h line 719
Quoted 2 lines
arch/arm/mach-omap2/prm44xx.h +2
-0+#define OMAP4_PRCM_MPU_PRM_PSCON_COUNT_OFFSET 0x0004 +#define OMAP4430_PRCM_MPU_PRM_PSCON_COUNT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD,
0x0004)Quoted 6 lines
arch/arm/mach-omap2/prm44xx.h +0
-1/* PRCM_MPU.CPU0 register offsets */ #define OMAP4_PM_CPU0_PWRSTCTRL_OFFSET 0x0000 --1.6.0.4
Quoted 8 lines
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2
In reply to Rajendra NayakQuoted 2 lines
OMAP4: PM: Update PRCM register bitshits and masks for ES2
^^^^^^^^
hmm, bit shits...
Looks like ES2 added another special register feature. Sounds like an
operation to randomly trash register contents? ;)
Kevin
RE: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2
Quoted 11 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Thursday, September 16, 2010 8:46 PM
To: Nayak, Rajendra
Cc: [email protected]; Cousson, Benoit; Paul Walmsley
Subject: Re: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2
Quoted 7 lines
Quoted 1 line
OMAP4: PM: Update PRCM register bitshits and masks for ES2
^^^^^^^^hmm, bit shits...
Looks like ES2 added another special register feature. Sounds like an
operation to randomly trash register contents? ;)
Oops.. that wasn't on purpose ;)
Quoted 3 lines
Kevin
Paul Walmsley
maintainerRe: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2
In reply to Rajendra NayakHi Rajendra
Quoted 7 lines · Rajendra Nayak
This patch updates the PRM and CM register bitshifts and masks for OMAP4430 ES2.0.
Signed-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoît Cousson <[email protected]>Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>
Thanks, queued for 2.6.37 (with the UTF-8 fix in the patch description).
One other note:
Quoted 1 line
#define
OMAP4430_IDLEST_MASKBITFIELD(16, 17)
We should really get rid of all these 'BITFIELD' defines, and just replace them with simple bitshifts. Care to spin a patch to do that during the 2.6.38 timeframe?
- Paul
RE: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2
Quoted 24 lines
-----Original Message-----
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 11:47 AM
To: Nayak, Rajendra
Cc: [email protected]; Cousson, Benoit; Kevin Hilman
Subject: Re: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2Hi Rajendra
Quoted 7 lines · Rajendra Nayak
This patch updates the PRM and CM register bitshifts and masks for OMAP4430 ES2.0.
Signed-off-by Rajendra Nayak <[email protected]>Signed-off-by Benoît Cousson <[email protected]>Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>Thanks, queued for 2.6.37 (with the UTF-8 fix in the patch description).
Quoted 8 lines
One other note:
Quoted 1 line
#define
OMAP4430_IDLEST_MASKBITFIELD(16,17)
We should really get rid of all these 'BITFIELD' defines, and just replace them with simple bitshifts. Care to spin a patch to do that during the 2.6.38 timeframe?
Sure, there's already a patch for this which I guess Benoit should be posting pretty soon.
Quoted 3 lines
- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2
Quoted 20 lines · Rajendra
Quoted 20 lines
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 11:47 AMHi Rajendra
Quoted 7 lines · Rajendra Nayak
This patch updates the PRM and CM register bitshifts and masks for OMAP4430 ES2.0.
Signed-off-by Rajendra Nayak<[email protected]>Signed-off-by Benoît Cousson<[email protected]>Cc Paul Walmsley<[email protected]>Cc Kevin Hilman<[email protected]>Thanks, queued for 2.6.37 (with the UTF-8 fix in the patch description).
One other note:
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
#define OMAP4430_IDLEST_MASK BITFIELD(16,17)
We should really get rid of all these 'BITFIELD' defines, and just replace them with simple bitshifts. Care to spin a patch to do that during the 2.6.38 timeframe?
Sure, there's already a patch for this which I guess Benoit should be posting pretty soon.
Yes, I already updated the scripts a couple of weeks ago to fix that on top of Rajendra's series. Since it was not critical, I kind of forgot it :-)
I can sent the fix to you right now if you want?
Benoit
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Paul Walmsley
maintainerRe: [PATCH 1/5] OMAP4: PM: Update PRCM register bitshits and masks for ES2
Quoted 9 lines · Benoit
Quoted 8 lines · Rajendra
Quoted 7 lines
From: Paul Walmsley [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 11:47 AMWe should really get rid of all these 'BITFIELD' defines, and just replace them with simple bitshifts. Care to spin a patch to do that during the 2.6.38 timeframe?
Quoted 8 lines
Quoted 2 lines
Sure, there's already a patch for this which I guess Benoit should be posting pretty soon.
Yes, I already updated the scripts a couple of weeks ago to fix that on top of Rajendra's series.
Since it was not critical, I kind of forgot it :-)I can sent the fix to you right now if you want?
Sure, if you have it ready to go, I'll take it.
- Paul