summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-10 17:16:52 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 08:14:11 +0100
commitf8fff9dac9226792491e4106c13ebda985fe4e90 (patch)
treec635dc97869b62d0e8cd198dd72562b73084acf8
parent0521f9842731b3f79d5ee33907af773cd4732f0f (diff)
downloadu-boot-imx-f8fff9dac9226792491e4106c13ebda985fe4e90.zip
u-boot-imx-f8fff9dac9226792491e4106c13ebda985fe4e90.tar.gz
u-boot-imx-f8fff9dac9226792491e4106c13ebda985fe4e90.tar.bz2
dm: arm: spl: Make driver model linker lists available
The linker lists feature is useful in SPL as it holds the driver model platform data. So don't throw away the lists. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@ti.com>
-rw-r--r--arch/arm/cpu/u-boot-spl.lds7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot-spl.lds
index 4beddf0..a69b006 100644
--- a/arch/arm/cpu/u-boot-spl.lds
+++ b/arch/arm/cpu/u-boot-spl.lds
@@ -34,6 +34,13 @@ SECTIONS
. = ALIGN(4);
. = .;
+#ifdef CONFIG_SPL_DM
+ .u_boot_list : {
+ KEEP(*(SORT(.u_boot_list_*_driver_*)));
+ KEEP(*(SORT(.u_boot_list_*_uclass_*)));
+ }
+#endif
+ . = ALIGN(4);
__image_copy_end = .;