]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx53/tx53.c
karo: tx53: make adjust_core-voltage() less verbose
[karo-tx-uboot.git] / board / karo / tx53 / tx53.c
index 32d541e765346e8860182c2bdddb2f2a92378599..f67f770ae9b6d8f006409ab5cabf9683dcf7d199 100644 (file)
@@ -58,6 +58,8 @@ DECLARE_GLOBAL_DATA_PTR;
 #define TX53_SDHC_PAD_CTRL     MUX_PAD_CTRL(PAD_CTL_HYS | PAD_CTL_DSE_HIGH |   \
                                PAD_CTL_SRE_FAST | PAD_CTL_PUS_47K_UP)
 
+char __uboot_img_end[0] __attribute__((section(".__uboot_img_end")));
+
 static iomux_v3_cfg_t tx53_pads[] = {
        /* NAND flash pads are set up in lowlevel_init.S */
 
@@ -375,7 +377,7 @@ int adjust_core_voltage(u32 freq)
                        u8 val = mV_to_regval(vout_to_vref(mV * 10, 3));
                        u8 v;
 
-                       printf("regval[%umV]=%02x\n", mV, val);
+                       debug("regval[%umV]=%02x\n", mV, val);
 
                        ret = i2c_read(CONFIG_SYS_I2C_SLAVE, LTC3589_B1DTV1, 1,
                                &v, 1);
@@ -384,7 +386,7 @@ int adjust_core_voltage(u32 freq)
                                        __func__, LTC3589_B1DTV1, ret);
                                return ret;
                        }
-                       printf("Changing reg %02x from %02x to %02x\n",
+                       debug("Changing reg %02x from %02x to %02x\n",
                                LTC3589_B1DTV1, v, (v & ~0x1f) |
                                mV_to_regval(vout_to_vref(mV * 10, 3)));
                        v &= ~0x1f;