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

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

Version: ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ 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.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * OMAP2-specific DPLL control functions
  3  *
  4  * Copyright (C) 2011 Nokia Corporation
  5  * Paul Walmsley
  6  *
  7  * This program is free software; you can redistribute it and/or modify
  8  * it under the terms of the GNU General Public License version 2 as
  9  * published by the Free Software Foundation.
 10  */
 11 
 12 #include <linux/kernel.h>
 13 #include <linux/errno.h>
 14 #include <linux/clk.h>
 15 #include <linux/io.h>
 16 
 17 #include "clock.h"
 18 #include "cm2xxx.h"
 19 #include "cm-regbits-24xx.h"
 20 
 21 /* Private functions */
 22 
 23 /**
 24  * _allow_idle - enable DPLL autoidle bits
 25  * @clk: struct clk * of the DPLL to operate on
 26  *
 27  * Enable DPLL automatic idle control.  The DPLL will enter low-power
 28  * stop when its downstream clocks are gated.  No return value.
 29  * REVISIT: DPLL can optionally enter low-power bypass by writing 0x1
 30  * instead.  Add some mechanism to optionally enter this mode.
 31  */
 32 static void _allow_idle(struct clk_hw_omap *clk)
 33 {
 34         if (!clk || !clk->dpll_data)
 35                 return;
 36 
 37         omap2xxx_cm_set_dpll_auto_low_power_stop();
 38 }
 39 
 40 /**
 41  * _deny_idle - prevent DPLL from automatically idling
 42  * @clk: struct clk * of the DPLL to operate on
 43  *
 44  * Disable DPLL automatic idle control.  No return value.
 45  */
 46 static void _deny_idle(struct clk_hw_omap *clk)
 47 {
 48         if (!clk || !clk->dpll_data)
 49                 return;
 50 
 51         omap2xxx_cm_set_dpll_disable_autoidle();
 52 }
 53 
 54 
 55 /* Public data */
 56 const struct clk_hw_omap_ops clkhwops_omap2xxx_dpll = {
 57         .allow_idle     = _allow_idle,
 58         .deny_idle      = _deny_idle,
 59 };
 60 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp