09 Jan, 2018

1 commit


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
     

12 Oct, 2017

1 commit


26 Sep, 2017

1 commit


20 Sep, 2017

1 commit

  • The hummingboard2 is slightly different to the cubox i and to the
    hummingboard. The GPIO pin info to probe came from solidruns
    for of u-boot on github.
    https://github.com/SolidRun/u-boot-imx6/blob/imx6/board/solidrun/mx6_cubox-i/mx6_cubox-i.c#L569-L589
    I have tested on a hummingboard-edge witha imx6 solo and 512mb of
    ram.

    Signed-off-by: Dennis Gilmore

    Dennis Gilmore
     

28 Aug, 2017

1 commit


16 Aug, 2017

1 commit


18 Jul, 2017

1 commit


12 Jul, 2017

4 commits

  • Change is consistent with other SOCs and it is in preparation
    for adding SOMs. SOC's related files are moved from cpu/ to
    mach-imx/.

    This change is also coherent with the structure in kernel.

    Signed-off-by: Stefano Babic

    CC: Fabio Estevam
    CC: Akshay Bhat
    CC: Ken Lin
    CC: Marek Vasut
    CC: Heiko Schocher
    CC: "Sébastien Szymanski"
    CC: Christian Gmeiner
    CC: Stefan Roese
    CC: Patrick Bruenn
    CC: Troy Kisky
    CC: Nikita Kiryanov
    CC: Otavio Salvador
    CC: "Eric Bénard"
    CC: Jagan Teki
    CC: Ye Li
    CC: Peng Fan
    CC: Adrian Alonso
    CC: Alison Wang
    CC: Tim Harvey
    CC: Martin Donnelly
    CC: Marcin Niestroj
    CC: Lukasz Majewski
    CC: Adam Ford
    CC: "Albert ARIBAUD (3ADEV)"
    CC: Boris Brezillon
    CC: Soeren Moch
    CC: Richard Hu
    CC: Wig Cheng
    CC: Vanessa Maegima
    CC: Max Krummenacher
    CC: Stefan Agner
    CC: Markus Niebel
    CC: Breno Lima
    CC: Francesco Montefoschi
    CC: Jaehoon Chung
    CC: Scott Wood
    CC: Joe Hershberger
    CC: Anatolij Gustschin
    CC: Simon Glass
    CC: "Andrew F. Davis"
    CC: "Łukasz Majewski"
    CC: Patrice Chotard
    CC: Nobuhiro Iwamatsu
    CC: Hans de Goede
    CC: Masahiro Yamada
    CC: Stephen Warren
    CC: Andre Przywara
    CC: "Álvaro Fernández Rojas"
    CC: York Sun
    CC: Xiaoliang Yang
    CC: Chen-Yu Tsai
    CC: George McCollister
    CC: Sven Ebenfeld
    CC: Filip Brozovic
    CC: Petr Kulhavy
    CC: Eric Nelson
    CC: Bai Ping
    CC: Anson Huang
    CC: Sanchayan Maity
    CC: Lokesh Vutla
    CC: Patrick Delaunay
    CC: Gary Bisson
    CC: Alexander Graf
    CC: u-boot@lists.denx.de
    Reviewed-by: Fabio Estevam
    Reviewed-by: Christian Gmeiner

    Stefano Babic
     
  • The Cubox-i and Hummingboard series of devices have an option of
    SATA on board, and depending on how the fuses are blown even the
    option to boot SPL from SATA. So enable support for it so it can
    be used to boot the OS from if people desire.

    Cc: Fabio Estevam
    Signed-off-by: Peter Robinson
    Acked-by: Fabio Estevam

    Peter Robinson
     
  • The clearfog uses Armada 388.

    Cc: Stefan Roese
    Signed-off-by: Baruch Siach
    Signed-off-by: Stefan Roese

    Baruch Siach
     
  • 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
     

31 May, 2017

1 commit

  • Use GPIO19 which is wired to the uSOM phy reset signal in order to reset
    the uSOM's 1512 Gigabit Ethernet phy.

    This GPIO is valid on ClearFog rev 2.1 and newer.

    Taken from SolidRun's specialised u-boot, see
    https://github.com/SolidRun/u-boot-armada38x/commit/f906e3df172e07ac82cdd87b278d7896949262ea

    Signed-off-by: Patrick Wildt
    Signed-off-by: Stefan Roese

    Patrick Wildt
     

24 Sep, 2016

1 commit


07 Sep, 2016

