23 Nov, 2014

1 commit


16 Nov, 2014

1 commit


30 Jun, 2014

1 commit

  • The kernel changes to fix the mmcblk index with USDHC controllers
    as below:
    mmcblk0 ---> USDHC1
    mmcblk1 ---> USDHC2
    mmcblk2 ---> USDHC3
    mmcblk3 ---> USDHC4

    So in u-boot, the "mmcroot" must be updated together.

    When booting from SD/MMC device, change the "mmcroot" to
    dynamically set according to the boot USDHC controller.
    It is the same mechanism as "mmcdev" used for kernel image loading.
    Therefore, the uboot, kernel image, dtb and rootfs are required
    in same SD/MMC card.
    To disable the mmc dynamical detection, set the "mmcautodetect" to "no",
    then "mmcroot" and "mmcdev" will not be overwritten.

    When booting from other devices which needs to load kernel, dtb and
    rootfs from SD/MMC card, their "mmcdev" reset vaule is
    CONFIG_SYS_MMC_ENV_DEV and "mmcroot" reset value is CONFIG_MMCROOT.

    Signed-off-by: Ye.Li

    Ye.Li
     

17 Jun, 2014

7 commits

  • Sabreauto board has pin conflict (pin EIM_D18) between NOR flash
    and i2c3. To enable the USB host, the i2c3 must be used to operate
    the max7310 IO expander to output the VBUS power.

    As SPINOR is enabled at default, it is impossible to use USB host
    at same time. Thus, remove the SYS_USE_SPINOR from sabreauto
    configurations to disable SPINOR.

    Signed-off-by: Ye.Li

    Ye.Li
     
  • 1. The i2c2 bus is setup twice, remove the duplication.
    2. The i2c settings are duplicated in mx6qsabreauto.h and mx6sabre_common.h,
    remove it from mx6qsabreauto.h

    Signed-off-by: Ye.Li

    Ye.Li
     
  • 1. Change CONFIG_MMCROOT to mmcblk0p2.
    Kernel always sets the first availiable MMC/SD device to mmcblk0
    2. Make the MMC ENV DEV/PART independent of ENV_IS_IN_MMC
    3. Add the CONFIG_SYS_MMC_ENV_PART to 0 (user area) for u-boot env saving.

    CONFIG_SYS_MMC_ENV_PART: was used to tell the u-boot which
    emmc (boot)partition to be used for the env_mmc.Usually, the
    emmc card will have 2 boot partitions, boot1 and boot2.

    0: means user area
    1: means boot partition 1
    2: means boot partition 2

    If user want to use the boot partition to store the u-boot env, please
    change the CONFIG_SYS_MMC_ENV_PART to which boot partition you want.

    4. Add the CONFIG_SYS_MMC_IMG_LOAD_PART for the partition number where the kernel
    and DTB will load from. At default, it is the first partition in VFAT format.

    Signed-off-by: Ye.Li

    Ye.Li
     
  • Add the GPMI nand support to the iMX6 sabreauto:
    --Enable the GPMI NAND at default.
    --Enable the clocks
    --Set the default environment for nand boot

    Signed-off-by: Huang Shijie
    Signed-off-by: Jason Liu
    Signed-off-by: Ye.Li

    Ye.Li
     
  • This patch adds the SPI-NOR support for the i.mx6q/dl/solo:sabresd/auto board:

    - Support the SPI-NOR function with sf command,
    - Support the enviroment from SPI-NOR when CONFIG_SYS_BOOT_SPINOR

    Signed-off-by: Jason Liu
    Signed-off-by: Ye.Li

    Ye.Li
     
  • The DTB for mx6qsabreauto is empty. To support more iMX6 sabreauto boards,
    remove this DTB in building.

    Signed-off-by: Ye.Li

    Ye.Li
     
  • 1. Make the DDR size configurable based on the boards.cfg
    2. Make the FDT file configurable based on the boards.cfg
    3. Add DDR and boot configuration script for iMX6dl.
    Change default boot from SD card.
    The DDR script has been updated to the v1.5 version from ddr-scripts-rel
    commit: bfd157a Updated MX6DL and MX6DQ ARD and SabreSD scripts.

    Signed-off-by: Ye.Li

    Ye.Li
     

