linux/drivers/clk/clk-bcm2835.c
<<
m/drivers/clk/clk-bcm2835.c">rm> img srcf17.6.static/gfx/right.png" alt=">>">rm rm> rm> input typ.6.hidden" nam.6.navtarget" v2.6.">rm> input typ.6.text" nam.6.search" id6.search">rm> butt > typ.6.submit">Search href="../ rm> Pnues hra>rm rm input typ.6.hidden" nam.6.ajax_lookup" id6.ajax_lookup" v2.6.">r"../l href="..r"../l hdiv class="headingbott m">
hdiv id6.file_contents"./l 1hra> a class="comment">/* /l 2hra> a class="comment"> * Copyright (C) 2010 Broadcom /l 3hra> a class="comment"> * Copyright (C) 2012 Stephen Warren /l 4hra> a class="comment"> * /l 5hra> a class="comment"> * This program is free software; you c redistribute it and/or modify /l 6hra> a class="comment"> * it under the terms of the GNU General Public License as published by /l 7hra> a class="comment"> * the Free Software Founda ; either vers > 2 of the License, or /l 8hra> a class="comment"> * (at your ) any later vers >. /l 9hra> a class="comment"> * /lion a> a class="comment"> * This program is distributed in the hope that it will be useful, /l11hra> a class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of /l12hra> a class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the /l13hra> a class="comment"> * GNU General Public License for more details. /l14hra> a class="comment"> * /l15hra> a class="comment"> * You should have received a copy of the GNU General Public License /l16hra> a class="comment"> * along with this program; if not, write to the Free Software /l17hra> a class="comment"> * Founda , Inc., 59 Temple Place, Suite 330, Bost , MA 02111-1307 USA /l18hra> a class="comment"> */ /l19hra> /l2on a>#include <<> /l21n a>#include <<> /l22n a>#include <<> /l23n a>#include <<> /l24n a>#include <<> /l25hra> /l26hra>static constinueinuef1+code=__initconst" class="sref">__initconsthra> structinueinuef1+code=of_device_id" class="sref">of_device_idhra> nueinuef1+code=clk_match" class="sref">clk_matchhra>[] = { /l27hra> { .nueinuef1+code=compatible" class="sref">compatiblehra> = a class="string">"fixed-clock" da ahra> = ueinuef1+code=of_fixed_clk_setup" class="sref">of_fixed_clk_setuphra>, }, /l28hra> { } /l29hra>}; /l30hra> /l31hra> a class="comment">/* /l32hra> a class="comment"> * These are fixed clocks. They're probably not all root clocks and it may /l33hra> a class="comment"> * be possible to turn them > and off but until this is mapped out better /l34hra> a class="comment"> * it's the only way they c be used. /l35hra> a class="comment"> */ /l36hra>voidinueinuef1+code=__init" class="sref">__inithra> nueinuef1+code=bcm2835_init_clocks" class="sref">bcm2835_init_clockshra>(void) /l37hra>{ /l38hra> structinueinuef1+code=clk" class="sref">clkhra> *nueinuef1+code=clk" class="sref">clkhra>; /l39hra> intinueinuef1+code=ret" class="sref">rethra>; /l40hra> /l41hra> nueinuef1+code=clk" class="sref">clkhra> = ueinuef1+code=clk_register_fixed_rate" class="sref">clk_register_fixed_ratehra>( ueinuef1+code=NULL" class="sref">NULLhra>, a class="string">"sys_pclk" NULLhra>, alue="v2.6.16.10" > v2.6.16.10NULLhra>, alue="v2.6.16.10"2" > v2.6.20.2, alue="v2..2 and off but until 4his i43bcm2835.c#L40f ot; , alue="v2.oS_ERRk" ){ , alue="v2.6.16.10" > L33" ring">&qed\n v2.6.16.10<) static constinueinuef1+code=__initcons4">__init4ra> nueinuef1+code=bcm2435_in46fixed_rate" class="sref">clk_register_fixed_ratehra>( ueinuef1+code=NULL" class="sref">NULLhra>, a class="string">"sys_pclk" NULLhra>, alue="v2.6.16.1apb > v2.6.16.10NULLhra>, alue="v2.6.16.10"2" > v2.6.20.2, alue="v2..2/l47fixed_rate" 126000000) *nueinuef1+code4clk" 48bcm2835.c#L40f ot; , alue="v2.oS_ERRk" ){ re4hra>; , alue="v2.6.16.1apb > L33" ring">&qed\n v2.6.16.10<) /l45hra> nueinuef1+code=clk" class="sre5">clkhra5 = ueinuef1+code=clk_r5giste5_fixed_rate" class="sref">clk_register_fixed_ratehra>( ueinuef1+code=NULL" class="sref">NULLhra>, a class="string">"sys_pclk" NULLhra>, alue="v2.6.16.1uart0 > v2.6.16.10NULLhra>, alue="v2.6.16.10"2" > v2.6.20.2, alue="v2..2 and off but until 5his i53bcm2835.c#L40f ot; , alue="v2.oS_ERRk" ){ , alue="v2.6.16.1uart0 > L33" ring">&qed\n v2.6.16.10<) clline" nam.6.L40">/l40hra>( ueinuef1+code=NULL" class="sr6.L22"a>, a class="string">&qu6.L22"k" /o class="sref">NULLhra>, alue="v2.6.16.10"2" NULLhra>, alue="v2.6.16.120m.6.00.uart v2.6.16.10<) __init5ra> nueinuef1+code=bcm2535_in56bcm2835.c#L40f ot; /l40hra>{ /l57fixed_rate" t; , alue="v2.6.16.1uart0 > LaliasL33" ring">&qed\n v2.6.16.10<) *nueinuef1+code5clk" 58ra> nueinuef1+code=clk" class="sre5sref">re5hra>; clk_register_fixed_ratehra>( ueinuef1+code=NULL" class="sref">NULLhra>, a class="string">"sys_pclk" NULLhra>, alue="v2.6.16.1uart1 > v2.6.16.10NULLhra>, alue="v2.6.16.10"2" > v2.6.20.2, alue="v2..2/l460fixed_rate" 125000000) clkhra6 = ueinuef1+code=clk_r6giste61bcm2835.c#L40f ot; , alue="v2.oS_ERRk" ){ , alue="v2.6.16.1uart1 > L33" ring">&qed\n v2.6.16.10<) and off but until 6his i63fixed_rate" class="sref">clline" nam.6.L40">/l40hra>( ueinuef1+code=NULL" class="sr6.L22"a>, a class="string">&qu6.L22"k" /o class="sref">NULLhra>, alue="v2.6.16.10"2" NULLhra>, alue="v2.6.16.120m15.00.uart v2.6.16.10<) /l40hra>{ , alue="v2.6.16.1uart1 > LaliasL33" ring">&qed\n v2.6.16.10<) nueinuef1+code=clk" class="sre68" id6.L68" class="line" nam.6.L68">/l67fixed_rate" class="sref">clofm.6.L835_init_clockshra>ofm.6.L835_k" /l2) *nueinuef1+code6clk" 68ra> }; re6hra>; T5" criginal LXRm2835.c#L bline" class="srhttp://sourceforge.net/projects/lxq">LXRmam.6u35_y.10"2"lass=experi6.L3al class="lbliclass="srmailto:lxq@m.6.L.no">lxq@m.6.L.no.10". 6e855d6d7da3ass="lisubnoo>&q"> lxq.m.6.L.no kindly host/l 7h class="srhttp://www.qedpill-m.6pro.no">Redpill L.6pro AS.10"2"m.6.L24"d6.LL.6.Lde=ofult="v5.c#L3perf1dris serverss since 1995. 6e855d68d/bodyd6d/htmliv