common: Move clock functions into a new file
[platform/kernel/u-boot.git] / board / freescale / lx2160a / lx2160a.c
index 2a8dbca..7536153 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <dm.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <i2c.h>
@@ -27,6 +28,7 @@
 #include "../common/qixis.h"
 #include "../common/vid.h"
 #include <fsl_immap.h>
+#include <asm/arch-fsl-layerscape/fsl_icid.h>
 
 #ifdef CONFIG_EMC2305
 #include "../common/emc2305.h"
@@ -127,7 +129,7 @@ int board_fix_fdt(void *fdt)
                char *old_str;
                char *new_str;
        } reg_names_map[] = {
-               { "ccsr", "dip" },
+               { "ccsr", "dbi" },
                { "pf_ctrl", "ctrl" }
        };
        int off = -1, i;
@@ -351,7 +353,7 @@ int checkboard(void)
 
        puts("SERDES1 Reference: Clock1 = 161.13MHz Clock2 = 161.13MHz\n");
        puts("SERDES2 Reference: Clock1 = 100MHz Clock2 = 100MHz\n");
-       puts("SERDES3 Reference: Clock1 = 100MHz Clock2 = 100Hz\n");
+       puts("SERDES3 Reference: Clock1 = 100MHz Clock2 = 100MHz\n");
 #endif
        return 0;
 }
@@ -684,6 +686,7 @@ int ft_board_setup(void *blob, bd_t *bd)
        fdt_fsl_mc_fixup_iommu_map_entry(blob);
        fdt_fixup_board_enet(blob);
 #endif
+       fdt_fixup_icid(blob);
 
        return 0;
 }