summaryrefslogtreecommitdiff
path: root/board/ads5121/ads5121.c
diff options
context:
space:
mode:
authorGrzegorz Bernacki <gjb@semihalf.com>2008-01-08 17:16:15 +0100
committerWolfgang Denk <wd@denx.de>2008-01-12 15:36:17 +0100
commit281ff9a45cf9eb17b8a9afc436cb783cf1f62363 (patch)
treebbaead33085ac4021caf04214b4efdda61757168 /board/ads5121/ads5121.c
parenta10ff9196183e7e5f2ae3c4f5f3cbe92ae9cb719 (diff)
downloadu-boot-imx-281ff9a45cf9eb17b8a9afc436cb783cf1f62363.zip
u-boot-imx-281ff9a45cf9eb17b8a9afc436cb783cf1f62363.tar.gz
u-boot-imx-281ff9a45cf9eb17b8a9afc436cb783cf1f62363.tar.bz2
ads5121: Added support for FDT.
Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
Diffstat (limited to 'board/ads5121/ads5121.c')
-rw-r--r--board/ads5121/ads5121.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/ads5121/ads5121.c b/board/ads5121/ads5121.c
index f275ce7..46be6a5 100644
--- a/board/ads5121/ads5121.c
+++ b/board/ads5121/ads5121.c
@@ -184,3 +184,11 @@ int checkboard (void)
brd_rev, cpld_rev);
return 0;
}
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+ ft_cpu_setup(blob, bd);
+ fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
+}
+#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */