162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H 362306a36Sopenharmony_ci#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci/* 662306a36Sopenharmony_ci * OMAP3430 Clock Management register bits 762306a36Sopenharmony_ci * 862306a36Sopenharmony_ci * Copyright (C) 2007-2008 Texas Instruments, Inc. 962306a36Sopenharmony_ci * Copyright (C) 2007-2008 Nokia Corporation 1062306a36Sopenharmony_ci * 1162306a36Sopenharmony_ci * Written by Paul Walmsley 1262306a36Sopenharmony_ci */ 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_MASK (1 << 0) 1562306a36Sopenharmony_ci#define OMAP3430_ST_IVA2_SHIFT 0 1662306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_IVA2_MASK (0x3 << 0) 1762306a36Sopenharmony_ci#define OMAP3430_CLKACTIVITY_IVA2_MASK (1 << 0) 1862306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_MPU_MASK (0x3 << 0) 1962306a36Sopenharmony_ci#define OMAP3430_ST_AES2_SHIFT 28 2062306a36Sopenharmony_ci#define OMAP3430_ST_SHA12_SHIFT 27 2162306a36Sopenharmony_ci#define AM35XX_ST_UART4_SHIFT 23 2262306a36Sopenharmony_ci#define OMAP3430_ST_HDQ_SHIFT 22 2362306a36Sopenharmony_ci#define OMAP3430ES2_ST_SSI_IDLE_SHIFT 8 2462306a36Sopenharmony_ci#define OMAP3430_ST_MAILBOXES_SHIFT 7 2562306a36Sopenharmony_ci#define OMAP3430_ST_SAD2D_SHIFT 3 2662306a36Sopenharmony_ci#define OMAP3430_ST_SDMA_SHIFT 2 2762306a36Sopenharmony_ci#define OMAP3430ES2_ST_USBTLL_SHIFT 2 2862306a36Sopenharmony_ci#define OMAP3430ES1_CLKTRCTRL_D2D_MASK (0x3 << 4) 2962306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_L4_MASK (0x3 << 2) 3062306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_L3_MASK (0x3 << 0) 3162306a36Sopenharmony_ci#define OMAP3430ES1_CLKTRCTRL_GFX_MASK (0x3 << 0) 3262306a36Sopenharmony_ci#define OMAP3430ES2_CLKTRCTRL_SGX_MASK (0x3 << 0) 3362306a36Sopenharmony_ci#define OMAP3430_ST_WDT2_SHIFT 5 3462306a36Sopenharmony_ci#define OMAP3430_ST_32KSYNC_SHIFT 2 3562306a36Sopenharmony_ci#define OMAP3430_AUTO_PERIPH_DPLL_MASK (0x7 << 3) 3662306a36Sopenharmony_ci#define OMAP3430ES2_ST_DSS_IDLE_SHIFT 1 3762306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_DSS_MASK (0x3 << 0) 3862306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_CAM_MASK (0x3 << 0) 3962306a36Sopenharmony_ci#define OMAP3430_ST_MCBSP4_SHIFT 2 4062306a36Sopenharmony_ci#define OMAP3430_ST_MCBSP3_SHIFT 1 4162306a36Sopenharmony_ci#define OMAP3430_ST_MCBSP2_SHIFT 0 4262306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_PER_MASK (0x3 << 0) 4362306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_EMU_MASK (0x3 << 0) 4462306a36Sopenharmony_ci#define OMAP3430_CLKTRCTRL_NEON_MASK (0x3 << 0) 4562306a36Sopenharmony_ci#define OMAP3430ES2_EN_USBHOST2_SHIFT 1 4662306a36Sopenharmony_ci#define OMAP3430ES2_ST_USBHOST_IDLE_SHIFT 1 4762306a36Sopenharmony_ci#define OMAP3430ES2_CLKTRCTRL_USBHOST_MASK (3 << 0) 4862306a36Sopenharmony_ci#define OMAP34XX_CLKSTCTRL_DISABLE_AUTO 0x0 4962306a36Sopenharmony_ci#define OMAP34XX_CLKSTCTRL_FORCE_SLEEP 0x1 5062306a36Sopenharmony_ci#define OMAP34XX_CLKSTCTRL_FORCE_WAKEUP 0x2 5162306a36Sopenharmony_ci#define OMAP34XX_CLKSTCTRL_ENABLE_AUTO 0x3 5262306a36Sopenharmony_ci#endif 53