Skip to content
Snippets Groups Projects
  1. Aug 08, 2015
    • Dinh Nguyen's avatar
      arm: socfpga: scan: Add code to get FPGA ID · bd0f5a91
      Dinh Nguyen authored
      
      Add code to get the FPGA type for Altera's SoCFPGA family of FPGA. The code
      uses the scan manager to send jtag pulses that will return the FPGA ID.
      
      Signed-off-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
      bd0f5a91
    • Marek Vasut's avatar
      arm: socfpga: scan: Clean up horrible macros · 62a0c9cf
      Marek Vasut authored
      
      Clean up the horrible macros present in the scan_manager.h . Firstly,
      the function scan_mgr_io_scan_chain_prg() is static, yet all the macros
      are used only within it, thus there is no point in having them in the
      header file. Moreover, the macros are just making the code much less
      readable, so remove them instead.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Acked-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
      62a0c9cf
    • Marek Vasut's avatar
      arm: socfpga: scan: Clean up scan_chain_engine_is_idle() · aa5659ac
      Marek Vasut authored
      
      Rework this function so it's clear that it is only polling for certain
      bits to be cleared. Add kerneldoc. Fix it's return value to be either
      0 on success and -ETIMEDOUT on error and propagate this through the
      scan manager code.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Acked-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
      aa5659ac
    • Marek Vasut's avatar
      arm: socfpga: scan: Zap iocsr_scan_chain*_table() · 575d7415
      Marek Vasut authored
      
      Introduce accessor iocsr_get_config_table() for retrieving IOCSR config
      tables. This patch is again trimming down the namespace polution.
      
      The IOCSR config tables are used only by scan manager, they are generated
      by qts and are board specific. Before this patch, the approach to use
      these tables in scan manager was to define an extern variable to silence
      the compiler and compile board-specific iocsr_config.c into U-Boot which
      defined those extern variables. Furthermore, since these are tables and
      the scan manager needs to know the size of those tables, iocsr_config.h
      is included build-wide.
      
      This patch wraps all this into a single accessor which takes the scan
      chain ID and returns pointer to the table and it's size. All this is
      wrapped in wrap_iocsr_config.c board-specific file. The file includes
      the iocsr_config.c (!) to access the original tables and transitively
      iocsr_config.h . It is thus no longer necessary to include iocsr_config.h
      build-wide and the namespace polution is trimmed some more.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      575d7415
    • Marek Vasut's avatar
      arm: socfpga: scan: Staticize scan_mgr_io_scan_chain_prg() · 2df7b2aa
      Marek Vasut authored
      
      This function is never used outside of scan_manager.c , so make it static.
      Zap the prototype in scan_manager.h and move the documentation above the
      function. Make the documentation kerneldoc compliant.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      2df7b2aa
  2. May 07, 2015
  3. Dec 06, 2014
  4. Aug 29, 2014
    • Chin Liang See's avatar
      socfpga: Fix SOCFPGA build error for Altera dev kit · 3ab019e1
      Chin Liang See authored
      
      To fix the build error when build for Altera dev kit, not
      virtual target. At same time, set the build for Altera dev
      kit as default instead virtual target. With that, U-Boot
      is booting well and SPL still lack of few drivers.
      
      Signed-off-by: default avatarChin Liang See <clsee@altera.com>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      3ab019e1
  5. Jul 04, 2014
    • Chin Liang See's avatar
      socfpga: Adding Scan Manager driver · dc4d4aa1
      Chin Liang See authored
      
      Scan Manager driver will be called to configure the IOCSR
      scan chain. This configuration will setup the IO buffer settings
      
      Signed-off-by: default avatarChin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Wolfgang Denk <wd@denx.de>
      CC: Pavel Machek <pavel@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      dc4d4aa1
Loading