]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fpga: Remove CONFIG_FPGA_COUNT
authorTom Rini <trini@konsulko.com>
Mon, 13 Jun 2022 00:01:59 +0000 (20:01 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jun 2022 21:11:48 +0000 (17:11 -0400)
This define is only currently used in a single board, and always set to
one.  Define this within the board code and remove other references.

Signed-off-by: Tom Rini <trini@konsulko.com>
README
board/astro/mcf5373l/fpga.c
include/configs/astro_mcf5373l.h
include/configs/mx53cx9020.h
include/configs/socfpga_common.h

diff --git a/README b/README
index dbb0d9695496d366f8372a11dc2cc1f8c3f78033..c1d516beda87e6140ca3fa015b9eee40886713d9 100644 (file)
--- a/README
+++ b/README
@@ -1350,10 +1350,6 @@ The following options need to be configured:
                Enables support for FPGA family.
                (SPARTAN2, SPARTAN3, VIRTEX2, CYCLONE2, ACEX1K, ACEX)
 
-               CONFIG_FPGA_COUNT
-
-               Specify the number of FPGA devices to support.
-
                CONFIG_SYS_FPGA_PROG_FEEDBACK
 
                Enable printing of hash marks during FPGA configuration.
index ef82f066070309209db3bfd89bf2c3c6aa6e5bca..50a3830b8573c5fee24366aedf44b83032a34f47 100644 (file)
@@ -168,7 +168,8 @@ Altera_CYC2_Passive_Serial_fns altera_fns = {
        altera_post_fn
 };
 
-Altera_desc altera_fpga[CONFIG_FPGA_COUNT] = {
+#define FPGA_COUNT     1
+Altera_desc altera_fpga[FPGA_COUNT] = {
        {Altera_CYC2,
         passive_serial,
         85903,
@@ -182,7 +183,7 @@ int astro5373l_altera_load(void)
 {
        int i;
 
-       for (i = 0; i < CONFIG_FPGA_COUNT; i++) {
+       for (i = 0; i < FPGA_COUNT; i++) {
                /*
                 * I did not yet manage to get relocation work properly,
                 * so set stuff here instead of static initialisation:
@@ -372,7 +373,7 @@ xilinx_spartan3_slave_serial_fns xilinx_fns = {
        xilinx_fastwr_config_fn
 };
 
-xilinx_desc xilinx_fpga[CONFIG_FPGA_COUNT] = {
+xilinx_desc xilinx_fpga[FPGA_COUNT] = {
        {xilinx_spartan3,
         slave_serial,
         XILINX_XC3S4000_SIZE,
@@ -388,7 +389,7 @@ int astro5373l_xilinx_load(void)
 
        fpga_init();
 
-       for (i = 0; i < CONFIG_FPGA_COUNT; i++) {
+       for (i = 0; i < FPGA_COUNT; i++) {
                /*
                 * I did not yet manage to get relocation work properly,
                 * so set stuff here instead of static initialisation:
index 9bf6968e8ad9d24623d3f897d3fe13bc373e4c8b..18e06076a4ab5bb047abc07ce6e7e5708d798af9 100644 (file)
  * it needs non-blocking CFI routines.
  */
 
-#define CONFIG_FPGA_COUNT      1
 #define CONFIG_SYS_FPGA_PROG_FEEDBACK
 #define CONFIG_SYS_FPGA_WAIT           1000
 
index 1e5df3f7d7adc7f45774cab18a89356a1a22b53f..f1d751f15a2424ba53e07366670877f0f05cce76 100644 (file)
@@ -16,8 +16,6 @@
 
 #define CONFIG_MXC_UART_BASE UART2_BASE
 
-#define CONFIG_FPGA_COUNT 1
-
 /* MMC Configs */
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
 #define CONFIG_SYS_FSL_ESDHC_NUM       2
index 6453ab79527d5904809911061ecaa6d7f6b32906..10ba2d22ffa74c2f27098d1db670c03ca5c36ad2 100644 (file)
 #define CONFIG_DW_ALTDESCRIPTOR
 #endif
 
-/*
- * FPGA Driver
- */
-#ifdef CONFIG_CMD_FPGA
-#define CONFIG_FPGA_COUNT              1
-#endif
-
 /*
  * L4 OSC1 Timer 0
  */