10 Oct, 2014

20 commits


08 Oct, 2014

1 commit

  • In order for the gmac nic to work reliable on the Bananapi, we need to set
    bits 10-12 GTXDC "GMAC Transmit Clock Delay Chain" of the GMAC clk register
    (0x01c20164) to 3.

    Without this about 9 out of 10 ethernet packets get lost, with this setting
    there is no packet loss.

    So far setting these bits is only necessary on the Bananapi, so this commit
    solves this with a bit of #ifdef CONFIG_BANANAPI code. If in the future we
    need to do something similar for other boards, we can create a specific
    CONFIG_FOO option for this then.

    Reported-by: Karsten Merker
    Signed-off-by: Hans de Goede
    Tested-by: Karsten Merker
    Tested-by: Zoltan HERPAI
    Tested-by: Tony Zhang
    Acked-by: Ian Campbell

    Hans de Goede
     

07 Oct, 2014

8 commits


06 Oct, 2014

11 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
     
  • Add command to enable and disable the bridges between HPS and FPGA.

    This patch does have a checkpatch issue with the assembler portion,
    checkpatch correctly complains that there should be no whitespace
    before quoted newline. I do not agree that fixing this specific
    checkpatch issue will improve the readability, thus this one is not
    addressed.

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

    Marek Vasut
     
  • Move icache_enable() and dcache_enable() function calls from
    board code into the CPU code and into the enable_caches()
    function. This is how the cache enabling code was designed
    to work.

    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

    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
     
  • Add code which configures the AMBA NIC-301 and the SCU on the SoCFPGA .
    The code sets the access permissions for the CPU to the AMBA slaves such
    that the CPU can access them in both secure and non-secure mode.

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

    Pavel Machek
     
  • Configure the PL310 address filter to make sure DRAM is mapped to 0x0.
    This code also configures the "remap" register of NIC-301 and sets the
    required 'mpuzero' bit.

    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 register definition for the NIC-301 used on 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
     
  • Add the Snoop Control Unit register definition file.

    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