1. 23 Aug, 2015 6 commits
    • Marek Vasut's avatar
      arm: socfpga: Add qts-filter.sh script · e996b936
      Marek Vasut authored
      Add script which loads the QTS-generated sources and headers and converts
      them into sensible format which can be used with much more easy in mainline
      U-Boot. The script also filters out macros which makes no sense anymore, so
      they don't pollute namespace and waste space.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    • Marek Vasut's avatar
      arm: socfpga: Split Altera socfpga into AV and CV SoCDK · f0892401
      Marek Vasut authored
      The board/altera/socfpga directory is not a generic SoCFPGA machine
      anymore, but instead it represents the Altera SoCDK board. To make
      matters more complicated, it represents both CycloneV and ArriaV
      On the other hand, nowadays, the content of this board directory is
      mostly comprised of QTS-generated header files, while all the generic
      code is in arch/arm/mach-socfpga already.
      Thus, this patch splits the board/altera/socfpga into a separate
      board directory for ArriaV SoCDK and CycloneV SoCDK, so that each
      can be populated with the correct QTS-generated header files for
      that particular board.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    • Marek Vasut's avatar
      arm: socfpga: Unbind CPU type from board type · cd9b7317
      Marek Vasut authored
      selected both a board and a CPU. This is not correct as these macros
      are supposed to select only board.
      All would be good, if QTS-generated header files didn't check for
      these macros exactly to determine if the platform is Cyclone V or
      Arria V. Thus, for the sake of compatibility with not well fleshed
      out header file generator, this patch makes these two macros into
      a stub config option and introduces new CONFIG_TARGET_SOCFPGA_CYCLONE5_SOCDK
      and CONFIG_TARGET_SOCFPGA_ARRIA5_SOCDK targets, which select the
      previous stub config option.
      The result is that compatibility with QTS is preserved and the new
      CONFIG_TARGET_* select actual target boards.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    • Marek Vasut's avatar
      arm: socfpga: Move wrappers into platform directory · ca62d2e1
      Marek Vasut authored
      Move the wrappers for QTS-generated files into platform directory
      out of the board directory. The trick here is to add -I to CFLAGS
      such that it points to the board directory in source tree and thus
      the qts/ directory there is still reachable.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    • Marek Vasut's avatar
      arm: socfpga: Fix delay in clock manager · 7e4d2fa2
      Marek Vasut authored
      This code claims it needs to wait 7us, yet it uses get_timer() function
      which operates with millisecond granularity. Use timer_get_us() instead,
      which operates with microsecond granularity.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    • Marek Vasut's avatar
      arm: socfpga: Fix delay in freeze controller · a8535c30
      Marek Vasut authored
      Based on observation, this udelay(20) was apparently too high and caused
      subsequent failure to calibrate DDR when U-Boot was compiled with certain
      toolchains. Lowering this delay fixed the problem.
      Instead of permanently lowering the delay, calculate the correct delay
      based on the original comment, that is, obtain EOSC1 frequency and use
      it to calculate the precise delay.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
  2. 08 Aug, 2015 34 commits