]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: mvebu: Make serdes setup on Armada XP less noisy
authorStefan Roese <sr@denx.de>
Thu, 10 Dec 2015 09:32:36 +0000 (10:32 +0100)
committerStefan Roese <sr@denx.de>
Thu, 14 Jan 2016 13:08:59 +0000 (14:08 +0100)
Change some of the PEX configuration output lines from always output to
only ouput upon specific debug enabling.

This changes the SPL output from:

U-Boot SPL 2016.01-rc2-00037-g9353a7f (Dec 10 2015 - 10:27:42)
High speed PHY - Version: 2.1.5 (COM-PHY-V20)
Update Device ID PEX0782611ab
Update Device ID PEX1782611ab
Update Device ID PEX2782611ab
Update Device ID PEX3782611ab
Update Device ID PEX8782611ab
Update PEX Device ID 0x78260
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver 5.7.4
DDR3 Training Sequence - Ended Successfully

to:

U-Boot SPL 2016.01-rc2-00037-g9353a7f-dirty (Dec 10 2015 - 10:32:04)
High speed PHY - Version: 2.1.5 (COM-PHY-V20)
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver 5.7.4
DDR3 Training Sequence - Ended Successfully

Resulting in a little faster bootup time.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/mach-mvebu/serdes/axp/high_speed_env_lib.c

index 976297119f56d9c07fb0889cb0516443e4cd7115..bfa7f136c34dcfc083a5250701ccf9bcf29f7768 100644 (file)
@@ -1376,19 +1376,19 @@ int serdes_phy_config(void)
                                                 pex_if, PEX_DEVICE_AND_VENDOR_ID));
                        devId &= 0xFFFF;
                        devId |= ((ctrl_mode << 16) & 0xffff0000);
-                       DEBUG_INIT_S("Update Device ID PEX");
-                       DEBUG_INIT_D(pex_if, 1);
-                       DEBUG_INIT_D(devId, 8);
-                       DEBUG_INIT_S("\n");
+                       DEBUG_INIT_FULL_S("Update Device ID PEX");
+                       DEBUG_INIT_FULL_D(pex_if, 1);
+                       DEBUG_INIT_FULL_D(devId, 8);
+                       DEBUG_INIT_FULL_S("\n");
                        reg_write(PEX_CFG_DIRECT_ACCESS
                                  (pex_if, PEX_DEVICE_AND_VENDOR_ID), devId);
                        if ((pex_if < 8) &&
                            (info->pex_mode[pex_unit] == PEX_BUS_MODE_X4))
                                pex_if += 3;
                }
-               DEBUG_INIT_S("Update PEX Device ID 0x");
-               DEBUG_INIT_D(ctrl_mode, 4);
-               DEBUG_INIT_S("0\n");
+               DEBUG_INIT_FULL_S("Update PEX Device ID 0x");
+               DEBUG_INIT_FULL_D(ctrl_mode, 4);
+               DEBUG_INIT_FULL_S("0\n");
        }
        tmp = reg_read(PEX_DBG_STATUS_REG(0));
        DEBUG_RD_REG(PEX_DBG_STATUS_REG(0), tmp);