30 Nov, 2017

1 commit

  • The order of members in struct hws_topology_map is cas_wl, cas_l. The
    comments in the original db-88f6820-gp.c had this wrong and have been
    copied to other Armada-385 based boards. Practically this hasn't made a
    difference since all these boards set both cas_wl and cas_l to 0
    (autodetect) but if there were ever a board that did need to set these
    explicitly they would run into unexpected issued.

    Update the comments to reflect the correct order of structure members.

    Reported-by: Tobi Wulff
    Signed-off-by: Chris Packham
    Reviewed-by: Stefan Roese
    Signed-off-by: Stefan Roese

    Chris Packham
     

16 Nov, 2017

1 commit

  • This makes the initial changes need to support the
    a38x series of SOCs. It adds the device-tree identifier
    as well as changing the board_support function to take
    the IO address designated by device-tree.

    Signed-off-by: Jon Nettleton
    [baruch: use fdt_addr_t; update 37xx and 8K implementations]
    Signed-off-by: Baruch Siach
    Signed-off-by: Stefan Roese

    Jon Nettleton
     

06 Nov, 2017

1 commit

  • As part of my usual round of build testing, output about missing
    MAINTAINERS information was not logged, and thus often overlooked.
    Correct that mistake by ensuring that I log the output of
    genboardscfg.py every time. As part of that, address a number of
    missing MAINTAINERS entires. In the case of a missing file, I have put
    the original submitter down. In the rest of the cases I have added the
    config (and sometimes relevant header file) to the existing set of file
    globs.

    Signed-off-by: Tom Rini

    Tom Rini
     

21 Aug, 2017

1 commit


12 Jul, 2017

1 commit

  • The DDR3 training code for Marvell A38X currently computes 1t timing
    when given board topology map of the Turris Omnia, but Omnia needs 2t.

    This patch adds support for enforcing the 2t timing in struct
    hws_topology_map, through a new enum hws_timing, which can assume
    following values:
    HWS_TIM_DEFAULT - default behaviour, compute whether to enable 2t
    from the number of CSs
    HWS_TIM_1T - enforce 1t
    HWS_TIM_2T - enforce 2t

    This patch also sets all the board topology maps (db-88f6820-amc,
    db-88f6820-gp, controlcenterdc and clearfog) to have timing set to
    HWS_TIM_DEFAULT.

    Signed-off-by: Marek Behun
    Reviewed-by: Stefan Roese
    Signed-off-by: Stefan Roese

    Marek Behún
     

05 Jun, 2017

1 commit


23 Mar, 2017

4 commits

  • Bypass XHCI and AHCi board configuration flow on ESPRESSOBin
    community board.
    The community board does not have i2c expander and USB VBUS
    is always on, so the scan for AHCi and USB devices can be
    faster without unneded configurations.

    Signed-off-by: Konstantin Porotchkin
    Cc: Stefan Roese
    Cc: Igal Liberman
    Cc: Nadav Haklai
    Signed-off-by: Stefan Roese

    Konstantin Porotchkin
     
  • Implement the board-specific network init function for
    ESPRESSOBin community board, setting the on-board Topaz
    switch port to forward mode and allow network connection
    through any of the available Etherenet ports.

    Signed-off-by: Konstantin Porotchkin
    Cc: Stefan Roese
    Cc: Igal Liberman
    Cc: Nadav Haklai
    Cc: Joe Hershberger
    Reviewed-by: Joe Hershberger
    Signed-off-by: Stefan Roese

    Konstantin Porotchkin
     
  • Fix the default pin control values in a board-specific
    function on early board init stage.
    This fix allows the NETA driver to work in RGMII
    mode until the full-featured pin control driver gets
    introduced.

    Signed-off-by: Konstantin Porotchkin
    Cc: Stefan Roese
    Cc: Igal Liberman
    Cc: Nadav Haklai
    Signed-off-by: Stefan Roese

    Konstantin Porotchkin
     
  • Modify the file names and deifinitions relater to Marvell
    db-77f3720 board support. Convert these names to more generic
    armada-37xx platform for future addition of more boards
    based on the same SoC family.

    Signed-off-by: Konstantin Porotchkin
    Cc: Stefan Roese
    Cc: Igal Liberman
    Cc: Nadav Haklai
    Signed-off-by: Stefan Roese

    Konstantin Porotchkin
     

29 Jan, 2017

1 commit


28 Dec, 2016

1 commit


05 Dec, 2016

