diff options
author | Dirk Eibach <dirk.eibach@gdsys.cc> | 2014-11-13 19:21:16 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2014-11-19 08:48:41 +0100 |
commit | 8272baa964580da299391398dc3e286d904a9f56 (patch) | |
tree | 27d200b2ca7eb8c7d4c3895fddebc070bea90c84 /board/gdsys/405ep | |
parent | a61762d294b1e76d5bdb5fd6c514f4404515ad82 (diff) | |
download | u-boot-imx-8272baa964580da299391398dc3e286d904a9f56.zip u-boot-imx-8272baa964580da299391398dc3e286d904a9f56.tar.gz u-boot-imx-8272baa964580da299391398dc3e286d904a9f56.tar.bz2 |
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>
Diffstat (limited to 'board/gdsys/405ep')
-rw-r--r-- | board/gdsys/405ep/iocon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/gdsys/405ep/iocon.c b/board/gdsys/405ep/iocon.c index 1bac970..fffed73 100644 --- a/board/gdsys/405ep/iocon.c +++ b/board/gdsys/405ep/iocon.c @@ -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; |