]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/t4qds/eth.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / board / freescale / t4qds / eth.c
index 9b416b138ae615872c657bb9e5d80f9eed5ecea9..b341c82e676a5a1c24beaa9a66288dbda2232e23 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2012 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -21,7 +20,7 @@
 #include <fsl_mdio.h>
 #include <miiphy.h>
 #include <phy.h>
-#include <asm/fsl_dtsec.h>
+#include <fsl_dtsec.h>
 #include <asm/fsl_serdes.h>
 #include <hwconfig.h>
 #include "../common/qixis.h"
@@ -153,7 +152,7 @@ static int t4240qds_mdio_init(char *realbusname, u8 muxval)
        bus->read = t4240qds_mdio_read;
        bus->write = t4240qds_mdio_write;
        bus->reset = t4240qds_mdio_reset;
-       sprintf(bus->name, t4240qds_mdio_name_for_muxval(muxval));
+       strcpy(bus->name, t4240qds_mdio_name_for_muxval(muxval));
 
        pmdio->realbus = miiphy_get_dev_by_name(realbusname);
 
@@ -658,7 +657,7 @@ int board_eth_init(bd_t *bis)
                switch (fm_info_get_enet_if(i)) {
                case PHY_INTERFACE_MODE_XGMII:
                        if ((srds_prtcl_s2 == 55) || (srds_prtcl_s2 == 57)) {
-                               /* A fake PHY address to make U-boot happy */
+                               /* A fake PHY address to make U-Boot happy */
                                fm_info_set_phy_address(i, i);
                        } else {
                                lane = serdes_get_first_lane(FSL_SRDS_1,
@@ -839,7 +838,7 @@ int board_eth_init(bd_t *bis)
                switch (fm_info_get_enet_if(i)) {
                case PHY_INTERFACE_MODE_XGMII:
                        if ((srds_prtcl_s2 == 55) || (srds_prtcl_s2 == 57)) {
-                               /* A fake PHY address to make U-boot happy */
+                               /* A fake PHY address to make U-Boot happy */
                                fm_info_set_phy_address(i, i);
                        } else {
                                lane = serdes_get_first_lane(FSL_SRDS_2,