3 commits

  • This patch adds the necessary files to support the Marvell Armada 8k
    devel board. Most board specfic files are shared with the Armada 7k
    boards under the name "armada-8k*". So only minimal changes are
    necessary to add this basic board support (except the DT files of
    course).

    Signed-off-by: Stefan Roese
    Cc: Nadav Haklai
    Cc: Neta Zur Hershkovits
    Cc: Kostya Porotchkin
    Cc: Omri Itach
    Cc: Igal Liberman
    Cc: Haim Boot
    Cc: Hanna Hawa

    Stefan Roese
     
  • This patch uses of_machine_is_compatible() to detect the board at runtime
    and only configured the I2C IO expander for the xHCI power / reset on
    the DB-88F7040 board. As this code will be used by other Armada-7k/8k
    ports, its necessary to use this runtime detection here.

    Signed-off-by: Stefan Roese
    Cc: Nadav Haklai
    Cc: Neta Zur Hershkovits
    Cc: Kostya Porotchkin
    Cc: Omri Itach
    Cc: Igal Liberman
    Cc: Haim Boot
    Cc: Hanna Hawa

    Stefan Roese
     
  • This moves some of the Armada DB-88F7040 board specific files to a more
    generic name: armada-8k. This is in preparation for the Armada-8k
    support which will be added soon. And since both platforms share
    most devices, lets also share most source files to not duplicate
    the code here.

    Signed-off-by: Stefan Roese
    Cc: Nadav Haklai
    Cc: Neta Zur Hershkovits
    Cc: Kostya Porotchkin
    Cc: Omri Itach
    Cc: Igal Liberman
    Cc: Haim Boot
    Cc: Hanna Hawa

    Stefan Roese
     

27 Sep, 2016

2 commits

  • This patch adds basic support for the Marvell Armada 7K DB-88F7040
    development board. Supported are the following interfaces:
    - UART
    - SPI (incl. SPI NOR)
    - I2C
    - USB
    - SATA / AHCI

    Support for other interfaces will follow.

    Signed-off-by: Stefan Roese
    Cc: Nadav Haklai
    Cc: Neta Zur Hershkovits
    Cc: Kostya Porotchkin
    Cc: Omri Itach
    Cc: Igal Liberman
    Cc: Haim Boot
    Cc: Hanna Hawa

    Stefan Roese
     
  • This patch adds basic support for the Marvell Armada 3700 DB-88F3720
    development board. Supported are the following interfaces:
    - UART
    - SPI (incl. SPI NOR)
    - I2C
    - Ethernet

    Signed-off-by: Stefan Roese
    Cc: Nadav Haklai
    Cc: Kostya Porotchkin
    Cc: Wilson Ding
    Cc: Victor Gu
    Cc: Hua Jing
    Cc: Terry Zhou
    Cc: Hanna Hawa
    Cc: Haim Boot

    Stefan Roese
     

24 Sep, 2016

1 commit

  • This board is a plug in card for Marvell's switch system development
    kits. Form-factor aside it is similar to the DB-88F6820-GP with the
    following differences.
    - TCLK is 200MHz
    - SPI1 is used
    - No SATA
    - No MMC
    - NAND flash

    Reviewed-by: Simon Glass
    Signed-off-by: Chris Packham
    Signed-off-by: Stefan Roese

    Chris Packham
     

28 May, 2016

1 commit


04 Apr, 2016

1 commit

  • This patch adds basic support for the Marvell A375 eval board. Tested
    are the following interfaces:
    - I2C
    - SPI
    - SPI NOR
    - Ethernet (mvpp2), port 0 & 1

    Currently the A375 SerDes and DDR3 init code is not intergrated. So
    the SPL U-Boot is not fully functional.

    Right now, this A375 mainline U-Boot can only be used by chainloading
    it via the original Marvell U-Boot. This can be done via this
    command:

    => tftpboot 00800000 a375/u-boot-dtb.bin;go 00800000

    Signed-off-by: Stefan Roese
    Cc: Luka Perkov

    Stefan Roese
     

24 Mar, 2016

1 commit


14 Jan, 2016

3 commits

  • Merging all the board specific Kconfig options into the main Kconfig file
    for mach-mvebu makes things easier to maintain.

    Signed-off-by: Stefan Roese
    Cc: Luka Perkov

    Stefan Roese
     
  • Update this driver to support driver model. As all MVEBU boards using
    this driver are converted with this patch, the non-driver-model code
    can be removed completely. This is also the reason why this patch
    is quite big and includes a) the driver change and b) the
    platform change. As its not git-bisect save otherwise.

    With this conversion, some parameters are now extracted from the
    DT instread of using the config header defines. The supported
    properties right now are:

    PHY-mode ("phy-mode") and PHY-address ("reg").

    The base addresses for the ethernet controllers can be removed from
    the header files as well.

    Please note that this patch also removes the E1000 network driver
    from some MVEBU config headers. This is necessary, as with DM_ETH
    configured and the e1000 driver enabled, the PCI driver also needs
    to support DM. But the MVEBU PCI(e) driver still needs to get
    ported to DM. When this is done, the E1000 driver can be enabled
    again.

    Signed-off-by: Stefan Roese
    Cc: Luka Perkov
    Cc: Dirk Eibach
    Cc: Joe Hershberger
    Cc: Simon Glass

    Stefan Roese
     
  • This patch adds full DM support to the SPL on MVEBU. Currently
    only serial is supported. Other drivers will follow.

    This patch also adds the necessary config values for the DEBUG UART
    to the MVEBU defconfig files. This came in handy while implementing
    this DM support.

    Additionally, the mvebu specific SPL linker script is removed and
    this common one is used instead:

    arch/arm/cpu/u-boot-spl.lds

    This common linker script already handles all special cases. No need
    to reinvent the wheel for MVEBU here.

    Signed-off-by: Stefan Roese
    Cc: Luka Perkov
    Cc: Dirk Eibach
    Cc: Simon Glass

    Stefan Roese
     