1 commit

  • Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
    REFR fields of the MDREF register as 1 and 7, respectively for
    DDR3 and 0 and 3 for LPDDR2.

    Looking at the MDREF initialization done via DCD we see that
    boards do need to initialize these fields differently:

    $ git grep 0x021b0020 board/
    board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
    board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x00000800 /* MMDC0_MDREF */
    board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
    board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
    board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x00001800
    board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00000800
    board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x00000800
    board/warp/imximage.cfg:DATA 4 0x021b0020 0x00001800

    So introduce a mechanism for users to be able to configure
    REFSEL and REFR fields as needed.

    Keep all the mx6 SPL users in their current REF_SEL and REFR values,
    so no functional changes for the existing users.

    Signed-off-by: Fabio Estevam
    Reviewed-by: Eric Nelson

    Fabio Estevam
     

28 Jul, 2016

1 commit


02 Apr, 2016

1 commit

  • Most of ehci-fsl header describe USB controller
    designed by Chipidea and used by various SoC vendors.

    This patch renames it to a generic header: ehci-ci.h
    Contents of file are not changed (so it contains several
    references to freescale SoCs).

    Signed-off-by: Mateusz Kulikowski
    Acked-by: Marek Vasut
    Tested-by: Simon Glass

    Mateusz Kulikowski
     

06 Feb, 2016

1 commit

  • Correct spelling of "U-Boot" shall be used in all written text
    (documentation, comments in source files etc.).

    Signed-off-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Reviewed-by: Simon Glass
    Reviewed-by: Minkyu Kang

    Bin Meng
     

14 Jan, 2016

2 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
     
  • This patch adds basic support for the SolidRun ClearFog Armada 38x based
    board to mainline U-Boot. Supported interfaces / devices are:
    - DDR3
    - UART
    - MMC
    - Ethernet port 0 (connected to dedicated PHY)
    - I2C

    The included DT source was taken from Russell King's ftp server:
    http://www.home.arm.linux.org.uk/~rmk/clearfog/

    With only minor modifications, like the addition of some aliases and the
    "u-boot,dm-pre-reloc" property.

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

    Stefan Roese
     

12 Jan, 2016

1 commit


10 Jan, 2016

