15 May, 2017

1 commit


12 May, 2017

2 commits


11 May, 2017

5 commits

  • Using u-boot-2017.05 on i.MX6UL we ran into following problem:
    Initially U-Boot could be started normally.
    If we added one random command in configuration, the newly generated
    image hung at startup (last output was DRAM: 256 MiB).

    We tracked this down to a data abort within relocation (relocated_code).

    relocated_code in arch/arm/lib/relocate.S copies 8 bytes per loop
    iteration until the source pointer is equal to __image_copy_end.
    In a good case __image_copy_end was aligned to 8 bytes, so the loop
    stopped as suggested, but in an errornous case __image_copy_end was
    not aligned to 8 bytes, so the loop ran out of bounds and caused a
    data abort exception.

    This patches solves the issue by aligning __image_copy_end to 8 byte
    using the linker script related to arm.

    From Community: http://patchwork.ozlabs.org/patch/760592/

    Signed-off-by: Peng Fan

    Manfred Schlaegl
     
  • Fix coverity:392391 392382 392385 Unsigned compared against 0

    Signed-off-by: Peng Fan

    Peng Fan
     
  • Add return value check

    Coverity 392391

    Signed-off-by: Peng Fan

    Peng Fan
     
  • The device managed API actually not free the memory, so need
    to use devm_kfree to free the memory to avoid leakage.

    Coverity: 392384 resource leak

    Signed-off-by: Peng Fan

    Peng Fan
     
  • There are two problems in enabling DDR mode in this new driver:
    1. The TDH bits in FLSHCR register should be set to 1. Otherwise, the TX DDR delay logic
    won't be enabled. Since u-boot driver does not have DDR commands in LUT. So this won't
    cause explicit problem.
    2. When doing read/write/readid/erase operations, the MCR register is overwritten, the bits
    like DDR_EN are cleared during these operations. When we using DDR mode QSPI boot, the TDH bit
    is set to 1 by ROM. if the DDR_EN is cleared, there is no clk2x output for TX data shift.
    So these operations will fail.
    The explicit problem is users may get "SF: unrecognized JEDEC id bytes: ff, ff, ff" error
    after using DDR mode QSPI boot on 6UL/ULL EVK boards.

    Signed-off-by: Ye Li

    Ye Li
     

10 May, 2017

2 commits


09 May, 2017

4 commits


08 May, 2017

4 commits


04 May, 2017

1 commit


03 May, 2017

1 commit


29 Apr, 2017

7 commits


26 Apr, 2017

1 commit

  • Remove CONFIG_IS_ENABLED() macro in the driver, it seems the macro don't work
    in the config build for mx6sxsabreauto_config platform.

    And CONFIG_IS_ENABLED(FOO) evaluates to
    * 1 if CONFIG_SPL_BUILD is undefined and CONFIG_FOO is set to 'y' or 'm',
    * 1 if CONFIG_SPL_BUILD is defined and CONFIG_SPL_FOO is set to 'y' or 'm'

    If enable CONFIG_SPL_BUILD, then CONFIG_FOO doesn't work.

    Now remove the CONFIG_IS_ENABLED() in the driver.

    Signed-off-by: Fugang Duan

    Fugang Duan
     

25 Apr, 2017

1 commit


21 Apr, 2017

1 commit

  • VGEN3 and VGEN5 have been fused the right value in PF0100 on i.mx6qp board,
    so software didn't need to change their voltage output anymore. Otherwise,
    VGEN3 will be wrongly updated from 1.8v to 2.8v.

    Signed-off-by: Robin Gong
    (cherry picked from commit 6f7f185664a401f03f6ce6c81b996c1f27fdbe73)
    Signed-off-by: Ye Li

    Robin Gong
     

20 Apr, 2017

3 commits


14 Apr, 2017

2 commits

  • The new ROM patch will set DENOM and NUM of APLL and SPLL to 0 to
    workaround PLL issue.
    When DENOM is 0, the PLL rate calculation will divide 0 and raise a signal.

    raise: Signal # 8 caught

    To avoid such problem, we change our calculation.

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

    Ye Li
     
  • The GPU uses APLL PFD2 as its clock parent (483.84Mhz) with divider set to 1.
    This frequecy is out of ULP A0 spec. The MAX rate for GPU is 350Mhz.
    So we simply configure the APLL PFD2 to 345.6Mhz (FRAC=28) to workaround the problem.
    The correct fix should let GPU handle the clock rate in kernel.

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

    Ye Li
     

06 Apr, 2017

5 commits