diff options
author | Reinhard Pfau <pfau@gdsys.de> | 2015-10-28 11:46:30 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-12 15:59:05 -0500 |
commit | 57b84a0d5aff855c4670ac5e231917eecb8b4273 (patch) | |
tree | e1f7c10e1fa297a3826f5f3f43dc2df59aa363be | |
parent | 1c7639ae8a7bc7b4475bd45dc2c44e59467f9a70 (diff) | |
download | u-boot-57b84a0d5aff855c4670ac5e231917eecb8b4273.zip u-boot-57b84a0d5aff855c4670ac5e231917eecb8b4273.tar.gz u-boot-57b84a0d5aff855c4670ac5e231917eecb8b4273.tar.bz2 |
iocon: reset FPGAs in last_stage_init()
- Reset FPGAs in last_stage_init()
Signed-off-by: Reinhard Pfau <pfau@gdsys.de>
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
-rw-r--r-- | board/gdsys/405ep/iocon.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/board/gdsys/405ep/iocon.c b/board/gdsys/405ep/iocon.c index 3a51d86..7484624 100644 --- a/board/gdsys/405ep/iocon.c +++ b/board/gdsys/405ep/iocon.c @@ -381,7 +381,7 @@ int last_stage_init(void) ch0_rgmii2_present = !pca9698_get_value(0x20, 30); } - /* wait for FPGA done */ + /* wait for FPGA done; then reset FPGA */ for (k = 0; k < ARRAY_SIZE(mclink_controllers); ++k) { unsigned int ctr = 0; @@ -396,6 +396,12 @@ int last_stage_init(void) break; } } + + pca953x_set_dir(mclink_controllers[k], MCFPGA_RESET_N, 0); + pca953x_set_val(mclink_controllers[k], MCFPGA_RESET_N, 0); + udelay(10); + pca953x_set_val(mclink_controllers[k], MCFPGA_RESET_N, + MCFPGA_RESET_N); } if (!legacy && (feature_carrier_speed == CARRIER_SPEED_1G)) { |