[PATCH 103/149] board: phytec: Remove <common.h> and add needed includes

Wadim Egorov w.egorov at phytec.de
Fri May 3 10:47:29 CEST 2024



Am 01.05.24 um 04:42 schrieb Tom Rini:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini at konsulko.com>

Acked-by: Wadim Egorov <w.egorov at phytec.de>

> ---
> Cc: Martyn Welch <martyn.welch at collabora.com>
> Cc: Parthiban Nallathambi <parthitce at gmail.com>
> Cc: "Albert ARIBAUD (3ADEV)" <albert.aribaud at 3adev.fr>
> Cc: Niel Fourie <lusus at denx.de>
> Cc: Teresa Remmet <t.remmet at phytec.de>
> Cc: Wadim Egorov <w.egorov at phytec.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Philipp Tomsich <philipp.tomsich at vrull.eu>
> Cc: Kever Yang <kever.yang at rock-chips.com>
> Cc: Yannic Moog <y.moog at phytec.de>
> Cc: Daniel Schultz <d.schultz at phytec.de>
> Cc: Benjamin Hahn <B.Hahn at phytec.de>
> Cc: Fabio Estevam <festevam at gmail.com>
> ---
>   board/phytec/common/imx8m_som_detection.c    | 1 -
>   board/phytec/common/phytec_som_detection.c   | 1 -
>   board/phytec/pcl063/spl.c                    | 2 +-
>   board/phytec/pcm052/pcm052.c                 | 1 -
>   board/phytec/pcm058/pcm058.c                 | 1 -
>   board/phytec/phycore_am335x_r2/board.c       | 2 +-
>   board/phytec/phycore_am335x_r2/mux.c         | 1 -
>   board/phytec/phycore_imx8mm/phycore-imx8mm.c | 1 -
>   board/phytec/phycore_imx8mm/spl.c            | 1 -
>   board/phytec/phycore_imx8mp/phycore-imx8mp.c | 1 -
>   board/phytec/phycore_imx8mp/spl.c            | 1 -
>   board/phytec/phycore_rk3288/phycore-rk3288.c | 1 -
>   12 files changed, 2 insertions(+), 12 deletions(-)
> 
> diff --git a/board/phytec/common/imx8m_som_detection.c b/board/phytec/common/imx8m_som_detection.c
> index ee34a5b95791..bfd60ffb7773 100644
> --- a/board/phytec/common/imx8m_som_detection.c
> +++ b/board/phytec/common/imx8m_som_detection.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet at phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <dm/device.h>
>   #include <dm/uclass.h>
> diff --git a/board/phytec/common/phytec_som_detection.c b/board/phytec/common/phytec_som_detection.c
> index 78c173df20d4..b14bb3dbb7fa 100644
> --- a/board/phytec/common/phytec_som_detection.c
> +++ b/board/phytec/common/phytec_som_detection.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet at phytec.de>
>    */
>   
> -#include <common.h>
>   #include <dm/device.h>
>   #include <dm/uclass.h>
>   #include <i2c.h>
> diff --git a/board/phytec/pcl063/spl.c b/board/phytec/pcl063/spl.c
> index b6d459fdfce6..b98c46dbcbd4 100644
> --- a/board/phytec/pcl063/spl.c
> +++ b/board/phytec/pcl063/spl.c
> @@ -6,7 +6,7 @@
>    * Copyright (C) 2015-2016 Stefan Roese <sr at denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <init.h>
>   #include <spl.h>
>   #include <asm/arch/clock.h>
> diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c
> index 0f7235979b04..20f2aac332da 100644
> --- a/board/phytec/pcm052/pcm052.c
> +++ b/board/phytec/pcm052/pcm052.c
> @@ -6,7 +6,6 @@
>    * Copyright 2013 Freescale Semiconductor, Inc.
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> diff --git a/board/phytec/pcm058/pcm058.c b/board/phytec/pcm058/pcm058.c
> index b37c6fe218da..ecc5b75d8d42 100644
> --- a/board/phytec/pcm058/pcm058.c
> +++ b/board/phytec/pcm058/pcm058.c
> @@ -9,7 +9,6 @@
>    * Both NAND and eMMC cannot be set because they share the
>    * same pins (SD4)
>    */
> -#include <common.h>
>   #include <init.h>
>   #include <net.h>
>   #include <asm/arch/crm_regs.h>
> diff --git a/board/phytec/phycore_am335x_r2/board.c b/board/phytec/phycore_am335x_r2/board.c
> index 5700effbd3f6..2022525651dc 100644
> --- a/board/phytec/phycore_am335x_r2/board.c
> +++ b/board/phytec/phycore_am335x_r2/board.c
> @@ -10,7 +10,7 @@
>    * Copyright (C) 2019 DENX Software Engineering GmbH
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <init.h>
>   #include <spl.h>
>   #include <asm/arch/cpu.h>
> diff --git a/board/phytec/phycore_am335x_r2/mux.c b/board/phytec/phycore_am335x_r2/mux.c
> index 7091c985ba12..bb1c48da0fe5 100644
> --- a/board/phytec/phycore_am335x_r2/mux.c
> +++ b/board/phytec/phycore_am335x_r2/mux.c
> @@ -6,7 +6,6 @@
>    * Copyright (C) 2019 DENX Software Engineering GmbH
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <asm/arch/hardware.h>
>   #include <asm/arch/mux.h>
> diff --git a/board/phytec/phycore_imx8mm/phycore-imx8mm.c b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> index ef6472916903..06cffbca3a69 100644
> --- a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> +++ b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet at phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> diff --git a/board/phytec/phycore_imx8mm/spl.c b/board/phytec/phycore_imx8mm/spl.c
> index 690a51f7a72e..8d858590a39b 100644
> --- a/board/phytec/phycore_imx8mm/spl.c
> +++ b/board/phytec/phycore_imx8mm/spl.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet at phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/clock.h>
>   #include <asm/arch/ddr.h>
>   #include <asm/arch/imx8mm_pins.h>
> diff --git a/board/phytec/phycore_imx8mp/phycore-imx8mp.c b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> index dbdd6bb79373..35683591433c 100644
> --- a/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> +++ b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet at phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> diff --git a/board/phytec/phycore_imx8mp/spl.c b/board/phytec/phycore_imx8mp/spl.c
> index df158024654e..352f803e4541 100644
> --- a/board/phytec/phycore_imx8mp/spl.c
> +++ b/board/phytec/phycore_imx8mp/spl.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet at phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/clock.h>
>   #include <asm/arch/ddr.h>
>   #include <asm/arch/imx8mp_pins.h>
> diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/phytec/phycore_rk3288/phycore-rk3288.c
> index 1ddb4a4f8085..a970634b4c33 100644
> --- a/board/phytec/phycore_rk3288/phycore-rk3288.c
> +++ b/board/phytec/phycore_rk3288/phycore-rk3288.c
> @@ -9,7 +9,6 @@
>   #include <net.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> -#include <common.h>
>   #include <dm.h>
>   #include <env.h>
>   #include <env_internal.h>


More information about the U-Boot mailing list