]> git.sur5r.net Git - u-boot/commitdiff
arm: mvebu: Minor fixes in the AXP / A38x SERDES code
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 7 Apr 2017 10:56:26 +0000 (12:56 +0200)
committerStefan Roese <sr@denx.de>
Tue, 9 May 2017 11:38:18 +0000 (13:38 +0200)
- Fix spelling error of SERDES_VERSION
- Remove superfluous definition of this macro
- Remove unnecessary include of i2c.h

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec-38x.c
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c
arch/arm/mach-mvebu/serdes/axp/high_speed_env_lib.c
arch/arm/mach-mvebu/serdes/axp/high_speed_env_spec.c

index 104e7e88d7428c9d65b0993fd9eef336b2754bc7..0dfb9452e6a7e78f9a2598ea984f26cc67ff7351 100644 (file)
@@ -13,8 +13,6 @@
 #include "high_speed_env_spec.h"
 #include "sys_env_lib.h"
 
-#define SERDES_VERION  "2.0"
-
 u8 selectors_serdes_rev1_map[LAST_SERDES_TYPE][MAX_SERDES_LANES] = {
        /* 0  1    2    3    4    5 */
        {0x1, 0x1, NA,  NA,  NA,  NA},          /* PEX0 */
index 820219e68e7869be5af0dba67b333ce47eb8d5b6..883b90776a0db6dca91a885dc7cd93dbc13e7abf 100644 (file)
@@ -27,7 +27,7 @@
  */
 struct cfg_seq serdes_seq_db[SERDES_LAST_SEQ];
 
-#define        SERDES_VERION           "2.0"
+#define        SERDES_VERSION          "2.0"
 #define ENDED_OK               "High speed PHY - Ended Successfully\n"
 
 #define LINK_WAIT_CNTR         100
@@ -1416,7 +1416,7 @@ int serdes_phy_config(void)
        DEBUG_INIT_FULL_S("\n### ctrl_high_speed_serdes_phy_config ###\n");
 
        DEBUG_INIT_S("High speed PHY - Version: ");
-       DEBUG_INIT_S(SERDES_VERION);
+       DEBUG_INIT_S(SERDES_VERSION);
        DEBUG_INIT_S("\n");
 
        /* Init serdes sequences DB */
index 5925bae69f18257c72b80240a2cabe25d26f2278..b0e193b78c0d08a3af43a806cf5ee5dd877eca53 100644 (file)
@@ -14,7 +14,7 @@
 #include "high_speed_env_spec.h"
 #include "board_env_spec.h"
 
-#define        SERDES_VERION   "2.1.5"
+#define        SERDES_VERSION  "2.1.5"
 #define ENDED_OK       "High speed PHY - Ended Successfully\n"
 
 static const u8 serdes_cfg[][SERDES_LAST_UNIT] = BIN_SERDES_CFG;
@@ -285,12 +285,12 @@ int serdes_phy_config(void)
        if (reg_read(REG_BOOTROM_ROUTINE_ADDR) &
            (1 << REG_BOOTROM_ROUTINE_DRAM_INIT_OFFS)) {
                DEBUG_INIT_S("High speed PHY - Version: ");
-               DEBUG_INIT_S(SERDES_VERION);
+               DEBUG_INIT_S(SERDES_VERSION);
                DEBUG_INIT_S(" - 2nd boot - Skip\n");
                return MV_OK;
        }
        DEBUG_INIT_S("High speed PHY - Version: ");
-       DEBUG_INIT_S(SERDES_VERION);
+       DEBUG_INIT_S(SERDES_VERSION);
        DEBUG_INIT_S(" (COM-PHY-V20)\n");
 
        /*
index 115ec2cd600e6af169c290f1cd6885f569c02efb..704a59fa15f1cd2a4a725d55caf5e47a4661c282 100644 (file)
@@ -5,7 +5,6 @@
  */
 
 #include <common.h>
-#include <i2c.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>