19 Jul, 2016

1 commit

  • Add configs and board level codes for i.MX6ULL 14x14 EVK. Very similar
    board from i.MX6UL EVK. I2C, UART, USB, QSPI, SD, ENET and LCD are ok
    to work.

    The codes for i.MX6ULL 9x9 EVK is kept. We will add 9x9 build target when
    it is needed.

    The DDR3 script is using version 1.2:

    File: EVK_IMX6ULL_DDR3L_400MHz_512MB_16bit_V1.2_NewDRAM.inc

    Test: 3 boards passed memtester.

    Build target:

    mx6ull_14x14_evk_defconfig

    Signed-off-by: Ye Li

    Ye Li
     

08 Jun, 2016

1 commit


06 Jun, 2016

1 commit

  • LCD_PWR_EN controls the G pin of Q13 PMOS which needs low voltage to connect
    D to S for outputting LCD 3.3V. If LCD_PWR_EN is high, we measured the LCD 3v3
    is actually 1.2V.

    Signed-off-by: Ye Li
    (cherry picked from commit 28eb616b6c49de492cc0cdb3ad5b618bed77960f)

    Ye Li
     

23 May, 2016

1 commit


16 May, 2016

2 commits


09 May, 2016

3 commits


04 May, 2016

1 commit


29 Apr, 2016

2 commits

  • DDR script file:
    arik_r2_sdb_ddr3_528_1.14.inc

    Compass link:
    http://compass.freescale.net/livelink/livelink?func=ll&objid=235302593&objAction=browse&sort=name&viewType=1

    Update:
    setmem /32 0x020e0534 = 0x00018200 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR02 (SDQS0_B_TRIM=01, SDQS0_TRIM=10)
    setmem /32 0x020e0538 = 0x00008000 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR03 (SDQS1_B_TRIM=00, SDQS1_TRIM=00)
    setmem /32 0x020e053C = 0x00018200 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR04 (SDQS2_B_TRIM=01, SDQS2_TRIM=10)
    setmem /32 0x020e0540 = 0x00018200 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR05 (SDQS3_B_TRIM=01, SDQS3_TRIM=10)
    setmem /32 0x020e0544 = 0x00018200 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR06 (SDQS4_B_TRIM=01, SDQS4_TRIM=10)
    setmem /32 0x020e0548 = 0x00018200 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR07 (SDQS5_B_TRIM=01, SDQS5_TRIM=10)
    setmem /32 0x020e054C = 0x00018200 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR08 (SDQS6_B_TRIM=01, SDQS6_TRIM=10)
    setmem /32 0x020e0550 = 0x00018200 // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR09 (SDQS7_B_TRIM=01, SDQS7_TRIM=10)

    setmem /32 0x021b08c0 = 0x24912489 // fine tune SDCLK duty cyc to low - seen to improve measured duty cycle of i.mx6
    setmem /32 0x021b48c0 = 0x24914452

    setmem /32 0x021b0018 = 0x00011740 // MMDC0_MDMISC, RALAT=0x5, WALAT=0x1

    Test:
    Passed stress memtester on one board.

    Signed-off-by: Ye Li
    (cherry picked from commit b7f43f47a78c9d0c14fe104daf22efab13709ab1)

    Ye Li
     
  • i.MX7D TO1.2 uses same DDR script as TO1.0,
    TO1.1 uses dedicated DDR script.

    Signed-off-by: Anson Huang
    (cherry picked from commit 527d57e02b05eb0166dcaa1929e46dd2357a8720)

    Anson Huang
     

22 Apr, 2016

1 commit

  • Since the CD pin of SD2 is DNP on the mx6ull arm2 board, this will cause
    SD2 access problem even the card is inserted. Hard code the CD result to
    1 to assume the card is always on.
    The SD driver will return other errors if the card does not exist.

    Signed-off-by: Ye Li
    (cherry picked from commit 47efe2fda62297ab1da8594828cd7bd928ecbda7)

    Ye Li
     

21 Apr, 2016

2 commits

  • 1. Bind the macro CONFIG_MX6ULL_DDR3_ARM2_EMMC_REWORK to eMMC 8 bits rework, which
    conflicts with QSPIA and NAND, that we have to disable them at same time.

    2. Bind the macro CONFIG_MX6ULL_DDR3_ARM2_QSPIB_REWORK to QSPI B port rework, which
    conflicts with SD2 and NAND, that we have to disable them at same time.

    3. Fix a typo issue of CONFIG_MX6ULL_DDR3_ARM2_EMMC_REWORK

    4. Enable QSPI support for default SD boot case.

    Signed-off-by: Ye Li
    (cherry picked from commit 00f36b3e9445ff47ed68262ef2d656e410cd8fcd)

    Ye Li
     
  • Fix build error for Plugin

    "Can't stat board/freescale/mx6ul_14x14_ddr3_arm2/plugin.bin: Bad file descriptor"

    Signed-off-by: Peng Fan
    (cherry picked from commit 95860f1213c038ef2e5900d1874ff5398ac0be2a)

    Peng Fan
     

