10 Jan, 2014

7 commits


09 Jan, 2014

13 commits

  • Relocation code based on a patch by Scott Wood, which is:
    Signed-off-by: Scott Wood

    Signed-off-by: David Feng

    David Feng
     
  • To add the DesignWare MMC driver support for Altera SOCFPGA. It
    required information such as clocks and bus width from platform
    specific files (SOCFPGA handoff files)

    Signed-off-by: Chin Liang See
    Cc: Rajeshwari Shinde
    Cc: Jaehoon Chung
    Cc: Pantelis Antoniou
    Cc: Wolfgang Denk
    Acked-by: Pantelis Antoniou

    Chin Liang See
     
  • SH2 and SH2A use a common header. Both checks are not necessary.
    This removes CONFIG_SH2A definition from asm/processor.h.

    Signed-off-by: Nobuhiro Iwamatsu

    Nobuhiro Iwamatsu
     
  • SH4 and SH4A are compatible. But some instructions are different from these.
    In Linux kernel, It is treated as a separate CPU, but for now, I think that
    there is no need to divide especially in the U-Boot.

    This removes CONFIG_SH4A definition from source code, SH4A is treated as SH4.
    And this fix white space.

    Signed-off-by: Nobuhiro Iwamatsu

    Nobuhiro Iwamatsu
     
  • This function is defined but has no prototype declaration. Add it.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • It is often useful to be able to save out the state from a sandbox test
    run, for analysis or to restore it later to continue a test. Add generic
    infrastructure for doing this using a device tree binary file. This is
    a flexible tagged file format which is already supported by U-Boot, and
    it supports hierarchy if needed.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass
    Reviewed-by: Hung-ying Tyan

    Simon Glass
     
  • It is useful to be able to save and restore the RAM contents of sandbox
    U-Boot either for setting up tests, for later analysys, or for chaining
    together multiple tests which need to keep the same memory contents.

    Add a function to provide a memory file for U-Boot. This is read on
    start-up and written when shutting down. If the file does not exist
    on start-up, it will be created when shutting down.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Normally when U-Boot starts with a command (-c option) it quits when the
    command completes. Normally this is what is requires, since the test is
    likely complete.

    Provide an option to jump into the console instead, so that debugging or
    other tasks may be performed before quitting.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • With sandbox, errors and problems may be reported before console_init_f()
    is executed. For example, an argument may not parse correctly or U-Boot may
    panic(). At present this output is swallowed so there is no indication what
    is going wrong.

    Adjust the console to deal with a very early sandbox setup, by detecting that
    there is no global_data yet, and calling os functions in that case.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • When sandbox does a 'bootm' to run a kernel we cannot actually execute it.
    So just exit sandbox, which is essentially what U-Boot does on other archs.
    Also, allow sandbox to use bootm on any kernel, so that it can be used
    to test booting of kernels from any architecture.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • The execution flow becomes easier if we can return from board_init_f()
    as ARM does. We can control things from start.c instead of having to
    call back into that file from other places.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • The is displayed for options with no argument, and omitted for those
    with an argument. Swap this around.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Implement realloc() and free() for sandbox, by adding a header to each
    block which contains the block size.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass
    Reviewed-by: Che-Liang Chiou
    Reviewed-by: Hung-ying Tyan

    Simon Glass
     

08 Jan, 2014

4 commits


06 Jan, 2014

2 commits


03 Jan, 2014

11 commits

  • Enable fuse supply before fuse programming and disable after.

    Signed-off-by: Sergey Alyoshin
    Reviewed-by: Benoît Thébaudeau

    Sergey Alyoshin
     
  • The enable_fec_anatop_clock method should be available for all MX6
    variant as it is not MX6 SoloLite specific. This moves the code out of
    the #ifdef/#endif and we make it conditional to CONFIG_FEC_MXC
    instead.

    Signed-off-by: Otavio Salvador
    Acked-by: Stefano Babic

    Otavio Salvador
     
  • The macro allows easy setting in per-pin, as for example:

    ,----
    | imx_iomux_v3_setup_pad(MX6_PAD_NANDF_D1__GPIO_2_1 | MUX_MODE_SION);
    `----

    The IOMUX_CONFIG_SION allows for reading PAD value from PSR register.

    The following quote from the datasheet:

    ,----
    | ...
    | 28.4.2.2 GPIO Write Mode
    | The programming sequence for driving output signals should be as follows:
    | 1. Configure IOMUX to select GPIO mode (Via IOMUXC), also enable SION if need
    | to read loopback pad value through PSR
    | 2. Configure GPIO direction register to output (GPIO_GDIR[GDIR] set to 1b).
    | 3. Write value to data register (GPIO_DR).
    | ...
    `----

    This fixes the gpio_get_value to properly work when a GPIO is set for
    output and has no conflicts.

    Thanks for Benoît Thébaudeau , Fabio
    Estevam and Eric Bénard
    for helping to properly trace this down.

    Signed-off-by: Otavio Salvador
    Acked-by: Stefano Babic

    Otavio Salvador
     
  • CONFIG_SYS_FSL_NUM_USB_CTRLS is no longer used,
    update it to new CONFIG_USB_MAX_CONTROLLER_COUNT.

    Signed-off-by: Shengzhou Liu

    Shengzhou Liu
     
  • Single-source clocking is new feature introduced in T1040.
    In this mode, a single differential clock is supplied to the
    DIFF_SYSCLK_P/N inputs to the processor, which in turn is
    used to supply clocks to the sysclock, ddrclock and usbclock.

    So, both ddrclock and syclock are driven by same differential
    sysclock in single-source clocking mode whereas in normal clocking
    mode, generally separate DDRCLK and SYSCLK pins provides
    reference clock for sysclock and ddrclock

    DDR_REFCLK_SEL rcw bit is used to determine DDR clock source
    -If DDR_REFCLK_SEL rcw bit is 0, then DDR PLLs are driven in
    normal clocking mode by DDR_Reference clock

    -If DDR_REFCLK_SEL rcw bit is 1, then DDR PLLs are driven in
    single source clocking mode by DIFF_SYSCLK

    Add code to determine ddrclock based on DDR_REFCLK_SEL rcw bit.

    Signed-off-by: Poonam Aggrwal
    Signed-off-by: Priyanka Jain

    Priyanka Jain
     
  • As U-boot does not use GPU/VPU peripherals, shutdown the VDDPU regulator
    in order to save power.

    Signed-off-by: Anson Huang
    Signed-off-by: Jason Liu
    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • When changing LDO voltages we need to wait for the required amount of time
    for the voltage to settle.

    Also, as the timer is still not available when arch_cpu_init() is called, we
    need to call it later at board_postclk_init() phase.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • Introduce set_ldo_voltage() so that all three LDO regulators can be configured.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • mx6 datasheet specifies that the minimum VDDSOC at 792 MHz is 1.15 V.
    Add a 25 mV margin and set it to 1.175V.

    This also matches the VDDSOC voltages for 792MHz operation that the kernel configures:
    http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-mx6/cpu_op-mx6.c?h=imx_3.0.35_4.1.0

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • Since ROM may modify the LDO ramp up time according to fuse setting,
    it is safer to reset the ramp up field to its default value of 00:

    00: 64 cycles of 24MHz clock;
    01: 128 cycles of 24MHz clock;
    02: 256 cycles of 24MHz clock;
    03: 512 cycles of 24MHz clock;

    Signed-off-by: Anson Huang
    Signed-off-by: Jason Liu
    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • set_vddsoc() is not used anywhere else, so make it static.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

30 Dec, 2013

3 commits