File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
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 ;
You can’t perform that action at this time.
0 commit comments