]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: cx9020: migrate cx9020 to CONFIG_DM_ETH
authorSteffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Wed, 23 Oct 2019 05:40:40 +0000 (07:40 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:56 +0000 (10:26 +0100)
Acked-by: Patrick Bruenn <p.bruenn@beckhoff.com>
Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
arch/arm/dts/imx53-cx9020.dts
configs/mx53cx9020_defconfig
include/configs/mx53cx9020.h

index 36ceae36aa9091558a33ab27c81884ad92eb3868..2b7f7288088a4f50f05538f202e60adf7e424dd7 100644 (file)
                                MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS     0x80000000
                                MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD      0x80000000
 
-                               MX53_PAD_FEC_MDC__FEC_MDC               0x4
-                               MX53_PAD_FEC_MDIO__FEC_MDIO             0x1fc
-                               MX53_PAD_FEC_REF_CLK__FEC_TX_CLK        0x180
-                               MX53_PAD_FEC_RX_ER__FEC_RX_ER           0x180
-                               MX53_PAD_FEC_CRS_DV__FEC_RX_DV          0x180
-                               MX53_PAD_FEC_RXD1__FEC_RDATA_1          0x180
-                               MX53_PAD_FEC_RXD0__FEC_RDATA_0          0x180
-                               MX53_PAD_FEC_TX_EN__FEC_TX_EN           0x4
-                               MX53_PAD_FEC_TXD1__FEC_TDATA_1          0x4
-                               MX53_PAD_FEC_TXD0__FEC_TDATA_0          0x4
-
                                MX53_PAD_CSI0_DAT8__I2C1_SDA            0x400001ec
                                MX53_PAD_CSI0_DAT9__I2C1_SCL            0x400001ec
 
                        >;
                };
 
+               pinctrl_fec0: fec0grp {
+                       fsl,pins = <
+                               MX53_PAD_FEC_MDC__FEC_MDC               0x4
+                               MX53_PAD_FEC_MDIO__FEC_MDIO             0x1fc
+                               MX53_PAD_FEC_REF_CLK__FEC_TX_CLK        0x180
+                               MX53_PAD_FEC_RX_ER__FEC_RX_ER           0x180
+                               MX53_PAD_FEC_CRS_DV__FEC_RX_DV          0x180
+                               MX53_PAD_FEC_RXD1__FEC_RDATA_1          0x180
+                               MX53_PAD_FEC_RXD0__FEC_RDATA_0          0x180
+                               MX53_PAD_FEC_TX_EN__FEC_TX_EN           0x4
+                               MX53_PAD_FEC_TXD1__FEC_TDATA_1          0x4
+                               MX53_PAD_FEC_TXD0__FEC_TDATA_0          0x4
+                       >;
+               };
+
                pinctrl_esdhc1: esdhc1grp {
                        fsl,pins = <
                                MX53_PAD_SD1_DATA0__ESDHC1_DAT0         0x1d5
        pinctrl-names = "default";
        phy-mode = "rmii";
        phy-reset-gpios = <&gpio7 6 0>;
+       pinctrl-0 = <&pinctrl_fec0>;
        status = "okay";
+       fixed-link { /* RMII fixed link to KZ8863 */
+               speed = <100>;
+               full-duplex;
+       };
 };
index da61691706f812ff34be25e4266182ad55afadc9..5ed3e13272a82d85265fc68debabaa5919189284 100644 (file)
@@ -31,8 +31,10 @@ CONFIG_FPGA_CYCLON2=y
 CONFIG_DM_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC_IMX=y
+CONFIG_DM_ETH=y
 CONFIG_MTD=y
 CONFIG_FEC_MXC=y
+CONFIG_PHYLIB=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX5=y
index af23762396f45d6d821de981e46a61cbb045bed6..cae49e8793acb47d728e0dd4fd2d8076ab3da8a9 100644 (file)
 
 /* bootz: zImage/initrd.img support */
 
-/* Eth Configs */
-#define IMX_FEC_BASE   FEC_BASE_ADDR
-#define CONFIG_ETHPRIME                "FEC0"
-#define CONFIG_FEC_MXC_PHYADDR 0x1F
 
 /* USB Configs */
 #define CONFIG_MXC_USB_PORT    1