QSPI flash access from u-boot on Cyclone V SOC development board

I am trying to use the QSPI flash from uboot on the development kit.
The flash content starts at offset 0 with 0xdeadbeaf

  • When reading in linux from the MTD partition => data ok
  • When using u-boot from the SDK GSRD image (u-boot 2013.01.01) => data ok
  • When using u-boot socfpga 2016-05 from Altera git => data incorrect
  • When using u-boot socfpga 2016-09 from Altera git => data incorrect

I would expect that the default configuration for the devkit would work, but it seems something is changed
causing this issue. Anyone has expereinced the same ?

Read command used:
=> sf probe
=> sf read ${loadaddr} 0 128
device 0 offset 0x0, size 0x128
SF: 296 bytes @ 0x0 Read: OK
=> md ${loadaddr}

Data as read with GSRD u-boot

00008090: deadbeaf deadbeaf deadbeaf deadbeaf …
000080a0: deadbeaf deadbeaf deadbeaf deadbeaf …
000080b0: deadbeaf deadbeaf deadbeaf deadbeaf …
000080c0: deadbeaf deadbeaf deadbeaf deadbeaf …
000080d0: deadbeaf deadbeaf deadbeaf deadbeaf …

Data as read with newer u-boot

01000000: beafdeff beafdead beafdead beafdead …
01000010: beafdead beafdead beafdead beafdead …
01000020: beafdead beafdead ffffdead ffffffff …
01000030: ffffffff ffffffff ffffffff ffffffff …
01000040: ffffffff ffffffff ffffffff ffffffff …
01000050: ffffffff ffffffff ffffffff ffffffff …