dm: core: Introduce dev_read_alias_highest_id()
[oweals/u-boot.git] / drivers / net / fec_mxc.h
index 43a7d7bed87445cd838b28389b14dcbd4a89d9c3..e9a661f0a1dd4bcc38cee467cd983567e3493848 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2009 Ilya Yanok, Emcraft Systems Ltd <yanok@emcraft.com>
  * (C) Copyright 2008 Armadeus Systems, nc
  *
  * This file is based on mpc4200fec.h
  * (C) Copyright Motorola, Inc., 2000
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __FEC_MXC_H
 #define __FEC_MXC_H
 
+#include <clk.h>
+
 /* Layout description of the FEC */
 struct ethernet_regs {
        /* [10:2]addr = 00 */
@@ -251,10 +252,18 @@ struct fec_priv {
        int phy_id;
        int (*mii_postcall)(int);
 #endif
-
+#ifdef CONFIG_DM_REGULATOR
+       struct udevice *phy_supply;
+#endif
+#ifdef CONFIG_DM_GPIO
+       struct gpio_desc phy_reset_gpio;
+       uint32_t reset_delay;
+#endif
 #ifdef CONFIG_DM_ETH
        u32 interface;
 #endif
+       struct clk ipg_clk;
+       u32 clk_rate;
 };
 
 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);