10 May, 2014

2 commits


09 May, 2014

1 commit


07 May, 2014

1 commit


06 May, 2014

1 commit


05 May, 2014

8 commits

  • Last argument shouldn't be there.

    Signed-off-by: Mateusz Zalega
    Acked-by: Marek Vasut
    Cc: Tom Rini

    Mateusz Zalega
     
  • Preprocessor definitions and hardcoded implementation selection in
    g_dnl core were replaced by a linker list made of (usb_function_name,
    bind_callback) pairs.

    Signed-off-by: Mateusz Zalega
    Acked-by: Lukasz Majewski
    Acked-by: Marek Vasut

    Mateusz Zalega
     
  • Future patches will make DFU too large to fit in this board's SPL build.

    Signed-off-by: Mateusz Zalega
    Acked-by: Tom Rini
    Reviewed-by: Lukasz Majewski

    Mateusz Zalega
     
  • Previously offsets handled by dfu_fill_entity_mmc(), defined in boards'
    CONFIG_DFU_ALT were treated as hexadecimal regardless of their prefix,
    which sometimes led to confusion. This patch forces usage of explicit
    numerical base prefixes.

    Signed-off-by: Mateusz Zalega
    Acked-by: Lukasz Majewski
    Cc: Tom Rini
    Cc: Minkyu Kang

    Mateusz Zalega
     
  • When user attempted to perform a raw write using DFU (vide
    dfu_fill_entity_mmc) with MMC interface not initialized before,
    get_mmc_blk_size() reported invalid (zero) block size - it wasn't
    possible to write ie. a new u-boot image.

    This commit fixes that by initializing MMC device before use in
    dfu_fill_entity_mmc().

    While fixing initialization sequence, I had to change about half of
    dfu_fill_entity_mmc's body, so I refactored it on the way to make it,
    IMHO, considerably more comprehensible.

    Being left as dead code, get_mmc_blk_size() was removed.

    Tested on Samsung Goni.

    Signed-off-by: Mateusz Zalega
    Signed-off-by: Kyungmin Park
    Acked-by: Lukasz Majewski
    Acked-by: Tom Rini
    Cc: Minkyu Kang

    Mateusz Zalega
     
  • Former usb_cable_connected() patch broke compilation of boards which do
    not support this feature.

    I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
    its default implementation to gadget downloader driver code. There's
    only one driver of this kind and it's unlikely there'll be another, so
    there's no point in keeping it in /common.

    Previously this function was declared in usb.h. I've moved it, since
    it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
    for USB host implementation.

    Existing code, confronted with default -EOPNOTSUPP return value,
    continues as if the cable was connected.

    CONFIG_USB_CABLE_CHECK was removed.

    Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
    Signed-off-by: Mateusz Zalega
    Acked-by: Marek Vasut
    Acked-by: Lukasz Majewski

    Mateusz Zalega
     
  • Implementation made use of types defined in common.h, even though it
    wasn't #included. It worked in circumstances when .c files included
    every needed header (all).

    Signed-off-by: Mateusz Zalega
    Cc: Tom Rini
    Cc: Minkyu Kang

    Mateusz Zalega
     
  • Structure definition used type block_dev_desc_t, defined in part.h, which
    wasn't included in mmc.h. It worked only in circumstances when common.h,
    or another header using part.h was incuded in implementation files.

    Change-Id: I5b203928b689887e3e78beb00a378955e0553eb7
    Signed-off-by: Mateusz Zalega
    Acked-by: Pantelis Antoniou
    Cc: Minkyu Kang

    Mateusz Zalega
     

02 May, 2014

2 commits


29 Apr, 2014

1 commit


26 Apr, 2014

3 commits


25 Apr, 2014

2 commits


24 Apr, 2014

1 commit

  • add support for the ids8313 board.

    CPU: e300c3, MPC8313, Rev: 2.1 at 396 MHz, CSB: 132 MHz
    I2C: ready
    SPI: ready
    DRAM: 128 MiB (DDR2, 32-bit, ECC off, 264 MHz)
    Flash: 8 MiB
    NAND: 128 MiB
    Net: TSEC0, TSEC1 [PRIME]

    public key on NOR flash start

    Signed-off-by: Heiko Schocher
    Signed-off-by: Kim Phillips

    Heiko Schocher
     

23 Apr, 2014

