10 Oct, 2014

6 commits


07 Oct, 2014

3 commits


06 Oct, 2014

20 commits

  • Enable and use the CONFIG_CMD_FS_GENERIC to avoid hard-coding the
    filesystem type into the environment.

    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
     
  • Split the SoCFPGA configuration into SoC-specific part which is
    common for all boards (socfpga_cyclone5_common.h) and a board
    specific part. There is currently only one board, which is the
    generic SoCFPGA board (socfpga_cyclone5.h), but there are more
    to come.

    This is necessary due to various features of the boards, which
    unfortunatelly cannot be autodetected.

    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

    Pavel Machek
     
  • Reorganize and cleanup the configuration file for SoCFPGA. There
    is no functional change after this cleanup. This was necessary,
    since the file was a wild mess and it was impossible to make sense
    of it's content, let alone change something without breaking some
    other thing. This patch puts the contents on par with regular U-Boot
    standards.

    Also remove unused preprocessor symbols CONFIG_SINGLE_BOOTOADER
    and CONFIG_USE_IRQ, which is undefined by default. Finally, do
    logical reordering of the defines in the file so it's much more
    readable. The reordering was also necessary for the splitting
    as the initial one was messy.

    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
     
  • Enable the SDMMC boot as default boot for SOCFPGA U-Boot dev kit.
    Enable the bootz command as zImage is used instead uImage.

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

    Chin Liang See
     
  • Enable the DesignWare MMC controller driver support
    for SOCFPGA Cyclone5 dev kit

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

    Chin Liang See
     
  • Enable the PL310 L2 cache controller support for the SoCFPGA.
    With the cache related issues resolved, this is safe to be done.

    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
     
  • The code is now fixed to the point where we can safely enable
    the L1 data cache. Enable the D-Cache and set it as write-alloc.

    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
     
  • The Cortex-A9 has 32-byte long L1 cachelines. Define this value.

    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
     
  • Add code necessary to program the FPGA part of SoCFPGA from U-Boot
    with an RBF blob. This patch also integrates the code into the
    FPGA driver framework in U-Boot so it can be used via the 'fpga'
    command.

    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 the not-CPU specific stuff into drivers/fpga/ and base
    this on the cleaned up altera FPGA support.

    Pavel Machek
     
  • The timer reload value is a property of the timer hardware and there
    is no reason for this to be configurable. Place this into the timer
    driver just like on the other hardware.

    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: Dinh Nguyen
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Add the entire bulk of code to read out clock configuration from the SoCFPGA
    CPU registers. This is important for MMC, QSPI and UART drivers as otherwise
    they cannot determine the frequency of their upstream clock.

    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: Fixed the L4 MP clock divider and synced the clock code with latest
    rocketboards codebase (thanks Dinh for pointing this out)

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

    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
     
  • 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
     
  • 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
     
  • Besides converting the LS-XHL and LS-CHLv2 to generic board, fix a typo
    which accidentally reverted the bootsource to 'hdd' although the default
    bootsource should be 'legacy'.

    Cc: Tom Rini
    Cc: Prafulla Wadaskar
    Signed-off-by: Michael Walle
    Signed-off-by: Prafulla Wadaskar

    Michael Walle
     
  • Siemens boards are now using DFU in fullspeed only. For
    this CONFIG_USB_GADGET_DUALSPEED is undefined.

    Signed-off-by: Heiko Schocher
    Cc: Tom Rini
    Cc: Lukasz Majewski
    Cc: Marek Vasut
    Cc: Liu Bin
    Cc: Lukas Stockmann

    Heiko Schocher
     
  • Use the new force parameter to make the stdio_deregister succeed, replacing
    stdin with a nulldev, and assume that the usb keyboard will come back after
    the reset.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • In some cases we really want to move forward with a deregister, add a force
    parameter to allow this, and replace the dev with a nulldev in this case.

    Signed-off-by: Hans de Goede

    Hans de Goede
     

05 Oct, 2014

1 commit


01 Oct, 2014

5 commits


27 Sep, 2014

3 commits


26 Sep, 2014

2 commits