]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fpga: Remove <common.h> and add needed includes
authorTom Rini <trini@konsulko.com>
Thu, 2 May 2024 01:30:47 +0000 (19:30 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 7 May 2024 14:00:53 +0000 (08:00 -0600)
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
19 files changed:
drivers/fpga/ACEX1K.c
drivers/fpga/altera.c
drivers/fpga/cyclon2.c
drivers/fpga/fpga.c
drivers/fpga/intel_sdm_mb.c
drivers/fpga/ivm_core.c
drivers/fpga/lattice.c
drivers/fpga/socfpga.c
drivers/fpga/socfpga_arria10.c
drivers/fpga/socfpga_gen5.c
drivers/fpga/spartan2.c
drivers/fpga/spartan3.c
drivers/fpga/stratixII.c
drivers/fpga/stratixv.c
drivers/fpga/versalpl.c
drivers/fpga/virtex2.c
drivers/fpga/xilinx.c
drivers/fpga/zynqmppl.c
drivers/fpga/zynqpl.c

index 4c00cdf0b57db544275cf652af937b3b2c04ec30..cb7877a8afe761dc5c2179d5961a8ba3df357063 100644 (file)
@@ -9,7 +9,7 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>            /* core U-Boot definitions */
+#include <config.h>            /* core U-Boot definitions */
 #include <console.h>
 #include <log.h>
 #include <ACEX1K.h>            /* ACEX device family */
index 6a4f0cb9bc06ec4ed41e6ca6be404c8b05fa8e8a..ae06f0123a0353b662c5733513f41f67c9b9581c 100644 (file)
@@ -12,7 +12,6 @@
 /*
  *  Altera FPGA support
  */
-#include <common.h>
 #include <errno.h>
 #include <ACEX1K.h>
 #include <log.h>
index 6e8a313db35bcbde943140dc4c3850031c52000f..7e78d6e2d6ce6659b598b69cf101429e206ee8e8 100644 (file)
@@ -7,8 +7,9 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>            /* core U-Boot definitions */
+#include <config.h>            /* core U-Boot definitions */
 #include <log.h>
+#include <time.h>
 #include <altera.h>
 #include <ACEX1K.h>            /* ACEX device family */
 #include <linux/delay.h>
index 81e6d8ffc0bdcbdb704abec9a0ad0892aca40e86..38ba6c21ea2beeb733704196dfb56e6df9107b35 100644 (file)
@@ -5,7 +5,6 @@
  */
 
 /* Generic FPGA support */
-#include <common.h>             /* core U-Boot definitions */
 #include <init.h>
 #include <log.h>
 #include <xilinx.h>             /* xilinx specific definitions */
index 903d143a361c4b35848a5db5af2f6f41707ff9df..45caef4f5c108e86ae35bcca3692692aae622403 100644 (file)
@@ -3,14 +3,16 @@
  * Copyright (C) 2018 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <altera.h>
 #include <log.h>
+#include <time.h>
 #include <watchdog.h>
 #include <asm/arch/mailbox_s10.h>
 #include <asm/arch/smc_api.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/intel-smc.h>
+#include <linux/string.h>
 
 #define RECONFIG_STATUS_POLL_RESP_TIMEOUT_MS           60000
 #define RECONFIG_STATUS_INTERVAL_DELAY_US              1000000
index adc60919f3b01b5d88b4fcba1231a8a1ca28f0c4..b9cecdd8720a6f201338096be7561a2eed125d5c 100644 (file)
@@ -29,7 +29,6 @@
  *        the ispVMLCOUNT function
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/string.h>
 #include <malloc.h>
index e292d991cd18644ec4f97db77ba48d2b36ac3bde..036580cad70f8cc549b02c53af39f430c0325d0b 100644 (file)
@@ -10,7 +10,6 @@
  * Copyright 2009 Lattice Semiconductor Corp.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <fpga.h>
index d73414d5ac54140c677b01172e61536e29d5a6ce..bb98c0e2bcf7e6854bd946c277b0579569357b18 100644 (file)
@@ -4,7 +4,7 @@
  * All rights reserved.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/fpga_manager.h>
index 96b195063e0802ec82eaaf7d6036e1828b0a1507..e9822b2bb0ecab9cae52c2b2c480794d677afdee 100644 (file)
@@ -13,7 +13,6 @@
 #include <asm/arch/misc.h>
 #include <altera.h>
 #include <asm/arch/pinmux.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/ofnode.h>
 #include <errno.h>
index d73474f29ee13f209066c6c0efaf701702bc2bc2..9473f0573289969162f37e483c47bec908a8fdfa 100644 (file)
@@ -4,7 +4,7 @@
  * All rights reserved.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/fpga_manager.h>
index 6eef87b78e16d41cf8635a8930f6642e33c5ae48..9cd6cb7f0fbd83f9c66c4ab78e9421df1b8326b0 100644 (file)
@@ -6,7 +6,7 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>            /* core U-Boot definitions */
+#include <config.h>            /* core U-Boot definitions */
 #include <log.h>
 #include <spartan2.h>          /* Spartan-II device family */
 
index e892fa571f196f42e3467017617090d60b0f3ff9..b4d87d47d9332388bb2c1709b3c5553b9aefdfa7 100644 (file)
@@ -11,8 +11,9 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>            /* core U-Boot definitions */
+#include <config.h>            /* core U-Boot definitions */
 #include <log.h>
+#include <time.h>
 #include <spartan3.h>          /* Spartan-II device family */
 
 /* Note: The assumption is that we cannot possibly run fast enough to
index b450a81072ed3c0a71f80b65dfd5d4cf3e522b6c..73fecd9dca5516fc52b1ba6385c877e0f7b36889 100644 (file)
@@ -4,7 +4,6 @@
  * Eran Liberty, Extricom , eran.liberty@gmail.com
  */
 
-#include <common.h>            /* core U-Boot definitions */
 #include <altera.h>
 #include <linux/delay.h>
 
index abae3b5b7511a5b4a94c81cf89b76f69bad163de..372f16d92d1a650fa6c26b60267f85e6a2a7be60 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <altera.h>
 #include <log.h>
 #include <spi.h>
index be58db54275cc7b382faf0fee696b2f668a5d433..1957e8dcacaced8c0e185288c946d494393813d2 100644 (file)
@@ -4,7 +4,6 @@
  * Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com>>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/arch/sys_proto.h>
index 3ded27f9b3ffa4b88bed1710f3c1b0c385df6f21..8e2c12bb58b1271efea0e3d3a31084eafc49cfdb 100644 (file)
@@ -14,7 +14,7 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>
+#include <config.h>
 #include <console.h>
 #include <log.h>
 #include <virtex2.h>
index 8170c3368ef6f89646e8617d869f1ca1f38b8cea..c46513226d9b36dee94b2265753fc773b0cd69ea 100644 (file)
  *  Xilinx FPGA support
  */
 
-#include <common.h>
 #include <fpga.h>
 #include <log.h>
 #include <virtex2.h>
 #include <spartan2.h>
 #include <spartan3.h>
 #include <zynqpl.h>
+#include <linux/string.h>
 
 /* Local Static Functions */
 static int xilinx_validate(xilinx_desc *desc, char *fn);
index 2656f5fc5ecf3ad2d408028f00b203930f700fa6..2b62bbbe3cf5d24608cddb58adea24cca123f059 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include <console.h>
-#include <common.h>
 #include <compiler.h>
 #include <cpu_func.h>
 #include <fpga.h>
index a2e3b305fa4173ec331f8d2101046fa7ed9960ea..57467b4d975aac8ecccdc828b6307243c6ca3af3 100644 (file)
@@ -6,10 +6,11 @@
  * Joe Hershberger <joe.hershberger@ni.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <console.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <time.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <fs.h>