2 commits

  • We currently support various versions of Solidrun mx6 boards, so
    remove the obsolete comment.

    Reported-by: Jon Nettleton
    Signed-off-by: Fabio Estevam
    Reviewed-by: Stefano Babic

    Fabio Estevam
     
  • Since commit 59370f3fcd1350 ("net: phy: delay only if reset handler is
    registered") Ethernet is no longer functional:

    Booting from net ...
    FEC Waiting for PHY auto negotiation to complete......... TIMEOUT !
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4

    This commit does not have an issue in itself, but it revelead a problem
    with the Ethernet initialization.

    As per the AR8035 datasheet:

    "For a reliable power on reset, suggest to keep asserting the reset
    low long enough (10ms) to ensure the clock is stable and clock-to-reset
    1ms requirement is satisfied."

    So do as suggested and keep the reset low for 10ms.

    Also add a 100us delay after deasserting the reset line
    to guarantee that the PHY ID can be read correctly and the Atheros
    PHY can be loaded as per Troy Kisky's suggestion.

    Signed-off-by: Fabio Estevam
    Tested-by: Tom Rini

    Fabio Estevam
     

13 Sep, 2015

1 commit

  • Remove duplicated SYS_SOC Kconfig entry from board Kconfig,
    because we have this entry in arch/arm/cpu/armv7/mx6/Kconfig.

    Signed-off-by: Peng Fan
    Cc: Stefano Babic
    Cc: Heiko Schocher
    Cc: Christian Gmeiner
    Cc: Stefan Roese
    Cc: Troy Kisky
    Cc: Nikita Kiryanov
    Cc: "Eric Bénard"
    Cc: Fabio Estevam
    Cc: Tim Harvey
    Cc: Marek Vasut
    Cc: Markus Niebel
    Cc: Otavio Salvador
    Acked-by: Stefan Roese
    Acked-by: Marek Vasut
    Acked-by: Christian Gmeiner
    Acked-by: Markus Niebel
    Acked-by: Troy Kisky
    Acked-by: Igor Grinberg

    Peng Fan
     

02 Sep, 2015

2 commits

  • To i.MX6, DDR3 and LPDDR2 is supported, so rename function mx6_dram_cfg
    to mx6_ddr3_cfg and the original mx6_dram_cfg function only is a wrapper.
    The new reimplemented function mx6_dram_cfg only invokes mx6_ddr3_cfg
    when ddr_type is for DDR3. Later we can use ddr_type to initialize
    MMDC for LPDDR2.

    Initialize ddr_type for different boards which enable SPL.

    Signed-off-by: Peng Fan
    Cc: Stefano Babic
    Cc: Tim Harvey
    Cc: Stefan Roese
    Cc: Fabio Estevam
    Reviewed-by: Stefan Roese

    Peng Fan
     
  • To i.MX6SX/UL, two ethernet interfaces are supported.
    Add ENET2 clock support:
    1. Introduce a new input parameter "fec_id", only 0 and 1 are allowed.
    To value 1, only i.MX6SX/UL can pass the check.
    2. Modify board code who use this api to follow new api prototype.

    Signed-off-by: Peng Fan
    Cc: Heiko Schocher
    Cc: Fabio Estevam
    Cc: Stefan Roese
    Cc: Nikolaos Pasaloukos
    Cc: Stefano Babic
    Reviewed-by: Stefan Roese

    Peng Fan
     

15 Jun, 2015

1 commit


19 May, 2015

1 commit

  • The 'mx6-microsom' directory was only used for the previous mx6solo
    hummingboard support, which has been removed in favour of the SPL
    version.

    Remove the remaining piece of the old mx6solo hummingboard support.

    Signed-off-by: Fabio Estevam
    Acked-by: Stefano Babic

    Fabio Estevam
     

16 May, 2015

6 commits

  • Cubox-i boards are also supported, so update the README file.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • Hummingboard dual, dual-lite and solo are now supported via SPL mechanism.

    Remove the previous hummingboard support, which does not use SPL and supported
    only the solo variant.

    Signed-off-by: Fabio Estevam
    Reviewed-by: Tom Rini

    Fabio Estevam
     
  • Configure PAD_ENET_RXD0/RXD1 pads as pull down because these pads are directly
    connected to the Atheros 8035/8030 although they should be functional
    only in the RMII mode - 8030.

    Signed-off-by: Rabeeh Khoury
    Signed-off-by: Fabio Estevam
    Reviewed-by: Stefano Babic
    Reviewed-by: Tom Rini
    Tested-By: Vagrant Cascadian

    Fabio Estevam
     
  • mx6cuboxi sometimes fails to recognize the Ethernet PHY:

    Net: Phy 0 not found

    The explanation for this behavior comes from from Rabeeh Khoury:

    "The LED_ACT pin on the carrier-one boards had a pull down that
    forces the phy address to 0x0; where on CuBox-i and the production
    HummingBoard that pin is connected directly to LED that depending
    on the pull down strength of the LED it might be sampled as '0' or '1' thus
    the phy address might appear as either address 0x0 or 0x4."

    "This is AR8035 implementation; in reset stage the LED pin is configured as
    input, and pull up/down does matter. In this case it configures the PHY
    address.

    After reset is deasserted the same LED pin becomes output and then
    according to the previous pull/up it should be active high/low"

    One way to properly fix this behavior is to place external pull-up/down
    resistors in the LED line, but from a software standpoint we can fix it
    by telling phy_find_by_mask() to scan the PHY at addresses
    0x0 and 0x4.

    Reported-by: Vagrant Cascadian
    Signed-off-by: Rabeeh Khoury
    Signed-off-by: Fabio Estevam
    Acked-by: Stefano Babic
    Reviewed-by: Tom Rini
    Tested-By: Vagrant Cascadian

    Fabio Estevam
     
  • Enable USB Host1 port.

    Signed-off-by: Rabeeh Khoury
    Signed-off-by: Fabio Estevam
    Tested-By: Vagrant Cascadian

    Fabio Estevam
     
  • Add HDMI output using PLL5 as the source for the IPU clocks,
    and accurate VESA timings.

    These settings are based on the patch from Soeren Moch
    submitted for the tbs2910 mx6 based board.

    It allows the display to work properly at 1024x768@60.

    This should make the hdmi output signal compatible with most if not all
    modern displays.

    Signed-off-by: Jon Nettleton
    Signed-off-by: Fabio Estevam
    Reviewed-by: Tom Rini
    Tested-by: Tom Rini
    Signed-off-by: Rabeeh Khoury
    Signed-off-by: Fabio Estevam
    Reviewed-by: Tom Rini
    Tested-by: Vagrant Cascadian

    Fabio Estevam
     

27 Apr, 2015

5 commits


22 Apr, 2015

1 commit

  • Add the initial SPL support for HummingBoard-i2eX, which is based on a
    MX6 Dual.

    For more information about HummingBoard, please check:
    http://www.solid-run.com/products/hummingboard/

    Based on the work from Jon Nettleton and Rabeeh Khoury.

    Signed-off-by: Fabio Estevam
    Reviewed-by: Tom Rini

    Fabio Estevam