Skip to contentSkip to conversation

imx8qxp_mek: Include fdt_support.h header

PATCH New Alifer Moraes 2 participants 8 messages Jan 16, 2020 – Jan 20, 2020 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx8qxp_mek: Include fdt_support.h header

Include fdt_support.h header file to fix the following sparse warning:

board/freescale/imx8qxp_mek/imx8qxp_mek.c:129:5: warning: no previous prototype for ‘ft_board_setup’ [-Wmissing-prototypes]

---
 board/freescale/imx8qxp_mek/imx8qxp_mek.c | 1 +
 1 file changed, 1 insertion(+)
board/freescale/imx8qxp_mek/imx8qxp_mek.c +1 -0
index 194eb60cd3..8e731ec32e 100644
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <linux/libfdt.h>
 #include <fsl_esdhc_imx.h>
+#include <fdt_support.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 imx8qm_mek: Include fdt_support.h header

Include fdt_support.h header file to fix the following sparse warning:

board/freescale/imx8qm_mek/imx8qm_mek.c:116:5: warning: no previous prototype for ‘ft_board_setup’ [-Wmissing-prototypes]

---
 board/freescale/imx8qm_mek/imx8qm_mek.c | 1 +
 1 file changed, 1 insertion(+)
board/freescale/imx8qm_mek/imx8qm_mek.c +1 -0
index 667a2743a6..139f416d1f 100644
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <init.h>
 #include <linux/libfdt.h>
+#include <fdt_support.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 imx8qm_mek: Include fdt_support.h header

Quoted 4 lines

Include fdt_support.h header file to fix the following sparse warning:
board/freescale/imx8qm_mek/imx8qm_mek.c:116:5: warning: no previous prototype for ‘ft_board_setup’ [-Wmissing-prototypes]

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#3 lore raw

PATCH 2/5 imx8qm_mek: Remove unused function detail_board_ddr_info()

In reply to Alifer Moraes

detail_board_ddr_info() is not used anywhere, so simply remove it.

This function is only used by Layerscape, not by i.MX.

This was detected by the following sparse warning:

board/freescale/imx8qm_mek/imx8qm_mek.c:102:6: warning: no previous prototype for ‘detail_board_ddr_info’ [-Wmissing-prototypes]

---
 board/freescale/imx8qm_mek/imx8qm_mek.c | 5 -----
 1 file changed, 5 deletions(-)
board/freescale/imx8qm_mek/imx8qm_mek.c +0 -5
index 667a2743a6..36d9628853 100644
@@ -99,11 +99,6 @@ int board_init(void)
 	return 0;
 }
 
-void detail_board_ddr_info(void)
-{
-	puts("\nDDR    ");
-}
-
 /*
  * Board specific reset that is system reset.
  */
Signature · 1 line
2.17.1
#4 lore raw

PATCH 2/5 imx8qm_mek: Remove unused function detail_board_ddr_info()

Quoted 5 lines

detail_board_ddr_info() is not used anywhere, so simply remove it. This function is only used by Layerscape, not by i.MX. This was detected by the following sparse warning:
board/freescale/imx8qm_mek/imx8qm_mek.c:102:6: warning: no previous prototype for ‘detail_board_ddr_info’ [-Wmissing-prototypes]

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#5 lore raw

PATCH 3/5 imx8qxp_mek: Remove unused function detail_board_ddr_info()

In reply to Alifer Moraes

detail_board_ddr_info() is not used anywhere, so simply remove it.

This function is only used by Layerscape, not by i.MX.

This was detected by the following sparse warning:

board/freescale/imx8qxp_mek/imx8qxp_mek.c:115:6: warning: no previous prototype for ‘detail_board_ddr_info’ [-Wmissing-prototypes]

---
 board/freescale/imx8qxp_mek/imx8qxp_mek.c | 5 -----
 1 file changed, 5 deletions(-)
board/freescale/imx8qxp_mek/imx8qxp_mek.c +0 -5
index 8e731ec32e..f8dd6d0bb0 100644
@@ -113,11 +113,6 @@ int board_init(void)
 	return 0;
 }
 
-void detail_board_ddr_info(void)
-{
-	puts("\nDDR    ");
-}
-
 /*
  * Board specific reset that is system reset.
  */
Signature · 1 line
2.17.1
#6 lore raw

PATCH 3/5 imx8qxp_mek: Remove unused function detail_board_ddr_info()

Quoted 6 lines

detail_board_ddr_info() is not used anywhere, so simply remove it. This function is only used by Layerscape, not by i.MX. This was detected by the following sparse warning:
board/freescale/imx8qxp_mek/imx8qxp_mek.c:115:6: warning: no previous prototype for ‘detail_board_ddr_info’ [-Wmissing-prototypes]

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#7 lore raw

PATCH 1/1 imx8qxp_mek: Include fdt_support.h header

In reply to Alifer Moraes
Quoted 4 lines

Include fdt_support.h header file to fix the following sparse warning:
board/freescale/imx8qxp_mek/imx8qxp_mek.c:129:5: warning: no previous prototype for ‘ft_board_setup’ [-Wmissing-prototypes]

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================