mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
fpga: Export fpga_get_desc for SPL
SPL needs to detect FPGA device which will be used for loading bitstream. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
6583505c23
commit
ebd322de43
2 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,7 @@ static void fpga_no_sup(char *fn, char *msg)
|
||||||
/* fpga_get_desc
|
/* fpga_get_desc
|
||||||
* map a device number to a descriptor
|
* map a device number to a descriptor
|
||||||
*/
|
*/
|
||||||
static const fpga_desc *const fpga_get_desc(int devnum)
|
const fpga_desc *const fpga_get_desc(int devnum)
|
||||||
{
|
{
|
||||||
fpga_desc *desc = (fpga_desc *)NULL;
|
fpga_desc *desc = (fpga_desc *)NULL;
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ typedef enum {
|
||||||
void fpga_init(void);
|
void fpga_init(void);
|
||||||
int fpga_add(fpga_type devtype, void *desc);
|
int fpga_add(fpga_type devtype, void *desc);
|
||||||
int fpga_count(void);
|
int fpga_count(void);
|
||||||
|
const fpga_desc *const fpga_get_desc(int devnum);
|
||||||
int fpga_load(int devnum, const void *buf, size_t bsize,
|
int fpga_load(int devnum, const void *buf, size_t bsize,
|
||||||
bitstream_type bstype);
|
bitstream_type bstype);
|
||||||
int fpga_fsload(int devnum, const void *buf, size_t size,
|
int fpga_fsload(int devnum, const void *buf, size_t size,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue