04 Feb, 2018

6 commits

  • Validate the time at startup:
    - in case rtc error add to kernel command line RTC_ERROR
    - clamp date to 1-Jan-2036

    Signed-off-by: Nandor Han
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Nandor Han
     
  • Modify configuration to support FIT. Set variable `confidx' from VPD,
    in order to load the correct device tree. Modify/simplify U-Boot
    environment to support loading FIT image.

    Signed-off-by: Ian Ray
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Ian Ray
     
  • Enable the hardware watchdog on bx50v3 to cause it to reset in the event
    the board hangs.

    Configure GPIO_9 pin as WDOG1_B so that a watchdog timeout results in a
    full system reset.

    The watchdog is used and reconfigured by systemd approximately 1.7 seconds
    into boot. Adding a few seconds for U-Boot and a few more seconds as a
    safety margin.

    Note that the PCIe controller is _not_ put back into a safe state prior
    to board reset. This is a problem if board reset is implemented as CPU
    reset.

    Signed-off-by: Ian Ray
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Martyn Welch
     
  • There are two I210s on the b850v3 and one on the b450v3 and b650v3.
    One is connected to Marvell 88e6240 which is already programmed.

    Follow the flow documented in doc/README.enetaddr: set the
    enet[0-9]*addr environment variable and let the driver program the
    hardware.

    The mapping from the driver's index to the environment variable's name
    is documented in README: Note for Redundant Ethernet Interfaces. It is
    assumed that eth_devices for the controllers on the board are always
    indexed in the same order.

    The environment variables are removed after programming the hardware
    because the variables seem to influence MAC addresses also after U-Boot.
    Specifically the MAC address of FEC (MC interface) would be incorrectly
    set: 'ethaddr', which maps to the first I210 chip and is set to I210's
    default address read from the driver by eth_write_hwaddr in eth_legacy.c
    because the variable is undefined (not set even by bx50v3.c), would
    result in the eth0 interface's MAC address to be set to I210's default
    address.

    Signed-off-by: Hannu Lounento
    Signed-off-by: Ian Ray
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Hannu Lounento
     
  • Instead of programming the hardware directly in the board
    implementation, follow the flow documented in doc/README.enetaddr: set
    the enet[0-9]*addr environment variable and let the driver program the
    hardware.

    This avoids duplicating the implementation as it already exists in the
    driver (drivers/net/fec_mxc.c: fec_set_hwaddr).

    The mapping from the driver's index to the environment variable's name
    is documented in README: Note for Redundant Ethernet Interfaces. It is
    assumed that eth_devices for the controllers on the board are always
    indexed in the same order, i.e. FEC always has the index 2.

    The FEC driver does *not* set the flag Set MAC Address on Transmit (bit
    set_eth0_mac_address used to do but this is unnecessary as the Linux
    networking stack fills in the MAC address.

    Signed-off-by: Hannu Lounento
    Signed-off-by: Ian Ray
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Martyn Welch
     
  • The change in i2c configuration added to support access to the VPD has
    inadvertantly caused access to i2c buses 1 & 2 to be lost. This has
    resulted in the configuration for the PMIC to be attempted on the wrong
    bus and thus isn't taking effect.

    Add the required configuration to return access to buses 1 & 2. In order
    to ensure that any users of the bus numbering prior to addition in VPD
    patches work, add buses before configuration related to mux on bus 0 and
    tweak VPD bus usage to fit new numbering scheme.

    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Martyn Welch
     

29 Dec, 2017

1 commit


20 Nov, 2017

2 commits


12 Oct, 2017

1 commit

  • When building with W=1 errors like the one below is seen:

    board/freescale/mx6sabresd/mx6sabresd.c:546:5: warning:
    no previous prototype for ‘overwrite_console’
    [-Wmissing-prototypes] int overwrite_console(void)

    Fix the build warnings by including .

    Signed-off-by: Diego Dorta
    Reviewed-by: Fabio Estevam

    Diego Dorta
     

20 Sep, 2017

1 commit


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
     

26 Mar, 2017

2 commits


29 Nov, 2016

1 commit


24 Sep, 2016

1 commit


28 Jul, 2016

1 commit


08 Jun, 2016

1 commit


19 Apr, 2016

5 commits


09 Mar, 2016

1 commit

  • Add support for GE B450v3, B650v3 and B850v3 boards. The boards
    are based on Advantech BA16 module which has a i.MX6D processor.
    The boards support:
    - FEC Ethernet
    - USB Ports
    - SDHC and MMC boot
    - SPI NOR
    - LVDS and HDMI display

    Basic information about the module:
    - Module manufacturer: Advantech
    - CPU: Freescale ARM Cortex-A9 i.MX6D
    - SPECS:
    Up to 2GB Onboard DDR3 Memory;
    Up to 16GB Onboard eMMC NAND Flash
    Supports OpenGL ES 2.0 and OpenVG 1.1
    HDMI, 24-bit LVDS
    1x UART, 2x I2C, 8x GPIO,
    4x Host USB 2.0 port, 1x USB OTG port,
    1x micro SD (SDHC),1x SDIO, 1x SATA II,
    1x 10/100/1000 Mbps Ethernet, 1x PCIe X1 Gen2

    Signed-off-by: Akshay Bhat
    Reviewed-by: Peng Fan

    Akshay Bhat