]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig
authorAlexander Dahl <ada@thorsis.com>
Thu, 21 Jul 2022 13:31:22 +0000 (15:31 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 26 Jul 2022 06:39:43 +0000 (08:39 +0200)
This converts the following to Kconfig: SYS_FPGA_PROG_FEEDBACK

Signed-off-by: Alexander Dahl <ada@thorsis.com>
Link: https://lore.kernel.org/r/20220721133122.32428-3-ada@thorsis.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
README
configs/astro_mcf5373l_defconfig
drivers/fpga/Kconfig
drivers/fpga/spartan2.c
drivers/fpga/virtex2.c
include/configs/astro_mcf5373l.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 8c31e5c0e395f4541eba443bf984bd2e4eb982d5..2c4bde0b32973d00d2abda5b48c747fcdfc87f0e 100644 (file)
--- a/README
+++ b/README
@@ -1330,10 +1330,6 @@ The following options need to be configured:
                Enables support for FPGA family.
                (SPARTAN2, SPARTAN3, VIRTEX2, CYCLONE2, ACEX1K, ACEX)
 
-               CONFIG_SYS_FPGA_PROG_FEEDBACK
-
-               Enable printing of hash marks during FPGA configuration.
-
                CONFIG_SYS_FPGA_CHECK_BUSY
 
                Enable checks on FPGA configuration interface busy
index 3a44c7e8ec9d68400431e3356aebe148d85d4da8..9f5cb8702c6d301ede17a4dc52a1d5634bb774fa 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_FPGA_ALTERA=y
 CONFIG_FPGA_CYCLON2=y
 CONFIG_FPGA_XILINX=y
 CONFIG_FPGA_SPARTAN3=y
+CONFIG_SYS_FPGA_PROG_FEEDBACK=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_SYS_FSL_I2C_OFFSET=0x58000
index 78d9588e4b7da6764c537bafc43a0cf5e63a244d..696ea92c6e9572278622d77c8e5f41e3ab0565f2 100644 (file)
@@ -97,4 +97,11 @@ config SYS_FPGA_CHECK_CTRLC
        help
          User can interrupt FPGA configuration by pressing CTRL+C.
 
+config SYS_FPGA_PROG_FEEDBACK
+       bool "Progress output during FPGA configuration"
+       depends on FPGA
+       default y if FPGA_VIRTEX2
+       help
+         Enable printing of hash marks during FPGA configuration.
+
 endmenu
index 3435400e58bd2518bb14446a640833e269ae93b4..fe37752210b491e2a913c94fbe23887e1caa3d1d 100644 (file)
@@ -15,7 +15,6 @@
 #endif
 
 #undef CONFIG_SYS_FPGA_CHECK_BUSY
-#undef CONFIG_SYS_FPGA_PROG_FEEDBACK
 
 /* Note: The assumption is that we cannot possibly run fast enough to
  * overrun the device (the Slave Parallel mode can free run at 50MHz).
index 0fd2290e3d35b71785485e88645b1bf3a0c9eea3..2e764bdcd526f592d55838d7ad5138a48a98b020 100644 (file)
 #define CONFIG_FPGA_DELAY()
 #endif
 
-#ifndef CONFIG_SYS_FPGA_PROG_FEEDBACK
-#define CONFIG_SYS_FPGA_PROG_FEEDBACK
-#endif
-
 /*
  * Check for errors during configuration by default
  */
index a8265e961a26e0482791813b670c719f7000cd84..da4d49741d2cbecb8344814339e608e5105e3bbf 100644 (file)
  * it needs non-blocking CFI routines.
  */
 
-#define CONFIG_SYS_FPGA_PROG_FEEDBACK
 #define CONFIG_SYS_FPGA_WAIT           1000
 
 /* End of user parameters to be customized */
index efc2f3bcf71ee2db4cf65e8ba5f9b4333dbab721..fc07c5d2579c2ad8abeaa6840f4afceff6594183 100644 (file)
@@ -743,7 +743,6 @@ CONFIG_SYS_FPGA_FTIM0
 CONFIG_SYS_FPGA_FTIM1
 CONFIG_SYS_FPGA_FTIM2
 CONFIG_SYS_FPGA_FTIM3
-CONFIG_SYS_FPGA_PROG_FEEDBACK
 CONFIG_SYS_FPGA_SIZE
 CONFIG_SYS_FPGA_WAIT
 CONFIG_SYS_FSL_BMAN_ADDR