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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c

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
  2 /*
  3  * OMAP2/3 clockdomain common data
  4  *
  5  * Copyright (C) 2008-2011 Texas Instruments, Inc.
  6  * Copyright (C) 2008-2010 Nokia Corporation
  7  *
  8  * Paul Walmsley, Jouni Högander
  9  *
 10  * This file contains clockdomains and clockdomain wakeup/sleep
 11  * dependencies for the OMAP2/3 chips.  Some notes:
 12  *
 13  * A useful validation rule for struct clockdomain: Any clockdomain
 14  * referenced by a wkdep_srcs or sleepdep_srcs array must have a
 15  * dep_bit assigned.  So wkdep_srcs/sleepdep_srcs are really just
 16  * software-controllable dependencies.  Non-software-controllable
 17  * dependencies do exist, but they are not encoded below (yet).
 18  *
 19  * 24xx does not support programmable sleep dependencies (SLEEPDEP)
 20  *
 21  * The overly-specific dep_bit names are due to a bit name collision
 22  * with CM_FCLKEN_{DSP,IVA2}.  The DSP/IVA2 PM_WKDEP and CM_SLEEPDEP shift
 23  * value are the same for all powerdomains: 2
 24  *
 25  * XXX should dep_bit be a mask, so we can test to see if it is 0 as a
 26  * sanity check?
 27  * XXX encode hardware fixed wakeup dependencies -- esp. for 3430 CORE
 28  */
 29 
 30 /*
 31  * To-Do List
 32  * -> Port the Sleep/Wakeup dependencies for the domains
 33  *    from the Power domain framework
 34  */
 35 
 36 #include <linux/kernel.h>
 37 #include <linux/io.h>
 38 
 39 #include "clockdomain.h"
 40 #include "prm2xxx_3xxx.h"
 41 #include "cm2xxx_3xxx.h"
 42 #include "cm-regbits-24xx.h"
 43 #include "cm-regbits-34xx.h"
 44 #include "cm-regbits-44xx.h"
 45 #include "prm-regbits-24xx.h"
 46 #include "prm-regbits-34xx.h"
 47 
 48 /*
 49  * Clockdomain dependencies for wkdeps/sleepdeps
 50  *
 51  * XXX Hardware dependencies (e.g., dependencies that cannot be
 52  * changed in software) are not included here yet, but should be.
 53  */
 54 
 55 /* Wakeup dependency source arrays */
 56 
 57 /* 2xxx-specific possible dependencies */
 58 
 59 /* 2xxx PM_WKDEP_GFX: CORE, MPU, WKUP */
 60 struct clkdm_dep gfx_24xx_wkdeps[] = {
 61         { .clkdm_name = "core_l3_clkdm" },
 62         { .clkdm_name = "core_l4_clkdm" },
 63         { .clkdm_name = "mpu_clkdm" },
 64         { .clkdm_name = "wkup_clkdm" },
 65         { NULL },
 66 };
 67 
 68 /* 2xxx PM_WKDEP_DSP: CORE, MPU, WKUP */
 69 struct clkdm_dep dsp_24xx_wkdeps[] = {
 70         { .clkdm_name = "core_l3_clkdm" },
 71         { .clkdm_name = "core_l4_clkdm" },
 72         { .clkdm_name = "mpu_clkdm" },
 73         { .clkdm_name = "wkup_clkdm" },
 74         { NULL },
 75 };
 76 
 77 
 78 /*
 79  * OMAP2/3-common clockdomains
 80  *
 81  * Even though the 2420 has a single PRCM module from the
 82  * interconnect's perspective, internally it does appear to have
 83  * separate PRM and CM clockdomains.  The usual test case is
 84  * sys_clkout/sys_clkout2.
 85  */
 86 
 87 /* This is an implicit clockdomain - it is never defined as such in TRM */
 88 struct clockdomain wkup_common_clkdm = {
 89         .name           = "wkup_clkdm",
 90         .pwrdm          = { .name = "wkup_pwrdm" },
 91         .dep_bit        = OMAP_EN_WKUP_SHIFT,
 92         .flags          = CLKDM_ACTIVE_WITH_MPU,
 93 };
 94 

~ [ 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