09 May, 2016

1 commit


07 May, 2016

1 commit

  • This patch is a porting of
    http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/?h=imx_4.1.15_1.0.0_ga&id=e4dacc44d22e9474ec456cb330df525cd805ea38
    "
    i.MX6QP and i.MX7D BCH module integrated a new feature to detect the
    bitflip number for erased NAND page. So for these two platform, set the
    erase threshold to gf/2 and if bitflip detected, GPMI driver will
    correct the data to all 0xFF.

    Also updated the imx6qp dts file to ditinguish the GPMI module for i.MX6Q
    with the one for i.MX6QP.
    "

    In this patch, i.MX6UL is added and threshold changed to use ecc_strength.

    Signed-off-by: Peng Fan

    Peng Fan
     

06 May, 2016

3 commits

  • This patch is porting from linux:
    http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/?h=imx_4.1.15_1.0.0_ga&id=3d42fcece496224fde59f9343763fb2dfc5b0768

    "
    We may meet the bitflips in reading an erased page(contains all 0xFF),
    this may causes the UBIFS corrupt, please see the log from Elie:

    -----------------------------------------------------------------
    [ 3.831323] UBI warning: ubi_io_read: error -74 (ECC error) while reading 16384 bytes from PEB 443:245760, read only 16384 bytes, retry
    [ 3.845026] UBI warning: ubi_io_read: error -74 (ECC error) while reading 16384 bytes from PEB 443:245760, read only 16384 bytes, retry
    [ 3.858710] UBI warning: ubi_io_read: error -74 (ECC error) while reading 16384 bytes from PEB 443:245760, read only 16384 bytes, retry
    [ 3.872408] UBI error: ubi_io_read: error -74 (ECC error) while reading 16384 bytes from PEB 443:245760, read 16384 bytes
    ...
    [ 4.011529] UBIFS error (pid 36): ubifs_recover_leb: corrupt empty space LEB 27:237568, corruption starts at 9815
    [ 4.021897] UBIFS error (pid 36): ubifs_scanned_corruption: corruption at LEB 27:247383
    [ 4.030000] UBIFS error (pid 36): ubifs_scanned_corruption: first 6569 bytes from LEB 27:247383
    -----------------------------------------------------------------

    This patch does a check for the uncorrectable failure in the following steps:

    [0] set the threshold.
    The threshold is set based on the truth:
    "A single 0 bit will lead to gf_len(13 or 14) bits 0 after the BCH
    do the ECC."

    For the sake of safe, we will set the threshold with half the gf_len, and
    do not make it bigger the ECC strength.

    [1] count the bitflips of the current ECC chunk, assume it is N.

    [2] if the (N

    Peng Fan
     
  • The clock parent of the AHB root clock when using mux option 1
    is the SYS PLL 270MHz clock. This is specified in Table 5-11
    Clock Root Table of the i.MX 7Dual Applications Processor
    Reference Manual.

    While it could be a documentation error, the 270MHz parent is
    also mentioned in the boot ROM configuration in Table 6-28: The
    clock is by default at 135MHz due to a POST_PODF value of 1
    (=> divider of 2).

    Signed-off-by: Stefan Agner

    Stefan Agner
     
  • Current environment offset on NAND is 37MB, this will cause a alignment
    issue when erasing if nand erase block is 2MB. The saveenv is failed.

    => saveenv
    Saving Environment to NAND...
    Erasing NAND...
    Attempt to erase non block-aligned data

    Since the max erase block we supported is 4MB, adjust the env offset to 60MB,
    where is the last 4MB in 64MB reserved area for boot.

    Signed-off-by: Ye Li

    Ye Li
     

04 May, 2016

2 commits

  • For i.MX6QP, the QoS settings is different from others. Align with DCD.

    Signed-off-by: Peng Fan

    Peng Fan
     
  • According PL310 TRM, Auxiliary Control Register
    "
    The register must be written to using a secure access, and it can be
    read using either a secure or a NS access. If you write to this register
    with a NS access, it results in a write response with a DECERR response,
    and the register is not updated. Writing to this register with the L2
    cache enabled, that is, bit[0] of L2 Control Register set to 1,
    results in a SLVERR.
    "

    So If L2 cache is already enabled, chaning value of ACR will cause SLVERR,
    uboot hangs.

    In some cases, such as plugin, L2 Cache enabled bit is not cleared,
    then "Set bit 22 in the auxiliary control register" cause uboot hangs.

    Signed-off-by: Peng Fan

    Peng Fan
     

03 May, 2016

2 commits


29 Apr, 2016

4 commits

  • The build target mx6ul_14x14_evk_android_defconfig is obsoleted.
    It is replaced by mx6ul_14x14_evk_brillo_defconfig. So remove this old file.

    Signed-off-by: Ye Li

    Ye Li
     
  • 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
     
  • Default build target supports TO1.0 and TO1.2,
    TO1.1 uses its own defconfig.

    Signed-off-by: Anson Huang

    Anson Huang
     
  • 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
     

28 Apr, 2016

1 commit


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

4 commits


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
     

15 Apr, 2016

1 commit

  • Adjust POR_B settings on i.MX6ULL according to design
    team's suggestion:

    2'b00 : always PUP100K
    2'b01 : PUP100K when PMIC_ON_REQ || SOC_NOT_FAIL
    2'b10 : always disable PUP100K
    2'b11 : PDN100K when SOC_FAIL, PUP100K when SOC_NOT_FAIL -- recommended setting

    Signed-off-by: Anson Huang

    Anson Huang
     

13 Apr, 2016

12 commits


28 Mar, 2016

1 commit


25 Mar, 2016

6 commits