• Home
  • Raw
  • Download

Lines Matching +full:gmii +full:- +full:to +full:- +full:rgmii

5  * Copyright 2013 Chen-Yu Tsai
6 * Chen-Yu Tsai <wens@csie.org>
19 #include <linux/clk-provider.h>
27 * sun7i_a20_gmac_clk_setup - Setup function for A20/A31 GMAC clock module
31 * MII TX clock from PHY >-----|___________ _________|----> to GMAC core
32 * GMAC Int. RGMII TX clk >----|___________\__/__gate---|----> to PHY
33 * Ext. 125MHz RGMII TX clk >--|__divider__/ |
40 * To keep it simple, let the GMAC use either the MII TX clock for MII mode,
41 * and its internal TX clock for GMII and RGMII modes. The GMAC driver should
42 * select the appropriate source and gate/ungate the output to the PHY.
46 * able to send traffic out. The GMAC driver should set the clock rate and
47 * enable/disable this clock to configure the required state. The clock
48 * driver then responds by auto-reparenting the clock.
65 const char *clk_name = node->name; in sun7i_a20_gmac_clk_setup()
69 if (of_property_read_string(node, "clock-output-names", &clk_name)) in sun7i_a20_gmac_clk_setup()
90 gate->reg = reg; in sun7i_a20_gmac_clk_setup()
91 gate->bit_idx = SUN7I_A20_GMAC_GPIT; in sun7i_a20_gmac_clk_setup()
92 gate->lock = &gmac_lock; in sun7i_a20_gmac_clk_setup()
93 mux->reg = reg; in sun7i_a20_gmac_clk_setup()
94 mux->mask = SUN7I_A20_GMAC_MASK; in sun7i_a20_gmac_clk_setup()
95 mux->table = sun7i_a20_gmac_mux_table; in sun7i_a20_gmac_clk_setup()
96 mux->lock = &gmac_lock; in sun7i_a20_gmac_clk_setup()
100 &mux->hw, &clk_mux_ops, in sun7i_a20_gmac_clk_setup()
102 &gate->hw, &clk_gate_ops, in sun7i_a20_gmac_clk_setup()
119 CLK_OF_DECLARE(sun7i_a20_gmac, "allwinner,sun7i-a20-gmac-clk",