Lines Matching +full:static +full:- +full:enable
28 static DEFINE_MUTEX(clocks_mutex);
31 static void clk_enable_unlocked(struct clk *clk) in clk_enable_unlocked()
33 if (clk->set && (clk->usage++) == 0) in clk_enable_unlocked()
34 clk->set(clk, 1); in clk_enable_unlocked()
37 static void clk_disable_unlocked(struct clk *clk) in clk_disable_unlocked()
39 if (clk->set && (--clk->usage) == 0) in clk_disable_unlocked()
40 clk->set(clk, 0); in clk_disable_unlocked()
43 static void bcm_hwclock_set(u32 mask, int enable) in bcm_hwclock_set() argument
48 if (enable) in bcm_hwclock_set()
58 static void enet_misc_set(struct clk *clk, int enable) in enet_misc_set() argument
71 bcm_hwclock_set(mask, enable); in enet_misc_set()
74 static struct clk clk_enet_misc = {
79 * Ethernet MAC clocks: only relevant on 6358, silently enable misc
82 static void enetx_set(struct clk *clk, int enable) in enetx_set() argument
84 if (enable) in enetx_set()
92 if (clk->id == 0) in enetx_set()
96 bcm_hwclock_set(mask, enable); in enetx_set()
100 static struct clk clk_enet0 = {
105 static struct clk clk_enet1 = {
113 static void ephy_set(struct clk *clk, int enable) in ephy_set() argument
116 bcm_hwclock_set(CKCTL_6358_EPHY_EN, enable); in ephy_set()
120 static struct clk clk_ephy = {
127 static void swpkt_sar_set(struct clk *clk, int enable) in swpkt_sar_set() argument
130 bcm_hwclock_set(CKCTL_6368_SWPKT_SAR_EN, enable); in swpkt_sar_set()
135 static struct clk clk_swpkt_sar = {
142 static void swpkt_usb_set(struct clk *clk, int enable) in swpkt_usb_set() argument
145 bcm_hwclock_set(CKCTL_6368_SWPKT_USB_EN, enable); in swpkt_usb_set()
150 static struct clk clk_swpkt_usb = {
157 static void enetsw_set(struct clk *clk, int enable) in enetsw_set() argument
160 bcm_hwclock_set(CKCTL_6328_ROBOSW_EN, enable); in enetsw_set()
162 bcm_hwclock_set(CKCTL_6362_ROBOSW_EN, enable); in enetsw_set()
164 if (enable) { in enetsw_set()
171 bcm_hwclock_set(CKCTL_6368_ROBOSW_EN, enable); in enetsw_set()
176 if (enable) { in enetsw_set()
185 static struct clk clk_enetsw = {
192 static void pcm_set(struct clk *clk, int enable) in pcm_set() argument
195 bcm_hwclock_set(CKCTL_3368_PCM_EN, enable); in pcm_set()
197 bcm_hwclock_set(CKCTL_6358_PCM_EN, enable); in pcm_set()
200 static struct clk clk_pcm = {
207 static void usbh_set(struct clk *clk, int enable) in usbh_set() argument
210 bcm_hwclock_set(CKCTL_6328_USBH_EN, enable); in usbh_set()
212 bcm_hwclock_set(CKCTL_6348_USBH_EN, enable); in usbh_set()
214 bcm_hwclock_set(CKCTL_6362_USBH_EN, enable); in usbh_set()
216 bcm_hwclock_set(CKCTL_6368_USBH_EN, enable); in usbh_set()
219 static struct clk clk_usbh = {
226 static void usbd_set(struct clk *clk, int enable) in usbd_set() argument
229 bcm_hwclock_set(CKCTL_6328_USBD_EN, enable); in usbd_set()
231 bcm_hwclock_set(CKCTL_6362_USBD_EN, enable); in usbd_set()
233 bcm_hwclock_set(CKCTL_6368_USBD_EN, enable); in usbd_set()
236 static struct clk clk_usbd = {
243 static void spi_set(struct clk *clk, int enable) in spi_set() argument
258 bcm_hwclock_set(mask, enable); in spi_set()
261 static struct clk clk_spi = {
268 static void hsspi_set(struct clk *clk, int enable) in hsspi_set() argument
279 bcm_hwclock_set(mask, enable); in hsspi_set()
282 static struct clk clk_hsspi = {
289 static struct clk clk_hsspi_pll;
294 static void xtm_set(struct clk *clk, int enable) in xtm_set() argument
299 if (enable) in xtm_set()
304 bcm_hwclock_set(CKCTL_6368_SAR_EN, enable); in xtm_set()
306 if (enable) { in xtm_set()
316 static struct clk clk_xtm = {
323 static void ipsec_set(struct clk *clk, int enable) in ipsec_set() argument
326 bcm_hwclock_set(CKCTL_6362_IPSEC_EN, enable); in ipsec_set()
328 bcm_hwclock_set(CKCTL_6368_IPSEC_EN, enable); in ipsec_set()
331 static struct clk clk_ipsec = {
339 static void pcie_set(struct clk *clk, int enable) in pcie_set() argument
342 bcm_hwclock_set(CKCTL_6328_PCIE_EN, enable); in pcie_set()
344 bcm_hwclock_set(CKCTL_6362_PCIE_EN, enable); in pcie_set()
347 static struct clk clk_pcie = {
354 static struct clk clk_periph = {
403 return clk->rate; in clk_get_rate()
420 static struct clk_lookup bcm3368_clks[] = {
437 static struct clk_lookup bcm6328_clks[] = {
442 CLKDEV_INIT("bcm63xx-hsspi.0", "pll", &clk_hsspi_pll),
451 static struct clk_lookup bcm6338_clks[] = {
465 static struct clk_lookup bcm6345_clks[] = {
479 static struct clk_lookup bcm6348_clks[] = {
494 static struct clk_lookup bcm6358_clks[] = {
513 static struct clk_lookup bcm6362_clks[] = {
518 CLKDEV_INIT("bcm63xx-hsspi.0", "pll", &clk_hsspi_pll),
529 static struct clk_lookup bcm6368_clks[] = {
546 static int __init bcm63xx_clk_init(void) in bcm63xx_clk_init()