]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: atmel: remove calls to debug_uart_init
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 8 Jun 2022 14:49:29 +0000 (17:49 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 28 Jun 2022 07:10:06 +0000 (10:10 +0300)
Since 0dba45864b ("arm: Init the debug UART") ,
the debug_uart_init is now called from crt.S

It's no longer required to call it from the board file.

With the current code, the banned <debug_uart> is printed twice:

<debug_uart>

<debug_uart>

U-Boot 2022.07-rc4-00089-gee3d158fa8 (Jun 08 2022 - 17:39:29 +0300)

Remove all calls from board_early_init_f .

Suggested-by: Balamanikandan Gunasundar <Balamanikandan.Gunasundar@microchip.com>
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
19 files changed:
board/atmel/at91sam9260ek/at91sam9260ek.c
board/atmel/at91sam9261ek/at91sam9261ek.c
board/atmel/at91sam9263ek/at91sam9263ek.c
board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
board/atmel/at91sam9n12ek/at91sam9n12ek.c
board/atmel/at91sam9rlek/at91sam9rlek.c
board/atmel/at91sam9x5ek/at91sam9x5ek.c
board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
board/atmel/sam9x60ek/sam9x60ek.c
board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c
board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
board/atmel/sama5d2_icp/sama5d2_icp.c
board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
board/atmel/sama5d2_xplained/sama5d2_xplained.c
board/atmel/sama5d3_xplained/sama5d3_xplained.c
board/atmel/sama5d3xek/sama5d3xek.c
board/atmel/sama5d4_xplained/sama5d4_xplained.c
board/atmel/sama5d4ek/sama5d4ek.c
board/atmel/sama7g5ek/sama7g5ek.c

index 38f97bce204219cf14c8a001da235f152f82f1fd..a9ea9b558a9e49ce42bf9bb0fa5168b6740f0262 100644 (file)
@@ -74,9 +74,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index 0318eeaa94e91739aee0aabbc60795d9ee226509..8a7a960c26b1d6567e17f93be31346515e3143bb 100644 (file)
@@ -234,9 +234,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index 3218e14e860ad82a3b8cd8fa56d2a693f9268cf0..c3e1734dda0cbfeaac34efc0baec8fa6b8d6b200 100644 (file)
@@ -192,9 +192,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index fcca8923e38f555eae54157f829cd6708210533c..347197a6067d9cbc6f03f5429d065874258650f3 100644 (file)
@@ -258,9 +258,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index a3fc55bbc34bd6413a6dab6fbf19766ef9633774..018fed9cc2aed6c3368e89144b6f14b2af3c36ed 100644 (file)
@@ -176,9 +176,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index f427ee658bff62c58acbc042747dc3788f9d5099..af59620d0c02f306d414ae8765e3a2281fd55ee8 100644 (file)
@@ -169,9 +169,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index e0abe4aeb08b5d68aa1c09d670afdd625cc93844..8192824c59c3051ff3fe0a0880f9d36be0589ae2 100644 (file)
@@ -105,9 +105,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index 00de27781252c399adea9eadabc6e7faf69990b2..d8f32c93b555633bcc8540e45a8b077cf6e43ef8 100644 (file)
@@ -39,9 +39,6 @@ void board_debug_uart_init(void)
 
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 
index 32e5a2bf23af5cb48094e0c2246dfddc4f33533a..7035fab8788c4fdd674b0598a1112fcd9e7d06ae 100644 (file)
@@ -101,9 +101,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index b69f1c8cfaedbe8732a5bd98dd5e2cca963c213e..65d0a7532ea92e601cdd35fdcc5d0182ae58f39b 100644 (file)
@@ -65,10 +65,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
-
        return 0;
 }
 #endif
index 67ada27072deb2033a29afd3abad6060c4909469..c38585c6fe7cdab1445e7de5966e1f4b30d4bfbf 100644 (file)
@@ -58,10 +58,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
-
        return 0;
 }
 #endif
index da697a7b0fedc41379b436208dfdb5e2f90e6ea2..020777002823a17d281cbf47b7aceabfe3192cf4 100644 (file)
@@ -48,9 +48,6 @@ void board_debug_uart_init(void)
 
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 
index cca5bd1d8aacf54a1a50085eaf492dac1e9bccf7..16e9183f541430e3d380beee86174495eb1bfc86 100644 (file)
@@ -108,9 +108,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index 4bbb05c2fbfdc8942e9443cb1fb669ed66e37611..9e0f9c3b7e3c7afdf74d75b831a4a88b44de0103 100644 (file)
@@ -64,10 +64,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
-
        return 0;
 }
 #endif
index c25bf42e0af28c05d193af5f6adbd637063dd957..a778f2694df16efa655cc648ee95ab06930f2c63 100644 (file)
@@ -87,9 +87,6 @@ int board_late_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index b6f8dcd91dc06d1240a598ab7e550b3fee24a5cc..132e7fad1ef7f49b87f4776a7c177dc17d2ebc5b 100644 (file)
@@ -140,9 +140,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index 2088b48b7ee218ee64b8e7cc6935e10d2f437946..9fb7e6f308de511227d5776171949da1fd8444df 100644 (file)
@@ -102,9 +102,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index 46ec1eb324679f53efa58a54c300d8f2af1aa180..ba385333433db54b8e959ab397ebb78d4efc91bc 100644 (file)
@@ -100,9 +100,6 @@ void board_debug_uart_init(void)
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 int board_early_init_f(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       debug_uart_init();
-#endif
        return 0;
 }
 #endif
index ae18ed05e05a82a8508b073d8a547a134590785b..7d83e76f9ac0a45ea2a77f2bf2bbe5ceb6b3fa38 100644 (file)
@@ -48,9 +48,6 @@ void board_debug_uart_init(void)
 
 int board_early_init_f(void)
 {
-#if (IS_ENABLED(CONFIG_DEBUG_UART))
-       debug_uart_init();
-#endif
        return 0;
 }