24 Jul, 2017

1 commit

  • commit 6183b29559107650cb38f905e069a93ff9da1d7d upstream

    Currently while setting the vsel value for dcdc1 and dcdc2
    the driver is wrongly masking the entire 8 bits in the process
    clearing PFM (bit7) field as well. Hence describe an appropriate
    mask for vsel field and modify only those bits in the vsel
    mask.

    Source: http://www.ti.com/lit/ds/symlink/tps65218.pdf

    Signed-off-by: Keerthy
    Fixes: 86db550b38 ("power: Add support for the TPS65218 PMIC")
    Reviewed-by: Jaehoon Chung

    Keerthy
     

20 Jul, 2017

1 commit


17 Jul, 2017

1 commit

  • Increase PHY autonegoiate time from current 8 seconds
    to 16 seconds. On some Ethernet switches, 2 times out
    of 100, the Micrel KSZ9031 PHY on AM572x IDK board seems
    to take more than 8 seconds to establish link at gigabit
    speeds.

    Since the timeout is only an upper bound on waiting time
    it should not affect users who do not face the same
    problem.

    Signed-off-by: Sekhar Nori

    Sekhar Nori
     

15 Jul, 2017

2 commits


03 Jul, 2017

1 commit


27 Jun, 2017

1 commit

  • At present malloc_base/_limit/_ptr are not initialised in spl_init() when
    we call spl_init() in board_init_f(). This is due to a recent change aimed
    at avoiding overwriting the malloc area set up on some boards by
    spl_relocate_stack_gd().

    However if CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN is not defined, we now
    skip setting up the memory area in spl_init() which is obviously wrong.

    To fix this, add a new function spl_early_init() which can be called in
    board_init_f().

    Fixes: b3d2861e (spl: Remove overwrite of relocated malloc limit)
    Signed-off-by: Eddie Cai
    Rewrote spl_{,early_}init() to avoid duplicate code:
    Rewrite/expand commit message:
    Signed-off-by: Simon Glass
    Reviewed-by: Eddie Cai

    Eddie Cai
     

15 Jun, 2017

2 commits

  • commit 7a53a1a8115b upstream

    The problems with the current DFU layout are:
    MMC: The space allocated for u-boot is too small for the latest u-boot
    (>750KB). We need to increase it. eMMC uses a much bigger area (2MB).
    eMMC: region "u-boot.img.raw" overlaps the environment area and the region
    "spl-os-image.raw".
    both: region "spl-os-image.raw" is quite small and can't handle android
    kernels

    Fixing this requires growing some regions and moving others.
    Care has been taken to leave some room for further growth of
    "spl-os-args.raw".
    Also the "env" now appears in the dfu so that it's apparent that the
    region is not free space that can be used to grow "u-boot.img.raw".
    The MLO region is 0x100 sectors wide but the 0x100 are unused in case the
    MLO comes too overflow this areas.
    The total space allocated for those raw binaries is 16MB, of which 13+MB
    are reserved for the kernel image.

    Signed-off-by: Jean-Jacques Hiblot
    Reviewed-by: Tom Rini
    Reviewed-by: Sam Protsenko

    Jean-Jacques Hiblot
     
  • On secure devices the initial secure software may install a firewall at
    the end of DRAM, define protected RAM to avoid space.

    Signed-off-by: Andrew F. Davis

    Andrew F. Davis
     

07 Jun, 2017

2 commits

  • When fat command is enabled, enable fatwrite too
    so U-Boot can create new files too.

    Signed-off-by: Sekhar Nori

    Sekhar Nori
     
  • As per the datasheet[1] available for DDR2 part on board
    the OMAP-L138 LCDK, the tXSNR (exit self refresh to a
    non-read command) is 137.5 ns. This corresponds to a
    value of 20 to be written to T_XSNR register field of
    OMAP-L138's DDR configuration. The DDR2 is at 150 MHz.

    Fix this. The correct value also appears on the initialization
    scripts (called CCS GEL files) available on TI's wiki pages[2]

    [1] http://www.samsung.com/global/business/semiconductor/file/product/ds_k4t1gxx4qf_rev12-0.pdf
    [2] http://processors.wiki.ti.com/index.php/L138/C6748_Development_Kit_(LCDK)#CCS_XML_.26_GEL_Files

    Reviewed-by: Tom Rini
    Signed-off-by: Sekhar Nori

    Sekhar Nori
     

