aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r--include/linux/stmmac.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index a9b4d6cb96e..e5292828b68 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -32,6 +32,34 @@
32#define STMMAC_RX_COE_TYPE1 1 32#define STMMAC_RX_COE_TYPE1 1
33#define STMMAC_RX_COE_TYPE2 2 33#define STMMAC_RX_COE_TYPE2 2
34 34
35/* Define the macros for CSR clock range parameters to be passed by
36 * platform code.
37 * This could also be configured at run time using CPU freq framework. */
38
39/* MDC Clock Selection define*/
40#define STMMAC_CSR_60_100M 0 /* MDC = clk_scr_i/42 */
41#define STMMAC_CSR_100_150M 1 /* MDC = clk_scr_i/62 */
42#define STMMAC_CSR_20_35M 2 /* MDC = clk_scr_i/16 */
43#define STMMAC_CSR_35_60M 3 /* MDC = clk_scr_i/26 */
44#define STMMAC_CSR_150_250M 4 /* MDC = clk_scr_i/102 */
45#define STMMAC_CSR_250_300M 5 /* MDC = clk_scr_i/122 */
46
47/* FIXME: The MDC clock could be set higher than the IEEE 802.3
48 * specified frequency limit 0f 2.5 MHz, by programming a clock divider
49 * of value different than the above defined values. The resultant MDIO
50 * clock frequency of 12.5 MHz is applicable for the interfacing chips
51 * supporting higher MDC clocks.
52 * The MDC clock selection macros need to be defined for MDC clock rate
53 * of 12.5 MHz, corresponding to the following selection.
54 * 1000 clk_csr_i/4
55 * 1001 clk_csr_i/6
56 * 1010 clk_csr_i/8
57 * 1011 clk_csr_i/10
58 * 1100 clk_csr_i/12
59 * 1101 clk_csr_i/14
60 * 1110 clk_csr_i/16
61 * 1111 clk_csr_i/18 */
62
35/* Platfrom data for platform device structure's platform_data field */ 63/* Platfrom data for platform device structure's platform_data field */
36 64
37struct stmmac_mdio_bus_data { 65struct stmmac_mdio_bus_data {