File tree Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 15
15
16
16
static DEFINE_SPINLOCK (gmac_lock );
17
17
18
+
19
+ #define SUN7I_A20_GMAC_GPIT 2
20
+ #define SUN7I_A20_GMAC_MASK 0x3
21
+ #define SUN7I_A20_GMAC_PARENTS 2
22
+
23
+ static u32 sun7i_a20_gmac_mux_table [SUN7I_A20_GMAC_PARENTS ] = {
24
+ 0x00 , /* Select mii_phy_tx_clk */
25
+ 0x02 , /* Select gmac_int_tx_clk */
26
+ };
27
+
18
28
/**
19
29
* sun7i_a20_gmac_clk_setup - Setup function for A20/A31 GMAC clock module
30
+ * @node: &struct device_node for the clock
20
31
*
21
32
* This clock looks something like this
22
33
* ________________________
@@ -39,16 +50,6 @@ static DEFINE_SPINLOCK(gmac_lock);
39
50
* enable/disable this clock to configure the required state. The clock
40
51
* driver then responds by auto-reparenting the clock.
41
52
*/
42
-
43
- #define SUN7I_A20_GMAC_GPIT 2
44
- #define SUN7I_A20_GMAC_MASK 0x3
45
- #define SUN7I_A20_GMAC_PARENTS 2
46
-
47
- static u32 sun7i_a20_gmac_mux_table [SUN7I_A20_GMAC_PARENTS ] = {
48
- 0x00 , /* Select mii_phy_tx_clk */
49
- 0x02 , /* Select gmac_int_tx_clk */
50
- };
51
-
52
53
static void __init sun7i_a20_gmac_clk_setup (struct device_node * node )
53
54
{
54
55
struct clk * clk ;
Original file line number Diff line number Diff line change 18
18
19
19
static DEFINE_SPINLOCK (sun9i_a80_cpus_lock );
20
20
21
- /**
22
- * sun9i_a80_cpus_clk_setup() - Setup function for a80 cpus composite clk
23
- */
24
21
25
22
#define SUN9I_CPUS_MAX_PARENTS 4
26
23
#define SUN9I_CPUS_MUX_PARENT_PLL4 3
@@ -180,6 +177,10 @@ static const struct clk_ops sun9i_a80_cpus_clk_ops = {
180
177
.set_rate = sun9i_a80_cpus_clk_set_rate ,
181
178
};
182
179
180
+ /**
181
+ * sun9i_a80_cpus_setup() - Setup function for a80 cpus composite clk
182
+ * @node: &struct device_node for the clock
183
+ */
183
184
static void sun9i_a80_cpus_setup (struct device_node * node )
184
185
{
185
186
const char * clk_name = node -> name ;
Original file line number Diff line number Diff line change @@ -73,9 +73,6 @@ static const struct reset_control_ops sunxi_usb_reset_ops = {
73
73
.deassert = sunxi_usb_reset_deassert ,
74
74
};
75
75
76
- /**
77
- * sunxi_usb_clk_setup() - Setup function for usb gate clocks
78
- */
79
76
80
77
#define SUNXI_USB_MAX_SIZE 32
81
78
@@ -85,6 +82,12 @@ struct usb_clk_data {
85
82
bool reset_needs_clk ;
86
83
};
87
84
85
+ /**
86
+ * sunxi_usb_clk_setup() - Setup function for usb gate clocks
87
+ * @node: &struct device_node for the clock
88
+ * @data: &struct usb_clk_data for the clock
89
+ * @lock: spinlock for the clock
90
+ */
88
91
static void __init sunxi_usb_clk_setup (struct device_node * node ,
89
92
const struct usb_clk_data * data ,
90
93
spinlock_t * lock )
You can’t perform that action at this time.
0 commit comments