06 Oct, 2014

20 commits

  • Clean up the system manager register definition and add the missing
    register definitions in place.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • This adds watchdog disable. It is neccessary for running Linux kernel.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    V2: Move RSTMGR_PERMODRST_L4WD0_LSB to reset_manager.h
    Reset watchdog only if CONFIG_HW_WATCHDOG is undefined (the default)

    Pavel Machek
     
  • Sort the list of functional block addresses and fix indentation.
    No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek
    Acked-by: Chin Liang See

    Marek Vasut
     
  • Add base addresses for all subsystems as documented in the
    Cyclone V HPS documentation.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Chin Liang See

    Pavel Machek
     
  • …ic/drivers/net-20141006', 'topic/tools/mkimage-20141006' and 'topic/arm/cache-20141006' into HEAD

    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: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • 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: Charles Manning
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    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

    Charles Manning
     
  • 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: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Pavel Machek
    Acked-by: Chin Liang See

    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: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Old saying says that more than three exclamation marks in a row are
    sign of mental disease. Cleanup micrel.c.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Chin Liang See

    Pavel Machek
     
  • Remove this symbol from configs, since it's unused.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Chin Liang See

    Pavel Machek
     
  • 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: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Pantelis Antoniou
    Acked-by: Pavel Machek

    Marek Vasut
     
  • 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: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Pantelis Antoniou
    Acked-by: Chin Liang See

    Pavel Machek
     
  • 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: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Get rid of the line-over-80 problems and zap the typedef that
    went alongside those enums.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    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: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Move the function to the top of the file to avoid forward declaration.
    No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    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: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Boldly go, where no programmer has gone before and just clean up
    the indentation mayhem. No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    Marek Vasut
     
  • Clean up the printf() statements and get rid of the PRINTF()
    macro by replacing it with debug_cond().

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     

27 Sep, 2014

5 commits


26 Sep, 2014

8 commits

  • Tom Rini
     
  • Tom Rini
     
  • The patch "nand/denali: Adding Denali NAND driver support"
    introduced two config symbols without documenting them.

    Signed-off-by: Scott Wood
    Cc: Chin Liang See
    Cc: Masahiro Yamada

    Scott Wood
     
  • To add the Denali NAND driver support into U-Boot.
    This driver is leveraged from Linux with commit ID
    fdbad98dff8007f2b8bee6698b5d25ebba0471c9. For Denali
    controller 64 variance, you need to declare macro
    CONFIG_SYS_NAND_DENALI_64BIT.

    Signed-off-by: Chin Liang See
    Cc: Scott Wood
    Cc: Masahiro Yamada
    Signed-off-by: Masahiro Yamada
    Reviewed-by: Masahiro Yamada
    Tested-by: Masahiro Yamada

    Chin Liang See
     
  • The ioread16_rep() and iowrite16_rep() implementations are U-Boot specific
    and have been introduced with the Linux MTD v3.14 sync. While introducing
    these functions, the length for the loop has been miscalculated. The ">> 1"
    is already present in the caller. So lets remove it in the function.

    Tested on omap3_ha.

    Signed-off-by: Stefan Roese
    Cc: Heiko Schocher
    Cc: Tom Rini
    Cc: Scott Wood
    Acked-by: Heiko Schocher

    Stefan Roese
     
  • OMAP GPMC driver used with some NAND Flash devices
    (e.g. Spansion S34ML08G1) causes that U-boot shows
    hundreds of 'nand: bit-flip corrected' error messages.
    Possible cause was discussed in the mailinglist thread:
    http://lists.denx.de/pipermail/u-boot/2014-April/177508.html

    The issue was partially fixed with the cc81a5291910d7a.git
    however this has to be done to fix the SPL.

    The original author of the code is Belisko Marek

    Signed-off-by: Rostislav Lisovy

    Rostislav Lisovy
     
  • With some versions of gcc (that we know of 4.6.3 and 4.8.2 are affected)
    it is necessary to specify --bss-plt to get the final blrl in the
    _GOT2_TABLE_. Without this the last symbol does not get it's address
    relocated. For the P2041RDB board this ended up being
    NetArpWaitTimerStart which caused the ARP packets to timeout
    immediately.

    Signed-off-by: Joakim Tjernlund
    Signed-off-by: Chris Packham
    Acked-by: Joakim Tjernlund
    Acked-by: Scott Wood
    Reviewed-by: York Sun

    Chris Packham
     
  • LS1021AQDS has a variant with DDR4 slot. This patch adds a new defconfig
    for this variant to enable DDR4 support. RAW timing parameters are not
    added for DDR4. The board timing parameters are only tuned for single-
    rank 1600 and 1800MT/s with Micron DIMM 9ASF51272AZ-2G1A1 due to DIMM
    availability.

    Signed-off-by: York Sun
    CC: Alison Wang

    York Sun
     

25 Sep, 2014

7 commits