]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8qxp: mek: enable dm-spl for pm
authorPeng Fan <peng.fan@nxp.com>
Thu, 7 Mar 2019 12:43:37 +0000 (12:43 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 25 Apr 2019 15:03:25 +0000 (17:03 +0200)
with u-boot,dm-spl added for imx8qx-pm node, and SPL_SIMPLE_BUS enabled,
the bind and probe code in board file could be removed.

Also we need to enlarge SYS_MALLOC_F_LEN to avoid calloc fail.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/dts/fsl-imx8qxp-mek-u-boot.dtsi
board/freescale/imx8qxp_mek/spl.c
configs/imx8qxp_mek_defconfig

index 5d50eb028e4a9493bc2a26338dab407c7048e5a7..201559008c185b4f89b28d02c12cb4f98374bf4c 100644 (file)
@@ -3,6 +3,11 @@
  * Copyright 2018 NXP
  */
 
+&{/imx8qx-pm} {
+
+       u-boot,dm-spl;
+};
+
 &mu {
        u-boot,dm-spl;
 };
index 95ce9f37e8b718a2a2b8338eb313c06e1e830cc9..51f323811a073d4a646e326a85750859e49eccf2 100644 (file)
@@ -27,21 +27,6 @@ void spl_board_init(void)
                        continue;
        }
 
-       offset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, "nxp,imx8-pd");
-       while (offset != -FDT_ERR_NOTFOUND) {
-               lists_bind_fdt(gd->dm_root, offset_to_ofnode(offset),
-                              NULL, true);
-               offset = fdt_node_offset_by_compatible(gd->fdt_blob, offset,
-                                                      "nxp,imx8-pd");
-       }
-
-       uclass_find_first_device(UCLASS_POWER_DOMAIN, &dev);
-
-       for (; dev; uclass_find_next_device(&dev)) {
-               if (device_probe(dev))
-                       continue;
-       }
-
        arch_cpu_init();
 
        board_early_init_f();
index 1046c4fe8b48c8f232237f4d502614367da6bd2e..86e23eb4a8e2ccdc959079cdf1f192358d3d465c 100644 (file)
@@ -4,7 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x80020000
 CONFIG_SPL_GPIO_SUPPORT=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_SYS_MALLOC_F_LEN=0x4000
 CONFIG_TARGET_IMX8QXP_MEK=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y