15 Jan, 2020

1 commit


08 Jan, 2020

2 commits

  • After the conversion to DM_PMIC the following output is seen:

    PMIC: PMIC: PFUZE100 ID=0x10

    Remove the unnecessary PMIC string from the board file to
    avoid the repetead string.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • Commit ec837c82d709 ("imx6: wandboard: convert to DM_PMIC")
    caused the following pmic_get() error:

    CPU: Freescale i.MX6QP rev1.0 at 792 MHz
    Reset cause: POR
    DRAM: 2 GiB
    PMIC: pmic_get() ret -19
    ...

    and since the PMIC presence is used to determine the board D1 revision,
    the following error is seen when booting a board rev D1:

    WARNING: Could not determine dtb to use

    and the kernel does not boot at all.

    Fix the regression by passing "pfuze100@8" as the correct parameter
    to the pmic_get() function in the DM case.

    Fixes: ec837c82d709 ("imx6: wandboard: convert to DM_PMIC")
    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

03 Dec, 2019

1 commit


08 Oct, 2019

1 commit


12 Aug, 2019

1 commit


09 Jul, 2019

1 commit


04 Jul, 2019

2 commits


23 Jun, 2019

1 commit


11 Jun, 2019

1 commit


17 May, 2019

1 commit

  • When using DM_I2C the speed value supplied to setup_i2c() is not used,
    so this code required CONFIG_SYS_MXC_I2C[12]_SPEED to be defined to
    compile, but did not actually use them.

    Change this so we no longer need to define an unused macro to compile in
    DM_I2C mode. Also make it more clear that they do not control the bus
    speed. Otherwise it is quite easy to mistakenly believe they are used
    to set the bus speed.

    Cc: Heiko Schocher
    Cc: Anatolij Gustschin
    Signed-off-by: Trent Piepho

    Trent Piepho
     

14 Apr, 2019

5 commits


14 Sep, 2018

1 commit


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

28 Apr, 2018

1 commit


29 Mar, 2018

1 commit


20 Nov, 2017

1 commit


31 Oct, 2017

2 commits


12 Oct, 2017

2 commits

  • Latest wandboard hardware revision is revd1, which brings the following
    new features:

    - PFUZE100 PMIC
    - AR8035 Ethernet PHY
    - Upgrade Wifi/BT chip to BCM4339/BCM43430.

    The detection mechanism is to probe the PMIC and when it is
    found, then the revision of the board is revd1.

    As the detection is done via PMIC, we need to print the board version
    at a later stage via CONFIG_DISPLAY_BOARDINFO_LATE and also need
    to disable CONFIG_DISPLAY_BOARDINFO, which is done much earlier.

    Make the necessary adjustments for the AR8035 PHY to work on revd1.

    Based on Richard Hu's work from Technexion's U-Boot tree.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • There is no need call setup_display() from SPL code, so move it to
    board_init(), which executes only in U-Boot proper.

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

    Fabio Estevam
     

18 Sep, 2017

1 commit


28 Aug, 2017

1 commit


16 Aug, 2017

1 commit


12 Jul, 2017

3 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
     
  • There is no need to add a 100us delay after the DDR initialization.

    Other imx6 boards do not have such delay either, so simply remove it.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • At present CONFIG_CMD_SATA enables the 'sata' command which also brings
    in SATA support. Some boards may wish to enable SATA without the command.
    Add a separate CONFIG to permit this.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     

29 Nov, 2016

1 commit

  • When I tried to deactivate VIDEO support for the Wandboard, it still
    tried to initialize the Framebuffer and so on. That is the reason for
    the added ifdefs. CONFIG_VIDEO is enabled in the configuration as default
    and therefore nothing changes for the default user.

    The structs mx6dl_i2c2_pad_info and mx6q_i2c2_pad_info are only available
    when CONFIG_IPUV3 are set and should not be tried to access, when that
    define is not defined.

    Signed-off-by: Sven Ebenfeld

    Sven Ebenfeld
     

06 Nov, 2016

1 commit

  • Since commit ce412b79e7255770 ("drivers: net: phy: atheros: add separate
    config for AR8031") ethernet does not work on mx6sabresd.

    This commit correctly assigns ar8031_config() as the configuration
    function for AR8031 in the same way as done in the Linux kernel.

    However, on wandboard design we need some additional configuration,
    such as enabling the 125 MHz AR8031 output that needs to be done
    in the board file.

    This also aligns with the same method that the kernel performs
    the AR8031 fixup in arch/arm/mach-imx/mach-imx6q.c.

    Signed-off-by: Fabio Estevam
    Acked-by: Joe Hershberger

    Fabio Estevam
     

04 Oct, 2016

1 commit

  • A kernel hang is observed when running wandboard 3.14 kernel and
    going to the lowest operational point of cpufreq:

    # ifconfig eth0 down
    # echo 1 > /sys/class/graphics/fb0/blank

    The problem is caused by incorrect setting of the REFR field
    of register MDREF. Setting it to 4 refresh commands per refresh
    cycle fixes the hang.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

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

2 commits


12 Jul, 2016

1 commit