~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/cm3xxx.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * OMAP2/3 Clock Management (CM) register definitions
  4  *
  5  * Copyright (C) 2007-2009 Texas Instruments, Inc.
  6  * Copyright (C) 2007-2010 Nokia Corporation
  7  * Paul Walmsley
  8  *
  9  * The CM hardware modules on the OMAP2/3 are quite similar to each
 10  * other.  The CM modules/instances on OMAP4 are quite different, so
 11  * they are handled in a separate file.
 12  */
 13 #ifndef __ARCH_ASM_MACH_OMAP2_CM3XXX_H
 14 #define __ARCH_ASM_MACH_OMAP2_CM3XXX_H
 15 
 16 #include "prcm-common.h"
 17 #include "cm2xxx_3xxx.h"
 18 
 19 #define OMAP34XX_CM_REGADDR(module, reg)                                \
 20                         OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE + (module) + (reg))
 21 
 22 
 23 /*
 24  * OMAP3-specific global CM registers
 25  * Use cm_{read,write}_reg() with these registers.
 26  * These registers appear once per CM module.
 27  */
 28 
 29 #define OMAP3430_CM_SYSCONFIG           0x0010
 30 #define OMAP3430_CM_POLCTRL             0x009c
 31 
 32 #define OMAP3_CM_CLKOUT_CTRL_OFFSET     0x0070
 33 #define OMAP3430_CM_CLKOUT_CTRL         OMAP_CM_REGADDR(OMAP3430_CCR_MOD, 0x0070)
 34 
 35 /*
 36  * Module specific CM register offsets from CM_BASE + domain offset
 37  * Use cm_{read,write}_mod_reg() with these registers.
 38  * These register offsets generally appear in more than one PRCM submodule.
 39  */
 40 
 41 /* OMAP3-specific register offsets */
 42 
 43 #define OMAP3430_CM_CLKEN_PLL                           0x0004
 44 #define OMAP3430ES2_CM_CLKEN2                           0x0004
 45 #define OMAP3430ES2_CM_FCLKEN3                          0x0008
 46 #define OMAP3430_CM_IDLEST_PLL                          CM_IDLEST2
 47 #define OMAP3430_CM_AUTOIDLE_PLL                        CM_AUTOIDLE2
 48 #define OMAP3430ES2_CM_AUTOIDLE2_PLL                    CM_AUTOIDLE2
 49 #define OMAP3430_CM_CLKSEL1                             CM_CLKSEL
 50 #define OMAP3430_CM_CLKSEL1_PLL                         CM_CLKSEL
 51 #define OMAP3430_CM_CLKSEL2_PLL                         CM_CLKSEL2
 52 #define OMAP3430_CM_SLEEPDEP                            CM_CLKSEL2
 53 #define OMAP3430_CM_CLKSEL3                             OMAP2_CM_CLKSTCTRL
 54 #define OMAP3430_CM_CLKSTST                             0x004c
 55 #define OMAP3430ES2_CM_CLKSEL4                          0x004c
 56 #define OMAP3430ES2_CM_CLKSEL5                          0x0050
 57 #define OMAP3430_CM_CLKSEL2_EMU                         0x0050
 58 #define OMAP3430_CM_CLKSEL3_EMU                         0x0054
 59 
 60 
 61 /* CM_IDLEST bit field values to indicate deasserted IdleReq */
 62 
 63 #define OMAP34XX_CM_IDLEST_VAL                          1
 64 
 65 
 66 #ifndef __ASSEMBLER__
 67 
 68 extern void omap3_cm_save_context(void);
 69 extern void omap3_cm_restore_context(void);
 70 extern void omap3_cm_save_scratchpad_contents(u32 *ptr);
 71 
 72 int __init omap3xxx_cm_init(const struct omap_prcm_init_data *data);
 73 
 74 #endif
 75 
 76 #endif
 77 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php