10 Mar, 2020

1 commit

  • This fixes the following warning:

    ===================== WARNING ======================
    This board does not use CONFIG_DM_ETH (Driver Model
    for Ethernet drivers). Please update the board to use
    CONFIG_DM_ETH before the v2020.07 release. Failure to
    update by the deadline may result in board removal.
    See doc/driver-model/migration.rst for more info.
    ====================================================

    Signed-off-by: Pedro Jardim
    Reviewed-by: Fabio Estevam

    Pedro Jardim
     

07 Jan, 2020

1 commit


08 Oct, 2019

2 commits


23 Jun, 2019

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
     

05 Mar, 2018

1 commit

  • Thomas reported U-Boot failed to build host tools if libfdt-devel
    package is installed because tools include libfdt headers from
    /usr/include/ instead of using internal ones.

    This commit moves the header code:
    include/libfdt.h -> include/linux/libfdt.h
    include/libfdt_env.h -> include/linux/libfdt_env.h

    and replaces include directives:
    #include -> #include
    #include -> #include

    Reported-by: Thomas Petazzoni
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

29 Dec, 2017

1 commit


31 Oct, 2017

2 commits


12 Jul, 2017

1 commit

  • 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
     

12 May, 2017

1 commit


21 Mar, 2017

1 commit

  • Enable more DM drivers. The imx I2C/MMC DM drivers needs DM_GPIO
    enabled. So needs to enable them together.

    DM FEC and SPI are not enabled, but they use gpio in board code.
    So use gpio_request first to request the gpio, because DM_GPIO
    is enabled.

    Signed-off-by: Peng Fan
    Cc: Stefano Babic

    Peng Fan
     

26 Oct, 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
     

12 Jul, 2016

1 commit

  • Instead of passing the total RAM size via PHYS_SDRAM_SIZE option,
    we should better use imx_ddr_size() function, which automatically
    determines the RAM size.

    Signed-off-by: Vanessa Maegima
    Reviewed-by: Fabio Estevam
    Reviewed-by: Fabio Estevam

    Vanessa Maegima
     

31 May, 2016

1 commit


13 Apr, 2016

1 commit


04 Apr, 2016

1 commit

  • Having had a similar board and memory part under logic analyzer, a
    tINIT3 violation was measured. The fix was involved keeping tXPR and
    SDE_to_RST at the power-on defaults and setting RST_to_CKE the JEDEC
    value for LPDDR2. There was also a tIH-CA violation and this was
    resolved by writing the default value in rather than what the script
    here uses.

    Cc: Fabio Estevam
    Cc: Peng Fan
    Signed-off-by: Tom Rini
    Reviewed-by: Fabio Estevam

    Tom Rini
     

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
     

13 Mar, 2016

1 commit


02 Mar, 2016

1 commit


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
     

04 Feb, 2016

1 commit


03 Feb, 2016

1 commit

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

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

    According to the LAN8720 datasheet tpurstd (time that reset line should
    stay asserted) is 25ms.

    So do as suggested in order to have Ethernet working again.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

12 Jan, 2016

1 commit


13 Nov, 2015

1 commit


24 Sep, 2015

1 commit


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

  • Add SPL boot support for mx6slevk board.
    1. Introduce a configuration file mx6slevk_spl_defconfig.
    2. i.MX6SL has same DRAM space with i.MX6SX, need to change SPL DRAM SPACE.
    3. Include imx6_spl.h and related SPL macro in mx6slevk.h.
    4. select SUPPORT_SPL for TARGET_MX6SLEVK.
    5. Add SPL board code to do related initialization.

    Boot Log:

    U-Boot SPL 2015.07-00544-g1594a76 (Aug 17 2015 - 01:56:59)
    reading u-boot.img
    reading u-boot.img

    U-Boot 2015.07-00544-g1594a76 (Aug 17 2015 - 01:56:59 +0000)

    CPU: Freescale i.MX6SL rev1.2 996 MHz (running at 396 MHz)
    CPU: Commercial temperature grade (0C to 95C) at 50C
    Reset cause: POR
    Board: MX6SLEVK
    I2C: ready
    DRAM: 1 GiB
    PMIC: PFUZE100 ID=0x10
    MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
    *** Warning - bad CRC, using default environment

    In: serial
    Out: serial
    Err: serial
    Net: FEC [PRIME]
    Hit any key to stop autoboot: 0

    Signed-off-by: Peng Fan
    Cc: Stefano Babic
    Cc: Fabio Estevam

    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
     

02 Mar, 2015

1 commit


23 Feb, 2015

1 commit

  • Implement power_init_board and related I2C interface configuration.

    After adding this, uboot can successfully detect and configure pmic.

    "
    U-Boot 2015.01-00281-ge29eddf (Feb 12 2015 - 09:24:01)

    CPU: Freescale i.MX6SL rev1.0 at 396 MHz
    Reset cause: POR
    Board: MX6SLEVK
    I2C: ready
    DRAM: 1 GiB
    PMIC: PFUZE100 ID=0x10
    MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
    "

    Signed-off-by: Peng Fan

    Peng Fan
     

02 Jan, 2015

1 commit


31 Dec, 2014

1 commit


30 Dec, 2014

1 commit

  • get_board_rev() just returns the cpu revision, which does not make it really
    useful for distinguishing between revisions of the board.

    Let's get rid of get_board_rev() as it is not being used with its correct
    meaning.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

12 Dec, 2014

1 commit


01 Dec, 2014

1 commit


20 Nov, 2014

1 commit


15 Nov, 2014

1 commit

  • Add pinmux settings, implement board_ehci_hcd_init, board_usb_phy_mode

    There are two usb port on mx6slevk board:
    1. otg port
    2. host port
    The following are the connection between usb controller and board usb
    interface, host port has not ID pin set:
    otg1 core board otg port
    otg2 core board host port
    In order to make host port work, board_usb_phy_mode return USB_INIT_HOST
    to let host port work in host mode.

    Signed-off-by: Peng Fan
    Signed-off-by: Ye Li

    Peng Fan