board: lx2160aqds: fix ethernet-phy compatible property
[oweals/u-boot.git] / board / freescale / lx2160a / eth_lx2160aqds.c
index f6e22d7337b68ef1b1373e8b3ca87cab89300431..48ff495902a448268958185de2c7bcf9dc48fa54 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <hwconfig.h>
 #include <command.h>
 #include <netdev.h>
@@ -685,7 +686,7 @@ int fdt_create_phy_node(void *fdt, int offset, u8 phyaddr, int *subnodeoffset,
                        struct phy_device *phy_dev, int phandle)
 {
        char phy_node_name[] = "ethernet-phy@00";
-       char phy_id_compatible_str[] = "ethernet-phy-id0000.0000";
+       char phy_id_compatible_str[] = "ethernet-phy-id0000.0000,";
        int ret;
 
        sprintf(phy_node_name, "ethernet-phy@%x", phyaddr);
@@ -699,7 +700,7 @@ int fdt_create_phy_node(void *fdt, int offset, u8 phyaddr, int *subnodeoffset,
                return *subnodeoffset;
        }
 
-       sprintf(phy_id_compatible_str, "ethernet-phy-id%04x.%04x",
+       sprintf(phy_id_compatible_str, "ethernet-phy-id%04x.%04x,",
                phy_dev->phy_id >> 16, phy_dev->phy_id & 0xFFFF);
        debug("phy_id_compatible_str %s\n", phy_id_compatible_str);