fpga: Migrate CONFIG_MAX_FPGA_DEVICES to Kconfig
This is always defined to 5, so use that as the default. Cc: Michal Simek <michal.simek@amd.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
2d1e2e5717
commit
8fe042be9a
3 changed files with 5 additions and 9 deletions
|
@ -153,4 +153,9 @@ config SANDBOX_FPGA
|
||||||
This is a driver model based FPGA driver for sandbox.
|
This is a driver model based FPGA driver for sandbox.
|
||||||
Currently it is a stub only, as there are no usable uclass methods yet.
|
Currently it is a stub only, as there are no usable uclass methods yet.
|
||||||
|
|
||||||
|
config MAX_FPGA_DEVICES
|
||||||
|
int "Maximum number of FPGA devices"
|
||||||
|
depends on FPGA
|
||||||
|
default 5
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -13,11 +13,6 @@
|
||||||
#include <lattice.h>
|
#include <lattice.h>
|
||||||
#include <dm/device_compat.h>
|
#include <dm/device_compat.h>
|
||||||
|
|
||||||
/* Local definitions */
|
|
||||||
#ifndef CONFIG_MAX_FPGA_DEVICES
|
|
||||||
#define CONFIG_MAX_FPGA_DEVICES 5
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Local static data */
|
/* Local static data */
|
||||||
static int next_desc = FPGA_INVALID_DEVICE;
|
static int next_desc = FPGA_INVALID_DEVICE;
|
||||||
static fpga_desc desc_table[CONFIG_MAX_FPGA_DEVICES];
|
static fpga_desc desc_table[CONFIG_MAX_FPGA_DEVICES];
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
#ifndef _FPGA_H_
|
#ifndef _FPGA_H_
|
||||||
#define _FPGA_H_
|
#define _FPGA_H_
|
||||||
|
|
||||||
#ifndef CONFIG_MAX_FPGA_DEVICES
|
|
||||||
#define CONFIG_MAX_FPGA_DEVICES 5
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* fpga_xxxx function return value definitions */
|
/* fpga_xxxx function return value definitions */
|
||||||
#define FPGA_SUCCESS 0
|
#define FPGA_SUCCESS 0
|
||||||
#define FPGA_FAIL 1
|
#define FPGA_FAIL 1
|
||||||
|
|
Loading…
Reference in a new issue