14 Sep, 2018

6 commits

  • Currently the baseboards do not offer a way to autodetect which one is
    in use, so we ask the user if no value has been set.

    Signed-off-by: Otavio Salvador

    Otavio Salvador
     
  • Due the changes in previous commits, we need to resync the defconfig
    to reduce noise in next commits.

    Signed-off-by: Otavio Salvador

    Otavio Salvador
     
  • The 'bmode' command is helpful for switching the boot media.

    In the case of pico-imx6ul there are two possible boot media:
    eMMC or USB.

    To boot from eMMC:

    => bmode emmc

    To boot from USB (via Serial Download Protocol):

    => bmode usb

    Signed-off-by: Fabio Estevam
    Signed-off-by: Fabio Berton
    Signed-off-by: Otavio Salvador

    Fabio Estevam
     
  • fastboot tool is a convenient way to flash the eMMC, so
    add support for it.

    Examples of usages:

    On the pico-imx6ul U-Boot prompt:

    => fastboot 0

    On the Linux PC connected via USB:

    1. Retrieving the U-Boot version

    $ sudo fastboot getvar bootloader-version -i 0x0525
    bootloader-version: U-Boot 2018.07-rc2-00130-g0881835-dirty
    finished. total time: 0.000s

    2. Resetting the board

    $ sudo fastboot reboot -i 0x0525

    (this causes the pico-imx6ul to reboot)

    Signed-off-by: Fabio Estevam
    Signed-off-by: Fabio Berton
    Signed-off-by: Otavio Salvador

    Fabio Estevam
     
  • There are two versions of imx6ul pico SOMs: one with 256MB and another
    one with 512MB of RAM.

    Convert to SPL so that both versions can be supported. This patch
    doesn't rework the clock initialization to avoid changing the behavior
    in this same patch, so it will be cleaned up in future.

    Currently only the 256MB is tested/supported.

    Signed-off-by: Fabio Estevam
    Signed-off-by: Fabio Berton
    Signed-off-by: Otavio Salvador

    Fabio Estevam
     
  • Instead of keeping a custom environment, use a more generic approach
    by switching to distro config.

    Signed-off-by: Fabio Estevam
    Signed-off-by: Otavio Salvador

    Fabio Estevam
     

11 Sep, 2018

7 commits


05 Sep, 2018

3 commits


04 Sep, 2018

6 commits

  • CONFIG_CMD_MII is set without CONFIG_MII, build is broken.

    Signed-off-by: Stefano Babic

    Stefano Babic
     
  • Convert the codes and configurations to enable DM drivers in u-boot for
    modules: i2c, PMIC, regulator, USB, Ethernet, SD/MMC, GPIO and QSPI

    This patch does not change SPL, so it still uses non-DM driver for
    UART, GPIO and SD/MMC.

    Signed-off-by: Ye Li

    Ye Li
     
  • On iMX7D SabreSD board, the QSPI has pins conflict with EPDC (default).
    To use QSPI, users have to rework the board (de-populate R388-R391, R396-R399
    populate R392-R395, R299, R300). So we add new DTS file and new defconfig
    dedicated for QSPI.

    Other changes to support the DM QSPI:
    - Add QSPI node and alias spi0.
    - Modify spi4 (spi-gpio) node and add alias spi5 for it to avoid req
    conflict
    - Add EPDC node in imx7d.dtsi and disable it in imx7d-sdb-qspi.dts to
    align with kernel and also present the conflict.
    - Add -u-boot.dtsi to modify compatible string of mx25l51245g@0 to
    "spi-flash"
    - Remove iomux settings of qspi in board codes which is not needed
    for DM driver.

    Signed-off-by: Ye Li

    Ye Li
     
  • To support DM QSPI driver:
    - Add -u-boot.dtsi to modify n25q256a@0 and n25q256a@1 compatible string
    to "spi-flash" and add "num-cs" property.
    - Enable DM SPI and DM SPI FLASH configurations
    - Remove iomux settings of qspi1 in board codes which is not needed
    for DM driver.

    Signed-off-by: Ye Li

    Ye Li
     
  • To support DM QSPI driver
    - Add spi0 and spi1 alias for qspi1 and qspi2.
    - Add -u-boot.dtsi to modify n25q256a@0 and n25q256a@1 compatible string
    to "spi-flash" and add "num-cs" property.
    - Enable DM SPI/QSPI relavent configurations
    - Remove iomux settings of qspi2 in board codes which is not needed
    for DM driver.
    - Add sf default settings. So running "sf probe" can detect the flash

    Signed-off-by: Ye Li

    Ye Li
     
  • Rsync all defconfig files using moveconfig.py

    Signed-off-by: Tom Rini

    Tom Rini
     

