Fix bug in io64 target (introduced by commit aba27ac)
authorVasili Galka <vvv444@gmail.com>
Mon, 16 Jun 2014 14:40:59 +0000 (17:40 +0300)
committerTom Rini <trini@ti.com>
Thu, 19 Jun 2014 15:18:37 +0000 (11:18 -0400)
commit2e436467828969b6c9569c21bbe400b2b5b7a27c
tree1657ae649357c76715cdc215009da34ae0be670d
parent7d2357c1999ff1f93f795282526230a8bd176106
Fix bug in io64 target (introduced by commit aba27ac)

From comparison of current logic and the logic that was prior to commit
aba27ac, we see that first parameter of FPGA_GET_REG() shall be the
FPGA index and not channel number. The re-factoring in commit aba27ac
accidentally changed that.

Cc: Stefan Roese <sr@denx.de>
Acked-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Signed-off-by: Vasili Galka <vvv444@gmail.com>
board/gdsys/405ex/io64.c