1. 06 10月, 2014 19 次提交
    • P
      arm: socfpga: Add watchdog disable for socfpga · de6da925
      Pavel Machek 提交于
      This adds watchdog disable. It is neccessary for running Linux kernel.
      Signed-off-by: NPavel Machek <pavel@denx.de>
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      
      V2: Move RSTMGR_PERMODRST_L4WD0_LSB to reset_manager.h
          Reset watchdog only if CONFIG_HW_WATCHDOG is undefined (the default)
      de6da925
    • M
      arm: socfpga: Clean up base address file · be324354
      Marek Vasut 提交于
      Sort the list of functional block addresses and fix indentation.
      No functional change.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      Acked-by: NChin Liang See <clsee@altera.com>
      be324354
    • P
      arm: socfpga: Complete the list of base addresses · e1f006f4
      Pavel Machek 提交于
      Add base addresses for all subsystems as documented in the
      Cyclone V HPS documentation.
      Signed-off-by: NPavel Machek <pavel@denx.de>
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NChin Liang See <clsee@altera.com>
      e1f006f4
    • M
      Merge branches 'topic/drivers/fpga-20141006', 'topic/drivers/mmc-20141006',... · 77fa1648
      Marek Vasut 提交于
      Merge branches 'topic/drivers/fpga-20141006', 'topic/drivers/mmc-20141006', 'topic/drivers/net-20141006', 'topic/tools/mkimage-20141006' and 'topic/arm/cache-20141006' into HEAD
      77fa1648
    • M
      arm: cache: Add support for write-allocate D-Cache · ff7e9700
      Marek Vasut 提交于
      Add configuration for the write-allocate mode of L1 D-Cache on ARM.
      This is needed for D-Cache operation on Cortex-A9 on the SoCFPGA .
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      ff7e9700
    • C
      tools: socfpga: Add socfpga preloader signing to mkimage · 832472a9
      Charles Manning 提交于
      Like many platforms, the Altera socfpga platform requires that the
      preloader be "signed" in a certain way or the built-in boot ROM will
      not boot the code.
      
      This change automatically creates an appropriately signed preloader
      from an SPL image.
      
      The signed image includes a CRC which must, of course, be generated
      with a CRC generator that the SoCFPGA boot ROM agrees with otherwise
      the boot ROM will reject the image.
      
      Unfortunately the CRC used in this boot ROM is not the same as the
      Adler CRC in lib/crc32.c. Indeed the Adler code is not technically a
      CRC but is more correctly described as a checksum.
      
      Thus, the appropriate CRC generator is added to lib/ as crc32_alt.c.
      Signed-off-by: NCharles Manning <cdhmanning@gmail.com>
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      
      V2: - Zap unused constant
          - Explicitly print an error message in case of error
          - Rework the hdr_checksum() function to take the *header directly
            instead of a plan buffer pointer
      832472a9
    • M
      net: dwc: Make the cache handling less cryptic · 96cec17d
      Marek Vasut 提交于
      Add a few new variables to make the cache handling less cryptic.
      Add a variable for DMA and DATA descriptor start and end, so the
      correctness of the code is easier to inspect.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Acked-by: NPavel Machek <pavel@denx.de>
      Acked-by: NChin Liang See <clsee@altera.com>
      96cec17d
    • M
      net: dwc: Fix cache alignment issues · 4f68678b
      Marek Vasut 提交于
      Fix remaining cache alignment issues in the DWC Ethernet driver.
      Please note that the cache handling in the driver is making the
      code hideous and thus the next patch cleans that up. In order to
      make this change reviewable though, the cleanup is split from it.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Acked-by: NPavel Machek <pavel@denx.de>
      4f68678b
    • P
      net: phy: Cleanup drivers/net/phy/micrel.c · 58ec63d6
      Pavel Machek 提交于
      Old saying says that more than three exclamation marks in a row are
      sign of mental disease. Cleanup micrel.c.
      Signed-off-by: NPavel Machek <pavel@denx.de>
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Acked-by: NChin Liang See <clsee@altera.com>
      58ec63d6
    • P
      net: Remove unused CONFIG_DW_SEARCH_PHY from configs · 464eec6d
      Pavel Machek 提交于
      Remove this symbol from configs, since it's unused.
      Signed-off-by: NPavel Machek <pavel@denx.de>
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Acked-by: NChin Liang See <clsee@altera.com>
      464eec6d
    • M
      mmc: dw_mmc: Fix cache alignment issue · 1bf29b3d
      Marek Vasut 提交于
      The DMA descriptors used by the DW MMC block must be aligned to cacheline
      size, otherwise we are unable to properly flush/inval cache over them and
      we get data corruption.
      
      The reason I chose this approach of expanding the structure is because
      the driver allocates the descriptors in bulk. This approach does waste
      space by inserting slop inbetween the descriptors, but it makes access
      to the descriptors easy as the compiler does know the real size of the
      structure. It also makes cache operations easy, since the size of the
      structure is cache aligned and the structure start address is as well.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      Acked-by: NPavel Machek <pavel@denx.de>
      1bf29b3d
    • P
      mmc: dw_mmc: cleanups · f33c9305
      Pavel Machek 提交于
      The dw_mmc driver was responding to errors with debug(). Change that
      to prinf()/puts() respectively so that any errors are immediately
      obvious. Also adjust english in comments.
      Signed-off-by: NPavel Machek <pavel@denx.de>
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      Acked-by: NChin Liang See <clsee@altera.com>
      f33c9305
    • M
      fpga: altera: Turn the switches into table lookup · 2012f238
      Marek Vasut 提交于
      Add a table of FPGA family with matching functions associated with
      it and make all the code just look up the family in that table and
      call the associated function instead of the horrible switch voodoo
      which was duplicated all over the place.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      2012f238
    • M
      fpga: altera: Clean up enums in altera.h · d44ef7ff
      Marek Vasut 提交于
      Get rid of the line-over-80 problems and zap the typedef that
      went alongside those enums.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      d44ef7ff
    • M
      fpga: altera: Make altera_validate return normal values · fda915a4
      Marek Vasut 提交于
      Make the function return either 0 or -EINVAL, that is, normal
      expected error codes and success codes instead of true/false
      nonsense.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      fda915a4
    • M
      fpga: altera: Move altera_validate to the top · 54c96b18
      Marek Vasut 提交于
      Move the function to the top of the file to avoid forward declaration.
      No functional change.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      54c96b18
    • M
      fpga: altera: More indentation trimdown · 4a4c0a5e
      Marek Vasut 提交于
      Further improve the indentation in the rest of the file, where
      the indentation is initially a bit less brutal. There is no
      functional change in this patch.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      4a4c0a5e
    • M
      fpga: altera: Clean up altera_validate function · 5561a841
      Marek Vasut 提交于
      Boldly go, where no programmer has gone before and just clean up
      the indentation mayhem. No functional change.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      5561a841
    • M
      fpga: altera: Clean up the printing and debug · 0ae16cbb
      Marek Vasut 提交于
      Clean up the printf() statements and get rid of the PRINTF()
      macro by replacing it with debug_cond().
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: NPavel Machek <pavel@denx.de>
      0ae16cbb
  2. 27 9月, 2014 5 次提交
  3. 26 9月, 2014 8 次提交
  4. 25 9月, 2014 8 次提交