]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: fsl-layerscape: Remove <common.h> and add needed includes
authorTom Rini <trini@konsulko.com>
Tue, 30 Apr 2024 13:35:58 +0000 (07:35 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 6 May 2024 21:06:34 +0000 (15:06 -0600)
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>
35 files changed:
arch/arm/cpu/armv7/ls102xa/clock.c
arch/arm/cpu/armv7/ls102xa/cpu.c
arch/arm/cpu/armv7/ls102xa/fdt.c
arch/arm/cpu/armv7/ls102xa/fsl_epu.c
arch/arm/cpu/armv7/ls102xa/fsl_ls1_serdes.c
arch/arm/cpu/armv7/ls102xa/ls102xa_serdes.c
arch/arm/cpu/armv7/ls102xa/soc.c
arch/arm/cpu/armv7/ls102xa/spl.c
arch/arm/cpu/armv7/ls102xa/timer.c
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fsl-layerscape/fdt.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
arch/arm/cpu/armv8/fsl-layerscape/icid.c
arch/arm/cpu/armv8/fsl-layerscape/ls1012a_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c
arch/arm/cpu/armv8/fsl-layerscape/ls1028a_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c
arch/arm/cpu/armv8/fsl-layerscape/ls1043a_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c
arch/arm/cpu/armv8/fsl-layerscape/ls1046a_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/ls1088_ids.c
arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/ls2080a_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/ls2088_ids.c
arch/arm/cpu/armv8/fsl-layerscape/lx2160_ids.c
arch/arm/cpu/armv8/fsl-layerscape/lx2160a_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/mp.c
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/arm/cpu/armv8/fsl-layerscape/spl.c
arch/arm/include/asm/arch-fsl-layerscape/fsl_serdes.h
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h
arch/arm/include/asm/arch-ls102xa/fsl_serdes.h

index 4e1fe281201f195abcbc64cb98cbc306838af856..e885a85ce65c3f96bfab16646a855a5b1eb9bc65 100644 (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>
index c455969609f668cc1e9dcd265691384eaf9f9b58..74a2dcbc116a909a2816a90155ab1764b5132093 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
index 1c3d24bcad9400dd8f4d2147d418292bc22ae941..34eea22eb923ccece9ffeafe58b15611657de8ac 100644 (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>
index e31a4fb6c31bb439790c8e2159a2bd4de85542bb..664eae532d5f9e933abbe900924abb62cbae4cf9 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <asm/io.h>
 
 #include "fsl_epu.h"
index f74d819ea1ea6c2f64f410b9be88075aaccc3839..c1eadb34523fc58a025b2ac8eb85efb2c78ef06a 100644 (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>
index 8c030be8b36f72daf9a7bc22a77c7928699eb174..3032e266c5d4ec60c68ff07e12e140839da8263a 100644 (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>
 
index 84d4ea3a8f4a0d63b7ec78fbf8172893342c3639..7ff59edd452ee4bf1b4b28060b7e08eef3a9d580 100644 (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>
index a19496862359aa1a1d8b8209e02a268ccdec5037..374de92d026c8697b03ce2a34fdcff7f8e8f4c4d 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 
 u32 spl_boot_device(void)
index c6126b10c355bca21ab7f92a979499110886a4e9..6f32ced5aec346f70c913f2527961ccf4dc546f6 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <init.h>
 #include <time.h>
 #include <asm/global_data.h>
index 12d31184ad91bfa58c5eb2ddf58f7d0375afc935..d2dbfdd08a02f65e415dc04758e1d0446cf6413a 100644 (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>
index 22ce6992165bdf9b432aaf02b047304f3d6b9682..ca6be3626fbeeaee5e24342724164e60bcf3c9a6 100644 (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>
index b1bb29bcaf55ddbf8809f44f3bfc634d5d0e40f6..78961d8089e441ee03c17c82cc3bfd124650acc5 100644 (file)
@@ -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>
 
index 4455eb1726dc18d857221500097147f8b89223fa..9a24d4b303138b1a0cb921522a18eddaecbaf310 100644 (file)
@@ -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>
index fbd5fd7d433bd0f288f6e1347249944f83146796..b768790437fd50018f211f5841ecb0248103aa00 100644 (file)
@@ -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>
index 137778dc136b2ec48d447d85285bf6217bf232c1..452246e0e67ff75963e419eb7b3ece700d5654bc 100644 (file)
@@ -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>
index c22e73253c3c663210b7a56fc8a6565646923dd5..04ffefafbf737a18a70836a868509d292b2a465b 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index 8d7beca7db38ae7493183e66447893bf0c3760f1..c0e5455507a41cbed4288b8e0d3001f44083eb8f 100644 (file)
@@ -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>
 
index 86a49b152e44fab1ce6aa195f76c386cb7f77bc4..d48baa63816fb1be3e2e26c990c541c38af5e90f 100644 (file)
@@ -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>
index 80d2910f679f2f6cea00ad3b07be2b5730eb38f7..1b4eab3613e567e1214d9353154a6426b43a0b97 100644 (file)
@@ -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 {
index e3c3fc6bfb55f9a60ffb83f76b9d2b1eaebef778..ec80e42055d9ab280b8040103dbdb2f72a4ecac6 100644 (file)
@@ -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] = {
index 6c5e52ebaa698db3bb412571aa08c6e09a922411..1911ca1a175bb89cba44b09e6c8e828385b24dd7 100644 (file)
@@ -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>
 
index 333d7e2fa21aebc35460d181c0db38c1cddb762e..a73dd316f8d0fb074056671e932930c1e856f399 100644 (file)
@@ -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] = {
index 9347e516bf695c4bca0f61324aa5a3db004a55a3..26ca4ca10f3d4913aa67fe88d371449588918be3 100644 (file)
@@ -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>
 
index 23743ae10cffd6a824e412602c489efdcbad7542..3a076ca04f6ea3d3a1cda4dfe101d7cf0cb00873 100644 (file)
@@ -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),
index fe667f06c3956f1e96c81ad8ff972f00763905cd..154b727392e12e63200fccbd6b94a16ce2f52491 100644 (file)
@@ -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>
index 7997422840f298bb967bc308adf15ecaec3704e5..5088c8ebb7ff5b1499be9e7c7c17a64fcfe6b173 100644 (file)
@@ -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 {
index e6403b7952632d23ca3606583b3eeebc9c364313..c320e835c996fc00c91da832f96d64b542b9af1e 100644 (file)
@@ -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),
index 3a0ed1fa550c4c15db7c4892e3fc1ec173973160..df9329df77e16c9364fbb2eab29625e1964f539f 100644 (file)
@@ -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),
index 5941d90e036fdfb82cda7e5ee94b1972af68dc18..43f0e8c87ba917880d1ad81abea47e9d6e90cfbe 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2018, 2020 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/arch/fsl_serdes.h>
 
 struct serdes_config {
index ce0c46ad0d4ea32985d683c7071aa7b98c00a441..db913208b9e9c287fe6f6269630be570abc2e2b9 100644 (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>
index 4c61d28c20f004960b530815aecf8c1eac58895b..d85a630f8a3cb722034b131b94529688af4f55fc 100644 (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>
index 232adfa843a2cce31d95c282e295aa3dc2a368a4..a739ff2da581f9d6a931293a80b676e71111d41c 100644 (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>
index 9e29350ca4ba894b54834e012366b8d8ee53b1f2..a02bec9371c09ccda3e8819d9948214a25232fbe 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __FSL_SERDES_H__
 #define __FSL_SERDES_H__
 
+#include <linux/types.h>
+
 #ifdef CONFIG_FSL_LSCH3
 enum srds_prtcl {
        /*
index 9794db044996578a6ff2a792eb459b6aba35b4fb..147ca2f99de69f93f39193b7053ccc85a8916e34 100644 (file)
@@ -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>
index 9244e0a78fd341c7b3e9ee5c5265e249a390d959..35e3ec7a9878de55770c618a46c8912f48504ff1 100644 (file)
@@ -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,