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

TOMOYO Linux Cross Reference
Linux/arch/mips/lantiq/clk.h

Version: ~ [ linux-6.0-rc6 ] ~ [ linux-5.19.10 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.69 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.144 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.214 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.259 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.294 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.329 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ 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 /*
  2  *  This program is free software; you can redistribute it and/or modify it
  3  *  under the terms of the GNU General Public License version 2 as published
  4  *  by the Free Software Foundation.
  5  *
  6  * Copyright (C) 2010 John Crispin <john@phrozen.org>
  7  */
  8 
  9 #ifndef _LTQ_CLK_H__
 10 #define _LTQ_CLK_H__
 11 
 12 #include <linux/clkdev.h>
 13 
 14 /* clock speeds */
 15 #define CLOCK_33M       33333333
 16 #define CLOCK_60M       60000000
 17 #define CLOCK_62_5M     62500000
 18 #define CLOCK_83M       83333333
 19 #define CLOCK_83_5M     83500000
 20 #define CLOCK_98_304M   98304000
 21 #define CLOCK_100M      100000000
 22 #define CLOCK_111M      111111111
 23 #define CLOCK_125M      125000000
 24 #define CLOCK_133M      133333333
 25 #define CLOCK_150M      150000000
 26 #define CLOCK_166M      166666666
 27 #define CLOCK_167M      166666667
 28 #define CLOCK_196_608M  196608000
 29 #define CLOCK_200M      200000000
 30 #define CLOCK_222M      222000000
 31 #define CLOCK_240M      240000000
 32 #define CLOCK_250M      250000000
 33 #define CLOCK_266M      266666666
 34 #define CLOCK_288M      288888888
 35 #define CLOCK_300M      300000000
 36 #define CLOCK_333M      333333333
 37 #define CLOCK_360M      360000000
 38 #define CLOCK_393M      393215332
 39 #define CLOCK_400M      400000000
 40 #define CLOCK_432M      432000000
 41 #define CLOCK_450M      450000000
 42 #define CLOCK_500M      500000000
 43 #define CLOCK_600M      600000000
 44 #define CLOCK_666M      666666666
 45 #define CLOCK_720M      720000000
 46 
 47 /* clock out speeds */
 48 #define CLOCK_32_768K   32768
 49 #define CLOCK_1_536M    1536000
 50 #define CLOCK_2_5M      2500000
 51 #define CLOCK_12M       12000000
 52 #define CLOCK_24M       24000000
 53 #define CLOCK_25M       25000000
 54 #define CLOCK_30M       30000000
 55 #define CLOCK_40M       40000000
 56 #define CLOCK_48M       48000000
 57 #define CLOCK_50M       50000000
 58 #define CLOCK_60M       60000000
 59 
 60 struct clk {
 61         struct clk_lookup cl;
 62         unsigned long rate;
 63         unsigned long *rates;
 64         unsigned int module;
 65         unsigned int bits;
 66         unsigned long (*get_rate) (void);
 67         int (*enable) (struct clk *clk);
 68         void (*disable) (struct clk *clk);
 69         int (*activate) (struct clk *clk);
 70         void (*deactivate) (struct clk *clk);
 71         void (*reboot) (struct clk *clk);
 72 };
 73 
 74 extern void clkdev_add_static(unsigned long cpu, unsigned long fpi,
 75                                 unsigned long io, unsigned long ppe);
 76 
 77 extern unsigned long ltq_danube_cpu_hz(void);
 78 extern unsigned long ltq_danube_fpi_hz(void);
 79 extern unsigned long ltq_danube_pp32_hz(void);
 80 
 81 extern unsigned long ltq_ar9_cpu_hz(void);
 82 extern unsigned long ltq_ar9_fpi_hz(void);
 83 
 84 extern unsigned long ltq_vr9_cpu_hz(void);
 85 extern unsigned long ltq_vr9_fpi_hz(void);
 86 extern unsigned long ltq_vr9_pp32_hz(void);
 87 
 88 extern unsigned long ltq_ar10_cpu_hz(void);
 89 extern unsigned long ltq_ar10_fpi_hz(void);
 90 extern unsigned long ltq_ar10_pp32_hz(void);
 91 
 92 extern unsigned long ltq_grx390_cpu_hz(void);
 93 extern unsigned long ltq_grx390_fpi_hz(void);
 94 extern unsigned long ltq_grx390_pp32_hz(void);
 95 
 96 #endif
 97 

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