24 May, 2017

1 commit

  • Right now the u-boot,dm-pre-reloc flag will make each marked node
    always appear in both spl and tpl. But systems needing an additional
    tpl might have special constraints for each, like the spl needing to
    be very tiny.

    So introduce two additional flags to mark nodes for only spl or tpl
    environments and introduce a function dm_fdt_pre_reloc to automate
    the necessary checks in code instances checking for pre-relocation
    flags.

    The behaviour of the original flag stays untouched and still marks
    a node for both spl and tpl.

    Signed-off-by: Heiko Stuebner
    Reviewed-by: Simon Glass
    Tested-by: Kever Yang

    Heiko Stübner
     

22 May, 2017

2 commits

  • One some keystone2 platforms like K2G ICE, there is an option
    to switch between 24MHz or 25MHz as sysclk. But the existing
    driver assumes it is always 24MHz. Add support for getting
    all reference clocks dynamically by reading boot pins.

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • Update MPU frequencies and voltages as per the latest
    DM[1] dated: OCT 2011 Revised APRIL 2016, Section 5.4.
    Below is the consolidated data:

    MPU values for PG 2.0 and later(Package ZCZ and ZCE):

    -------------------------------------------------------
    | | ZCZ | ZCE |
    |-------------------------------------------------------|
    | | VDD[V] | ARM [MHz] | VDD[V] | ARM [MHz] |
    |-------|----------|------------|----------|------------|
    | NITRO | 1.325 | 1000 | NA | NA |
    |-------|----------|------------|----------|------------|
    | TURBO | 1.26 | 800 | NA | NA |
    |-------|----------|------------|----------|------------|
    |OPP120 | 1.20 | 720 | NA | NA |
    |-------|----------|------------|----------|------------|
    |OPP100 | 1.10 | 600 | 1.10 | 600 |
    |-------|----------|------------|----------|------------|
    | OPP50 | 0.95 | 300 | 0.95 | 300 |
    -------------------------------------------------------

    There is no eFuse blown on PG1.0 Silicons due to which there is
    no way to detect the maximum frequencies supported. So default
    to OPP100 for which both frequency and voltages are common on both
    the packages.

    [1] http://www.ti.com/lit/ds/symlink/am3356.pdf

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     

10 May, 2017

1 commit

  • compile out cli_hush.c for spl/dfu and
    use cli_simple_run_command for dfu to
    reduce the spl-dfu memory foot print.

    Adding CONFIG_SPL_DFU_MMC to Kconfig and
    use CONFIG_IS_ENABLED(DFU_MMC).

    Signed-off-by: Ravi Babu

    Ravi Babu
     

07 May, 2017

1 commit


04 May, 2017

1 commit


21 Apr, 2017

4 commits


12 Apr, 2017

1 commit

  • commit 5bb7318f9c9fcaa029718149ad061c6031c81022 upstream.

    The env command 'args_fit' does not define a root path, this forces us to
    embed the rootfs into the FIT image. FIT images do not need to contain a
    rootfs, when they do not the kernel will fall-back to the kernel argument
    'root', if this is not defined the kernel will not boot. It is safe to
    add this as when we do have the rootfs in FIT this argument is ignored.
    As 'loadfit' is only called from the MMC boot path, use 'args_mmc' to
    correctly populate 'bootargs'.

    Signed-off-by: Andrew F. Davis
    Reviewed-by: Lokesh Vutla

    Andrew F. Davis
     

11 Apr, 2017

3 commits


07 Apr, 2017

5 commits


22 Mar, 2017

2 commits


21 Feb, 2017

1 commit


16 Feb, 2017

6 commits


15 Feb, 2017

1 commit