]> git.sur5r.net Git - u-boot/commitdiff
ARM: omap5: add ft_board_setup for dra7xx/am57xx
authorDaniel Allred <d-allred@ti.com>
Fri, 20 May 2016 00:10:54 +0000 (19:10 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:41:38 +0000 (15:41 -0400)
Adds the board specific ft_board_setup() functions that
are called when CONFIG_OF_BOARD_SETUP is defined. These functions
will currently just call the ft_cpu_setup() function.

Adds CONFIG_OF_BOARD_SETUP to the defconfig files
for dra72_evm, dra74_evm, and am57xx_evm.

Signed-off-by: Daniel Allred <d-allred@ti.com>
Signed-off-by: Madan Srinivas <madans@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/am57xx/board.c
board/ti/dra7xx/evm.c
configs/am57xx_evm_defconfig
configs/dra72_evm_defconfig
configs/dra74_evm_defconfig

index 86b8f6e8951ab49c2ca312c101e61b0b8ad6b02f..9904047a07e704b45687d484bdd96e4578bf8e97 100644 (file)
@@ -686,3 +686,12 @@ int board_early_init_f(void)
        return 0;
 }
 #endif
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, bd_t *bd)
+{
+       ft_cpu_setup(blob, bd);
+
+       return 0;
+}
+#endif
index 9bd71d87baaa029efd722c847d3f18bd9f225bb7..d01c7853c881a3d9963cbdf17b0a0cdfe6d63bbc 100644 (file)
@@ -718,3 +718,12 @@ int board_early_init_f(void)
        return 0;
 }
 #endif
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, bd_t *bd)
+{
+       ft_cpu_setup(blob, bd);
+
+       return 0;
+}
+#endif
index 8fc3ebb8ebe8340963928b5e53464f90d2bac9e9..cccdc10dacc0a5f299c31bae0aa4c3142db13d15 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
+CONFIG_OF_BOARD_SETUP=y
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set
index 00c6ac3cb79735fd43341830a34fb088b2db1874..c85c0fbf71cdfcc79a1127b33891096f14116eae 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
+CONFIG_OF_BOARD_SETUP=y
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set
index 32ffce7e1857a575f7b1cd548d0420e630e925e1..a8462ca4cacc62d19c9812c0268a862d588cfe9f 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
+CONFIG_OF_BOARD_SETUP=y
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set