9 #include <linux/module.h>
22 static void clk_enable_unlocked(
struct clk *
clk)
28 static void clk_disable_unlocked(
struct clk *clk)
49 static void enet_misc_set(
struct clk *clk,
int enable)
62 bcm_hwclock_set(mask, enable);
65 static struct clk clk_enet_misc = {
73 static void enetx_set(
struct clk *clk,
int enable)
76 clk_enable_unlocked(&clk_enet_misc);
78 clk_disable_unlocked(&clk_enet_misc);
87 bcm_hwclock_set(mask, enable);
91 static struct clk clk_enet0 = {
96 static struct clk clk_enet1 = {
104 static void ephy_set(
struct clk *clk,
int enable)
112 static struct clk clk_ephy = {
119 static void enetsw_set(
struct clk *clk,
int enable)
140 static struct clk clk_enetsw = {
147 static void pcm_set(
struct clk *clk,
int enable)
154 static struct clk clk_pcm = {
161 static void usbh_set(
struct clk *clk,
int enable)
171 static struct clk clk_usbh = {
178 static void usbd_set(
struct clk *clk,
int enable)
186 static struct clk clk_usbd = {
193 static void spi_set(
struct clk *clk,
int enable)
206 bcm_hwclock_set(mask, enable);
209 static struct clk clk_spi = {
216 static void xtm_set(
struct clk *clk,
int enable)
239 static struct clk clk_xtm = {
246 static void ipsec_set(
struct clk *clk,
int enable)
251 static struct clk clk_ipsec = {
258 static struct clk clk_periph = {
259 .rate = (50 * 1000 * 1000),
269 clk_enable_unlocked(clk);
279 clk_disable_unlocked(clk);
298 if (!
strcmp(
id,
"enetsw"))
310 if (!
strcmp(
id,
"periph"))