18 Nov, 2015

2 commits

  • Instead of allocating space in the driver for the serdes
    specification table, just allow the board file to set a pointer
    to it. Also, allow the board to only specify the lanes that are
    used instead of including unused lanes.

    Signed-off-by: Kevin Smith
    Acked-by: Stefan Roese
    Cc: Dirk Eibach
    Cc: Luka Perkov

    Kevin Smith
     
  • A lot of extra configuration information was left over in the
    Marvell serdes and DDR3 initialization code for boards that
    U-boot does not support. Remove this extra config information,
    and the concept of fixing up board topologies with information
    loaded from an EEPROM. If this needs to be done, it should be
    handled in the board file, not in core code.

    Signed-off-by: Kevin Smith
    Acked-by: Stefan Roese
    Cc: Dirk Eibach
    Cc: Luka Perkov

    Kevin Smith
     

10 Nov, 2015

1 commit

  • Revert commit 7a2c1b13 which dropped OpenRD boards.
    Assume maintainership of OpenRD.
    Remove OpenRD from scrapyard.
    Switch OpenRD to generic board.
    Switch to Thumb build.

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     

20 Oct, 2015

1 commit


12 Sep, 2015

3 commits


18 Aug, 2015

3 commits

  • This patch enabled the MVEBU PCIe support on the db-88f6820-gp A38x
    eval board. It also enabled the Intel E1000 driver support and
    adds the initialization of PCIe network controllers to the
    board code.

    Signed-off-by: Stefan Roese
    Cc: Anton Schubert
    Cc: Luka Perkov
    Cc: Dirk Eibach

    Stefan Roese
     
  • This patch enabled the MVEBU PCIe support on the db-mv784mp-gp AXP
    eval board. It also enabled the Intel E1000 driver support and
    adds the initialization of PCIe network controllers to the
    board code.

    Signed-off-by: Stefan Roese
    Cc: Anton Schubert
    Cc: Luka Perkov

    Stefan Roese
     
  • This patch enables the NAND controller on the Armada XP/38x and provides
    a new function that returns the NAND controller input clock. This
    function will be used by the MVEBU NAND driver.

    As part of this patch, the multiple BIT macro definitions are moved
    to a common place in soc.h.

    Signed-off-by: Stefan Roese
    Cc: Peter Morrow
    Cc: Luka Perkov

    Stefan Roese
     

23 Jul, 2015

1 commit

  • This patch adds SPL support for the Marvell DB-88F6820-GP board.
    With this change, the bin_hdr from the original Marvell U-boot
    is not needed any more on this board. The sources from bin_hdr
    (SERDES/PHY and DDR setup) are now integrated in mainline
    U-Boot. And this patch enables them for this board.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

10 Jul, 2015

1 commit


05 May, 2015

3 commits

  • This patch adds support for the Marvell DB-88F6820-GP Armada A38x
    evaluation board.

    Supported peripherals are:
    - UART
    - Ethernet (mvneta)
    - I2C
    - SPI (including SPI NOR flash)

    Please note that this board support right now only supports the
    main U-Boot. Without the bin_hdr integration (DDR training etc). This
    will be added in a few days / weeks to complete this board port. But
    till then this U-Boot version can be run on the target via the
    original Marvell U-Boot via this command:

    tftpboot 4000000 db-88f6820-gp/u-boot.bin;go 4000000

    Signed-off-by: Stefan Roese
    Tested-by: Kevin Smith
    Tested-by: Dirk Eibach

    Stefan Roese
     
  • With the introduction of the Armada 38x support, its necessary to change
    the mvneta ethernet driver init call from always 4 times to a
    configurable value. Lets make this init call more flexible by moving
    the actually used devices to the config header.

    Additionally this patch takes care of the slightly different base
    addresses for the ethernet controllers on A38x.

    Signed-off-by: Stefan Roese
    Tested-by: Kevin Smith
    Tested-by: Dirk Eibach
    Acked-by: Joe Hershberger

    Stefan Roese
     
  • Move arch/arm/include/asm/arch-armada-xp/*
    -> arch/arm/mach-mvebu/include/mach/*

    Additionally the SYS_SOC is renamed from "armada-xp" to "mvebu". With this
    change all these files can better be shared with other, newer Mavell
    MVEBU SoC's. Like the upcoming Armada 38x support.

    Signed-off-by: Stefan Roese
    Cc: Masahiro Yamada
    Tested-by: Kevin Smith
    Tested-by: Dirk Eibach

    Stefan Roese
     

25 Feb, 2015

1 commit