20 Apr, 2016

1 commit

  • File:
    IMX6ULL_DDR3L_400MHz_1GB_16bit_V2.1.inc

    Changes:
    Change ZQ_OFFSET to the default value:00
    setmem /32 0x021B0890 = 0x00400000
    Change IOMUXC_SW_PAD_CTL_PAD_DRAM_RESET.DDR_SEL to 11
    setmem /32 0x020E0288 = 0x000C0030
    Change duty cycle fine tune cell for SDCLK and SDQS
    setmem /32 0x021B08C0 = 0x00944009

    Test:
    One mx6ull ARM2 board passed memtest.

    Signed-off-by: Ye Li
    (cherry picked from commit 8128b2f3b419a1d15a0489a91e56a4ac82eaf0c4)

    Ye Li
     

13 Apr, 2016

1 commit


25 Mar, 2016

23 commits

  • Q901 is PMOS, LCD_nPWREN should be at low voltage then output is 3V3.
    If LCD_nPWREN is high, output is 2.4V which is not correct.

    Signed-off-by: Peng Fan

    Peng Fan
     
  • Fix 74LV OE gpio index. pinmux is correct, but gpio index
    is wrong, so gpio output will not have effect, since we
    use wrong GPIO5_IO18, but not correct GPIO5_IO8.

    And at the end of the initialization of 74lv init, should
    keep OE voltage level at LOW, but not high.

    Signed-off-by: Peng Fan

    Peng Fan
     
  • Enable the configurations CONFIG_MODULE_FUSE and CONFIG_OF_SYSTEM_SETUP for
    module fuse check. And modify board level codes for SD, FEC and EIM.

    Signed-off-by: Ye Li

    Ye Li
     
  • Setup MMDC in two channel fixed mode
    Initialize dram banks for two channel fixed mode
    DRAM bank = 0x00000000
    -> start = 0x10000000
    -> size = 0x20000000
    DRAM bank = 0x00000001
    -> start = 0x80000000
    -> size = 0x20000000

    Signed-off-by: Adrian Alonso

    Adrian Alonso
     
  • Since DDR enter retention mode after kernel enter DSM mode, we have to exit DDR
    retention mode before uboot boot, so add this in DCD and plugin code.
    Signed-off-by: Robin Gong
    (cherry picked from commit 62248ef80dabbd7601ff4e2969368d7bf54896d9)

    Robin Gong
     
  • Since the WDOG driver has updated to clear SRS at software assertion of
    WDOG. We don't need this in board level.

    Signed-off-by: Ye Li

    Ye Li
     
  • When using watchdog timeout in kernel, the reset does not output the
    WDOG_B signal, so the power supply won't be reset. To solve the problem,
    we enable it in u-boot.

    Signed-off-by: Ye Li

    Ye Li
     
  • When using watchdog timeout in kernel, the reset does not output the
    WDOG_B signal, so the power supply won't be reset. To solve the problem,
    we enable it in u-boot.

    Signed-off-by: Ye Li

    Ye Li
     
  • Need to configure the phy AR8031 to output 125Mhz clock for ENET
    reference clock. And introduce a TX clock delay.

    Signed-off-by: Ye Li

    Ye Li
     
  • Set the ID pin pad to pull up not the pull down at default, otherwise
    we can't enter the device mode, but always detect as host.

    After this change we have to use portA cable to play as host,
    and use portB cable for device.

    Signed-off-by: Ye.Li

    Ye.Li
     
  • This is a demo that CM4 will boot up by u-boot without typing any
    command. It boots up at u-boot early init, try to minimize the time
    from power up to the CM4 running.
    Since CM4 runs on QSPI NOR XIP, we have to disable the QSPI driver in
    u-boot to avoid conflict.

    RDC for shared GPIO1 is added, but not enabled, because the kernel is
    not ready for shared GPIO1. Users can uncomment the CONFIG_IMX_RDC to
    enable it.

    Some legacy codes in mx6sxsabreauto are removed. We only need this work
    on mx6sxsabresd as a demo.

    Signed-off-by: Ye Li

    Ye Li
     
  • Add board level support for android fastboot feature. Each board has
    a android specified header file for defining android related configuraitons.
    And add build targets for their android uboot images building.

    For mx6qsabreauto, mx6sabresd and mx7dsabresd, we enable the android
    fastboot exclusive with DFU.

    Signed-off-by: Ye Li

    Ye Li
     
  • Integrate the FSL android fastboot features into community's fastboot.

    1. Use USB gadget g_dnl driver
    2. Integrate the FSL SD/SATA/NAND flash operations, since the GPT and
    EFI partitions are not support by i.MX.
    3. Add FDT support to community's android image.
    4. Add a new boot command "boota" for android image boot. The boota
    implements to load ramdisk and fdt to their loading addresses
    specified in boot.img header, while bootm won't do it for android image.
    5. Support the authentication of boot.img at the "load_addr" for
    both SD and NAND.
    6. We use new configuration CONFIG_FSL_FASTBOOT for Freescale's fastboot
    with relevant header file "fsl_fastboot.h". While disabling the
    configuration, the community fastboot is used.
    7. Overwrite the cmdline in boot.img by using bootargs saved in local environment.
    8. Add recovery and reboot-bootloader support.

    Signed-off-by: Ye Li

    Ye Li
     
  • The is_soc_rev returns true when the revision is matched, this is opposited
    with uboot v2015 which returns 0. Have to fix this for mx7dsabresd

    Signed-off-by: Ye Li

    Ye Li
     
  • Modify the picosom to be suit for Brillo configurations.

    Signed-off-by: Haoran Wang
    (cherry picked from commit 864fd4f019674e8333b1fdb91e9242ae75f35992)
    To align with 2016.03, fix several places.
    Signed-off-by: Peng Fan

    Peng Fan
     
  • Imported the picosom boot codes and board
    configs from technexion.

    Signed-off-by: Tapani Utriainen
    Signed-off-by: Haoran Wang
    (cherry picked from commit d102c193f3f903055239f07ddbaab63715dbf82f)

    Haoran Wang
     
  • CONFIG_SECURE_BOOT is used for signed image building, this configuration is
    not enabled at default. Comment it in board header files. Users can
    uncomment it to enable.

    Also add CONFIG_CSF_SIZE for defining the CSF reserved size

    Signed-off-by: Ye Li

    Ye Li
     
  • On i.MX7D TO1.1, design team adds a mux cell at the CKE path to fix the suspend
    mode reset issue, but seems it add extra delay on CKE path, so CKE-CK timing violated.
    When DDR enters self-refresh or retention for long time(> 15seconds per testing on some boards),
    DDR data corruption occured, not able to decrease CKE delay, so we have to add extra
    delay on all other signals to balance it.
    DDR script needs to be fine-tuned according to this hardware change.

    For DDR3, since the timing margin is not good, we have to decrease the DDR frequency from
    533Mhz to 400Mhz.

    We uses TO1.1 script at default, and retains the TO1.0 script for reference.

    Compass link:
    http://compass.freescale.net/livelink/livelink?func=ll&objid=235010235&objAction=browse&sort=name

    Signed-off-by: Ye Li

    Ye Li
     
  • Porting all mx7d arm2 boards (mx7d 12x12 lpddr3, 12x12 ddr3,
    19x19 ddr3, 19x19 lpddr2, 19x19 lpddr3) support from u-boot v2015.04.

    Signed-off-by: Ye Li

    Ye Li
     
  • Port LDO bypass support from v2015 to support the features:

    1. Add check for 1.2GHz core speed. If Speed grading fuse is for 1.2GHz,
    enable LDO bypass and setup PMIC voltages. LDO bypass is dependent
    on the flatten device tree file.

    2. We set WDOG_B in set_anatop_bypass() before, because it is the only case, but now
    on i.mx6sabreauto board, we didn't use ldo-bypass mode, but have to use WDOG_B to
    reboot whole board, so split these code to independent function so that board file
    can call it freely.

    Signed-off-by: Ye Li

    Ye Li
     
  • Change to use CONFIG_TARGET_MX6UL_9X9_EVK for selecting DDR script.

    Signed-off-by: Ye Li

    Ye Li
     
  • Add support for various boot devices like NAND, QSPINOR, SPINOR,
    eMMC, EIMNOR, SATA.

    Modify board level files to support the feature and add corresponding defconfig files

    Signed-off-by: Ye Li

    Ye Li
     
  • Add i.MX6SX/UL arm2 boards support.
    Most code are from imx_v2015.04, but adapted to 2016.03 release.

    Tested on mx6ul_14x14_ddr3_arm2 and mx6sx_19x19_ddr3_arm2.

    Signed-off-by: Peng Fan

    Peng Fan