30 Dec, 2014

1 commit


25 Nov, 2014

2 commits


23 Nov, 2014

3 commits


21 Nov, 2014

4 commits


25 Oct, 2014

1 commit


17 Sep, 2014

2 commits


11 Sep, 2014

1 commit


29 Aug, 2014

1 commit


24 Aug, 2014

1 commit


20 Aug, 2014

1 commit


07 Aug, 2014

1 commit


23 Jul, 2014

2 commits

  • Initialise devices marked 'pre-reloc' and make them available prior to
    relocation. Note that this requires pre-reloc malloc() to be available.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • If we are to have driver model before relocation we need to support some
    way of calling memory allocation routines.

    The standard malloc() is pretty complicated:

    1. It uses some BSS memory for its state, and BSS is not available before
    relocation

    2. It supports algorithms for reducing memory fragmentation and improving
    performace of free(). Before relocation we could happily just not support
    free().

    3. It includes about 4KB of code (Thumb 2) and 1KB of data. However since
    this has been loaded anyway this is not really a problem.

    The simplest way to support pre-relocation malloc() is to reserve an area
    of memory and allocate it in increasing blocks as needed. This
    implementation does this.

    To enable it, you need to define the size of the malloc() pool as described
    in the README. It will be located above the pre-relocation stack on
    supported architectures.

    Note that this implementation is only useful on machines which have some
    memory available before dram_init() is called - this includes those that
    do no DRAM init (like tegra) and those that do it in SPL (quite a few
    boards). Enabling driver model preior to relocation for the rest of the
    boards is left for a later exercise.

    Signed-off-by: Simon Glass

    Simon Glass
     

19 Jul, 2014

1 commit


13 May, 2014

3 commits

  • DRAM size should use 64-bit variable when the size could be more than 4GB.
    Caught and verified on P4080DS with 4GB DDR.

    Signed-off-by: York Sun
    Acked-by: Simon Glass

    York Sun
     
  • Some platforms (tested on mpc85xx, mpc86xx) use global data before calling
    function baord_inti_f(). The data should not be cleared later. Any arch
    which uses global data in generic board board_init_f() should define
    CONFIG_SYS_GENERIC_GLOBAL_DATA.

    Signed-off-by: York Sun
    CC: Scott Wood
    CC: Simon Glass
    CC: Albert ARIBAUD
    Acked-by: Simon Glass

    York Sun
     
  • gd->bd->bi_baudrate is a copy of gd->baudrate.

    Since baudrate is a common feature for all architectures,
    keep gd->baudrate only.

    It is true that bi_baudrate was passed to the kernel in that structure
    but it was a long time ago.

    Signed-off-by: Masahiro Yamada
    Cc: Tom Rini
    Cc: Simon Glass
    Cc: Wolfgang Denk
    Cc: Heiko Schocher
    Acked-by: Michal Simek (For microblaze)

    Masahiro Yamada
     

20 Apr, 2014

2 commits


18 Mar, 2014

1 commit

  • At present we use U-Boot's filesystem layer to read the sandbox device tree,
    but this is problematic since it relies on a temporary feauture added
    there. Since we plan to implement proper block layer support for sandbox,
    change this code to use the os layer functions instead. Also use the new
    fdt_create_empty_tree() instead of our own code.

    Signed-off-by: Simon Glass

    Simon Glass
     

07 Mar, 2014

1 commit

  • Before this commit, CONFIG_MPC8260 and CONFIG_8260
    were used mixed-up.

    All boards with mpc8260 cpu defined both of them:
    - CONFIG_MPC8260 was defined in board config headers
    and include/common.h
    - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk

    We do not need to have both of them.
    This commit keeps only CONFIG_MPC8260.

    This commit does:
    - Delete CONFIG_8260 and CONFIG_MPC8260 definition
    in config headers and include/common.h
    - Rename CONFIG_8260 to CONFIG_MPC8260
    in arch/powerpc/cpu/mpc8260/config.mk.
    - Rename #ifdef CONFIG_8260 to #ifdef CONFIG_MPC8260

    Signed-off-by: Masahiro Yamada
    Cc: Wolfgang Denk

    Masahiro Yamada
     

27 Feb, 2014

2 commits


22 Feb, 2014

1 commit

  • This function has been around for powerpc. It is used for systems with
    memory more than CONFIG_MAX_MEM_MAPPED. In case of non-contiguous memory,
    this feature can limit U-boot to one block without going over the limit.

    Signed-off-by: York Sun
    Acked-by: Albert ARIBAUD

    York Sun
     

20 Feb, 2014

2 commits

  • - When CONFIG_DISPLAY_CPUINFO is not enabled,
    print_cpuinfo() should be defined as an empty function
    in a header, include/common.h

    - Remove #ifdef CONFIG_DISPLAY_CPUINFO .. #endif
    from caller, common/board_f.c and arch/arm/lib/board.c

    - Remove redundant prototypes in arch/arm/lib/board.c,
    arch/arm/include/asm/arch-am33x/sys_proto.h and
    board/nokia/rx51/rx51.h, keeping the one in include/common.h

    - Add #ifdef CONFIG_DISPLAY_CPUINFO to the func definition
    where it is missing

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Useful rules in scripts/Makefile.lib allows us to easily
    generate a device tree blob and wrap it in assembly code.

    We do not need to parse a linker script to get output format and arch.

    This commit deletes ./u-boot.dtb since it is a copy of dts/dt.dtb.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

10 Jan, 2014

1 commit


09 Jan, 2014

3 commits

  • Signed-off-by: David Feng

    David Feng
     
  • 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
     
  • 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
     

13 Dec, 2013

1 commit

  • If U-Boot build with DEBUG enabled/defined the first call of "debug"
    function (that dumps data to any available console) will happen before
    zeroing of initial "gd" in init call "zero_global_data" in
    "init_sequence_f".

    And if stack was not filled with zeros chances are high that
    "gd->have_console" won't be 0. In its turn it will cause attempt to
    output things to non-initialized yet serial console.

    So for safety and predictability we set "gd->have_console = 0".

    Signed-off-by: Alexey Brodkin

    Cc: Mischa Jonker
    Cc: Wolfgang Denk
    Cc: Simon Glass
    Acked-by: Simon Glass

    Alexey Brodkin
     

17 Oct, 2013

1 commit

  • On generic board, the i2c init initialize only
    one bus. But the new i2c subsystem allow to
    manage severals i2c bus. So in the case, instead
    of initializing a bus, we just set the current
    i2c bus. The initialization will be done in
    the i2c command.

    Signed-off-by: Philippe Reynes

    trem
     

24 Jul, 2013

1 commit