18 commits

  • Add support of 2 stage NAND/SD boot loader using SPL framework.
    PBL initialise the internal SRAM and copy SPL, this further
    initialise DDR using SPD and environment and copy u-boot from
    NAND/SD to DDR, finally SPL transfer control to u-boot.
    NOR uses CS1 instead of CS2 when NAND boot, fix it.

    Signed-off-by: Shaohui Xie
    Reviewed-by: York Sun

    Shaohui Xie
     
  • - update readme.
    - add CONFIG_SYS_CORTINA_FW_IN_* for loading Cortina PHY CS4315
    ucode from NOR/NAND/SPI/SD/REMOTE.
    - update cpld vbank with SW3[5:7]=000 as default vbank0 instead of
    previous SW3[5:7]=111 as default vbank.
    - fix CONFIG_SYS_I2C_EEPROM_ADDR_LEN to 2.

    Signed-off-by: Shengzhou Liu
    Reviewed-by: York Sun

    Shengzhou Liu
     
  • Add support of 2-stage NAND/SPI/SD boot loader using SPL framework.
    PBL initializes the internal CPC-SRAM and copy SPL(160K) to it,
    SPL further initializes DDR using SPD and environment and copy
    u-boot(768K) from SPI/SD/NAND to DDR, finally SPL transfers control
    to u-boot.

    Signed-off-by: Shengzhou Liu
    Reviewed-by: York Sun

    Shengzhou Liu
     
  • Add support of 2-stage NAND/SPI/SD boot loader using SPL framework.
    PBL initializes the internal CPC-SRAM and copy SPL(160K) to it,
    SPL further initializes DDR using SPD and environment and copy
    u-boot(768 KB) from SPI/SD/NAND to DDR, finally SPL transfers
    control to u-boot.

    Signed-off-by: Shengzhou Liu
    [York Sun: fix boards.cfg for T2081QDS_SDCARD and _SPIFLASH]
    Reviewed-by: York Sun

    Shengzhou Liu
     
  • Adds support for clock sourcing from sysclk(100MHz) for usb
    on T104xRDB and T1040QDS. This requires changing reference divisor
    and multiplication factor to derive usb clock from sysclk.

    Signed-off-by: Nikhil Badola
    Reviewed-by: York Sun

    Nikhil Badola
     
  • T1040 and it's variants provide "Single Oscillator Source" Reference Clock Mode.

    In this mode, single onboard oscillator(DIFF_SYSCLK) can provide the reference clock
    (100MHz) to the following PLLs:
    • Platform PLL
    • Core PLLs
    • USB PLL
    • DDR PLL, etc

    The cfg_eng_use0 of porsr1 register identifies whether the SYSCLK (single-ended) or
    DIFF_SYSCLK (differential) is selected as the clock input to the chip.

    get_sys_info has been enhanced to add the diff_sysclk so that the
    various drivers can be made aware of ths diff sysclk configuration and
    act accordingly.

    Other changes:
    -single_src to ddr_refclk_sel, as it is use for checking ddr reference clock
    -Removed the print of single_src from get_sys_info as this will be
    -printed whenever somebody calls get_sys_info which is not appropriate.
    -Add print of single_src in checkcpu as it is called only once during initialization

    Signed-off-by: Poonam Aggrwal
    Signed-off-by: Priyanka Jain
    Signed-off-by: Vijay Rai
    Reviewed-by: York Sun

    vijay rai
     
  • u-boot binary size for Freescale mpc8536DS platforms is 512KB.
    This has been reached to upper limit of the platforms and causig
    linker error. So increase the u-boot binary size to 768KB.

    Signed-off-by: Haijun Zhang
    Reviewed-by: York Sun

    Haijun.Zhang
     
  • U-boot binary size has been increased from 512KB to 768KB.

    So update CONFIG_SYS_MONITOR_LEN to reflect the same.

    Signed-off-by: Prabhakar Kushwaha
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     
  • Add support of 2 stage NAND, SD, SPI boot loader using SPL framework.
    here, PBL initialise the internal SRAM and copy SPL(160KB). This further
    initialise DDR using SPD and environment and copy u-boot(768 KB) from NAND to DDR.
    Finally SPL transer control to u-boot.

    Initialise/create followings required for SPL framework
    - Add spl.c which defines board_init_f, board_init_r
    - update tlb and ddr accordingly

    Signed-off-by: Prabhakar Kushwaha
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     
  • Add support of 2 stage NAND boot loader using SPL framework.
    here, PBL initialise the internal SRAM and copy SPL(160KB). This further
    initialise DDR using SPD and environment and copy u-boot(768 KB) from NAND to DDR.
    Finally SPL transer control to u-boot.

    Initialise/create followings required for SPL framework
    - Add spl.c which defines board_init_f, board_init_r
    - update tlb and ddr accordingly

    Signed-off-by: Prabhakar Kushwaha
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     
  • Add support of loading image, binary for MMC and SPI during SPL boot.

    Signed-off-by: Prabhakar Kushwaha
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     
  • T1042RDB_PI board does not have QE connector.

    So disable CONFIG_QE and CONFIG_U_QE for T1042RDB_PI

    Signed-off-by: Prabhakar Kushwaha
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     
  • Add u-qe support for t1040qds

    Signed-off-by: Zhao Qiang
    Reviewed-by: York Sun

    Zhao Qiang
     
  • Add deep sleep support on T104xRDB platforms.

    Signed-off-by: Tang Yuantian
    Reviewed-by: York Sun

    Tang Yuantian
     
  • Add deep sleep support on T1040QDS platform.

    Signed-off-by: Tang Yuantian
    Reviewed-by: York Sun

    Tang Yuantian
     
  • When T104x soc wakes up from deep sleep, control is passed to the
    primary core that starts executing uboot. After re-initialized some
    IP blocks, like DDRC, kernel will take responsibility to continue
    to restore environment it leaves before.

    Signed-off-by: Tang Yuantian
    Reviewed-by: York Sun

    Tang Yuantian
     
  • Increase TXFIFOTHRES field value in TXFILLTUNING register of usb for T4 Rev 2.0.
    This decreases data burst rate with which data packets are posted from the TX
    latency FIFO to compensate for latencies in DDR pipeline during DMA.
    This avoids Tx buffer underruns and leads to successful usb writes

    Signed-off-by: Ramneek Mehresh
    Signed-off-by: Nikhil Badola
    Reviewed-by: York Sun

    Nikhil Badola
     
  • T1040RDB and T1042RDB_PI has CPLD. Here CPLD controls board mux/features.

    This support of CPLD includes
    - files and register defintion
    - Commands to swtich alternate bank and default bank

    Signed-off-by: Prabhakar Kushwaha
    Reviewed-by: York Sun

    Prabhakar Kushwaha