mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
board: iocon: Fix fpga index in print_fpga_info()
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
a61762d294
commit
8272baa964
1 changed files with 4 additions and 4 deletions
|
@ -180,11 +180,11 @@ static void print_fpga_info(unsigned int fpga, bool rgmii2_present)
|
|||
unsigned feature_carriers;
|
||||
unsigned feature_video_channels;
|
||||
|
||||
int legacy = get_fpga_state(0) & FPGA_STATE_PLATFORM;
|
||||
int legacy = get_fpga_state(fpga) & FPGA_STATE_PLATFORM;
|
||||
|
||||
FPGA_GET_REG(0, versions, &versions);
|
||||
FPGA_GET_REG(0, fpga_version, &fpga_version);
|
||||
FPGA_GET_REG(0, fpga_features, &fpga_features);
|
||||
FPGA_GET_REG(fpga, versions, &versions);
|
||||
FPGA_GET_REG(fpga, fpga_version, &fpga_version);
|
||||
FPGA_GET_REG(fpga, fpga_features, &fpga_features);
|
||||
|
||||
unit_type = (versions & 0xf000) >> 12;
|
||||
feature_compression = (fpga_features & 0xe000) >> 13;
|
||||
|
|
Loading…
Add table
Reference in a new issue