13 Jun, 2014

1 commit

  • imx6 boards (sabresd, sabreauto, arm2 and slevk) have multiple SD/MMC ports to boot.
    But current uboot hard code the SD/MMC port for environment variables storage. So
    if customer changes a port without modifying the configuration "CONFIG_SYS_MMC_ENV_DEV",
    error will issue at saving and loading environment.

    Implement a mechanism to detect SD/MMC port from SRC SMBR register, and override the
    default "mmc_get_env_devno". The "board_late_mmc_env_init" is used to set "mmcdev"
    when booting from SD/MMC port. Finally after booting from SD/MMC, the environment storage
    device and "mmcdev" are both set to current SD/MMC port. Customers don't need to re-build
    the image if booting from different SD/MMC port.

    This patch also adds SD1 and SD3 support to imx6slevk BSP, and adds support for sabreauto
    SD1 slot on base board.

    Signed-off-by: Ye.Li
    Signed-off-by: Nitin Garg

    Nitin Garg
     

02 Apr, 2014

1 commit


21 Oct, 2013

2 commits

  • Tom Rini
     
  • Previously, only host1 was supported using an index of 0.
    Now, otg has index 0, host1 is 1, host2 is 2, host3 is 3.
    Since OTG requires usbmode to be set after reset, I added
    CONFIG_EHCI_HCD_INIT_AFTER_RESET to nitrogen6x.h and
    mx6qsabreauto.h.

    I also added a weak function board_ehci_power to handle
    turning power on/off for otg.

    Type is type of device connected (USB stick vs Host.)
    Init is type of device desired.
    Only power up port if type == init == USB_INIT_HOST.
    Only return error if type != init.

    Signed-off-by: Troy Kisky

    Troy Kisky
     

17 Oct, 2013

1 commit


24 Jul, 2013

1 commit


26 Jun, 2013

1 commit


06 Jun, 2013

1 commit

  • When running the "save" command several times on a mx6qsabresd we see:

    U-Boot > save
    Saving Environment to MMC...
    Writing to MMC(1)... done
    U-Boot > save
    Saving Environment to MMC...
    MMC partition switch failed
    U-Boot > save
    Saving Environment to MMC...
    Writing to MMC(1)... done
    U-Boot > save
    Saving Environment to MMC...
    MMC partition switch failed
    U-Boot > save
    Saving Environment to MMC...
    Writing to MMC(1)... done
    U-Boot > save
    Saving Environment to MMC...
    MMC partition switch failed

    This issue is caused by the incorrect usage of CONFIG_SYS_MMC_ENV_PART.

    CONFIG_SYS_MMC_ENV_PART should be used to specify the mmc partition that stores
    the environment variables.

    On some imx boards it is been incorrectly used to pass the partition of kernel
    and dtb files for the 'mmcpart' script variable.

    Remove the CONFIG_SYS_MMC_ENV_PART usage and configure the 'mmcpart' variable
    directly.

    Reported-by: Jason Liu
    Signed-off-by: Fabio Estevam
    Acked-by: Jason Liu

    Fabio Estevam
     

03 Jun, 2013

1 commit


28 Jan, 2013

2 commits


13 Jan, 2013

1 commit


06 Jan, 2013

1 commit

  • The on-board number of available usdhc devices is something board
    specific. The patch moves CONFIG_SYS_FSL_USDHC_NUM out of
    mx6qsabre_common.h and adds usdhc2 and usdhc4 support for mx6qsabresd
    board.

    To keep the default mmc device for environment same as before (usdhc3),
    it moves CONFIG_SYS_MMC_ENV_DEV out of mx6qsabre_common.h and changes
    it to 1 for mx6qsabresd.

    Signed-off-by: Shawn Guo

    Shawn Guo
     

16 Oct, 2012

3 commits