arm: fsl-layerscape: Remove <common.h> and add needed includes

Remove <common.h> from all fsl-layerscape related files and when needed
add missing include files directly.

Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2024-05-06 15:06:34 -06:00
parent 42a35b4a02
commit 935b60f883
35 changed files with 40 additions and 32 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <asm/global_data.h>
#include <asm/io.h>
-1
View File
@@ -4,7 +4,6 @@
* Copyright 2021 NXP
*/
#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <net.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <net.h>
#include <asm/global_data.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/io.h>
#include "fsl_epu.h"
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_ls102xa.h>
#include <linux/errno.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <linux/kernel.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_ls102xa.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/io.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <spl.h>
u32 spl_boot_device(void)
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
+1 -1
View File
@@ -4,7 +4,7 @@
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <env.h>
+1 -1
View File
@@ -4,7 +4,7 @@
* Copyright 2020-2021 NXP
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <efi_loader.h>
#include <log.h>
@@ -3,11 +3,12 @@
* Copyright 2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
@@ -4,7 +4,7 @@
* Copyright 2019 NXP.
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <asm/global_data.h>
@@ -4,7 +4,7 @@
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <env.h>
#include <log.h>
#include <asm/io.h>
@@ -6,7 +6,7 @@
* Derived from arch/power/cpu/mpc85xx/speed.c
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <asm/global_data.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2018 NXP
*/
#include <common.h>
#include <config.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
@@ -3,7 +3,7 @@
* Copyright 2016 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
@@ -3,9 +3,9 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <fdt_support.h>
#include <log.h>
#include <asm/arch/stream_id_lsch3.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
@@ -3,7 +3,8 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <config.h>
#include <linux/kernel.h>
#include <asm/arch/fsl_serdes.h>
struct serdes_config {
@@ -3,11 +3,12 @@
* Copyright 2018 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch-fsl-layerscape/immap_lsch2.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
#include <fsl_sec.h>
#include <asm/arch/stream_id_lsch3.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CFG_SYS_QMAN_NUM_PORTALS] = {
@@ -3,7 +3,7 @@
* Copyright 2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
@@ -3,10 +3,11 @@
* Copyright 2018 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch-fsl-layerscape/immap_lsch2.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
#include <asm/arch/stream_id_lsch3.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CFG_SYS_QMAN_NUM_PORTALS] = {
@@ -4,7 +4,7 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
@@ -3,10 +3,11 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
#include <asm/arch/stream_id_lsch3.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
@@ -3,7 +3,7 @@
* Copyright 2017-2019 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
#include <asm/io.h>
@@ -3,7 +3,7 @@
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
struct serdes_config {
@@ -3,10 +3,11 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
#include <asm/arch/stream_id_lsch3.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
@@ -3,10 +3,11 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
#include <asm/arch/stream_id_lsch3.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
@@ -3,7 +3,7 @@
* Copyright 2018, 2020 NXP
*/
#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
struct serdes_config {
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <image.h>
+1 -1
View File
@@ -4,7 +4,7 @@
* Copyright 2019-2021 NXP
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <env.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <debug_uart.h>
@@ -7,6 +7,8 @@
#ifndef __FSL_SERDES_H__
#define __FSL_SERDES_H__
#include <linux/types.h>
#ifdef CONFIG_FSL_LSCH3
enum srds_prtcl {
/*
@@ -6,6 +6,7 @@
#ifndef __ARCH_FSL_LSCH2_IMMAP_H__
#define __ARCH_FSL_LSCH2_IMMAP_H__
#include <config.h>
#include <fsl_immap.h>
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
@@ -6,6 +6,8 @@
#ifndef __FSL_SERDES_H
#define __FSL_SERDES_H
#include <linux/types.h>
enum srds_prtcl {
/*
* Nobody will check whether the device 'NONE' has been configured,