27 Aug, 2018

1 commit


25 Aug, 2018

3 commits


24 Aug, 2018

1 commit

  • Switch the Arria10 from ad-hoc hardcoded timer to timer framework
    and the DW APB timer driver. This allows the A10 to extract timer
    information, like timer rate, from clock framework and thus DT
    instead of having it hardcoded in U-Boot configuration files.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Ley Foon Tan

    Marek Vasut
     

21 Aug, 2018

3 commits


20 Aug, 2018

5 commits

  • A20 OLinuXino Micro eMMC board has emmc with mmc2 slot
    so use proper dts, sun7i-a20-olinuxino-micro-emmc.dts

    Cc: Stefan Mavrodiev
    Cc: Hans de Goede
    Acked-by: Maxime Ripard
    Signed-off-by: Jagan Teki

    Jagan Teki
     
  • The SPL space is limited. In order to try to enable DM in SPL,
    we need more space. When combined wtih TINY_PRINTF, this reduces
    the size of SPL by 6.5k

    Original:

    text data bss dec hex filename
    20760 1216 80 22056 5628 spl/u-boot-spl

    Tiny Printf
    text data bss dec hex filename
    17947 1216 80 19243 4b2b spl/u-boot-spl

    Malloc Simple + Tiny Printf
    text data bss dec hex filename
    15187 176 28 15391 3c1f spl/u-boot-spl

    Signed-off-by: Adam Ford

    Adam Ford
     
  • The SPL space is limited. In order to try to enable DM in SPL,
    we need more space. This reduces the size of SPL by ~2.7K

    before:
    text data bss dec hex filename
    20760 1216 80 22056 5628 spl/u-boot-spl
    after:
    text data bss dec hex filename
    17947 1216 80 19243 4b2b spl/u-boot-spl

    Signed-off-by: Adam Ford

    Adam Ford
     
  • Since using DM_I2C_COMPAT throws a warning during compilation,
    and it isn't really needed any longer, so this patch removes
    this feature and shrinks the code a bit.

    from:
    text data bss dec hex filename
    343326 13388 123448 480162 753a2 u-boot

    to:
    text data bss dec hex filename
    342924 13380 123440 479744 75200 u-boot

    Signed-off-by: Adam Ford

    Adam Ford
     
  • Currently building U-Boot as the coreboot payload requires user
    to change the build configuration for a specific board during
    menuconfig process. This uses the board's native device tree
    to configure the hardware. For example, the device tree provides
    PCI address range for the PCI host controller and U-Boot will
    re-program all PCI devices' BAR to be within this range. In order
    to make sure we don't mess up the hardware, we should guarantee
    the range matches what coreboot programs the chipset.

    But we really should make the coreboot payload support easier.
    Just like EFI payload, we can create a generic coreboot payload
    for all x86 boards as well. The payload is configured to include
    as many generic drivers as possible. All stuff that touches low
    level initialization are not allowed as such is the coreboot's
    responsibility. Platform specific drivers (like gpio, spi, etc)
    are not included.

    Signed-off-by: Bin Meng
    Reviewed-by: Christian Gmeiner

    Bin Meng
     

18 Aug, 2018

5 commits