From patchwork Thu Jan 16 15:43:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alifer Moraes X-Patchwork-Id: 239675 List-Id: U-Boot discussion From: alifer.wsdm at gmail.com (Alifer Moraes) Date: Thu, 16 Jan 2020 12:43:06 -0300 Subject: [PATCH] imx8qxp_mek: Include fdt_support.h header Message-ID: <20200116154309.10666-1-alifer.wsdm@gmail.com> 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] Signed-off-by: Alifer Moraes --- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c index 194eb60cd3..8e731ec32e 100644 --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include From patchwork Thu Jan 16 15:43:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alifer Moraes X-Patchwork-Id: 239677 List-Id: U-Boot discussion From: alifer.wsdm at gmail.com (Alifer Moraes) Date: Thu, 16 Jan 2020 12:43:08 -0300 Subject: [PATCH 2/5] imx8qm_mek: Remove unused function detail_board_ddr_info() In-Reply-To: <20200116154309.10666-1-alifer.wsdm@gmail.com> References: <20200116154309.10666-1-alifer.wsdm@gmail.com> Message-ID: <20200116154309.10666-3-alifer.wsdm@gmail.com> 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(-) diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c index 667a2743a6..36d9628853 100644 --- a/board/freescale/imx8qm_mek/imx8qm_mek.c +++ b/board/freescale/imx8qm_mek/imx8qm_mek.c @@ -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. */ From patchwork Thu Jan 16 15:43:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alifer Moraes X-Patchwork-Id: 239678 List-Id: U-Boot discussion From: alifer.wsdm at gmail.com (Alifer Moraes) Date: Thu, 16 Jan 2020 12:43:09 -0300 Subject: [PATCH 3/5] imx8qxp_mek: Remove unused function detail_board_ddr_info() In-Reply-To: <20200116154309.10666-1-alifer.wsdm@gmail.com> References: <20200116154309.10666-1-alifer.wsdm@gmail.com> Message-ID: <20200116154309.10666-4-alifer.wsdm@gmail.com> 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] Signed-off-by: Alifer Moraes --- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c index 8e731ec32e..f8dd6d0bb0 100644 --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c @@ -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. */