25 Nov, 2013

1 commit


09 Nov, 2013

1 commit

  • Linux Kernel abolished include/linux/config.h long time ago.
    (around version v2.6.18..v2.6.19)

    We don't need to provide Linux copatibility any more.

    This commit deletes include/linux/config.h
    and fixes source files not to include this.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

08 Nov, 2013

1 commit

  • arch/sparc/cpu/leon3/start.S requires CONFIG_SYS_SPARC_NWINDOES
    to be defined:

    #ifndef CONFIG_SYS_SPARC_NWINDOWS
    #error Must define number of SPARC register windows, default is 8
    #endif

    But it missed to include , which always ended up in compile error.

    This commit fixes this problem.

    Signed-off-by: Masahiro Yamada
    Cc: Daniel Hellstrom

    Masahiro Yamada
     

01 Nov, 2013

2 commits


21 Oct, 2013

1 commit


24 Jul, 2013

1 commit


17 Jul, 2013

1 commit


02 Jul, 2013

1 commit

  • Commit 35fc84fa1ff51e15ecd3e464dac87eb105ffed30 broke bootm on avr32. It
    requires to call do_bootm_linux() with flag set to BOOTM_STATE_OS_PREP before
    calling it again with flag set to BOOTM_STATE_OS_GO.
    Fix this by allowing flag set to BOOTM_STATE_OS_PREP, this however will
    require a complete refactoring later on.

    Signed-off-by: Andreas Bießmann
    [trini: Apply to m68k, microblaze, nds32, nios2, openrisc, sh and sparc]
    Signed-off-by: Tom Rini

    Andreas Bießmann
     

15 May, 2013

1 commit

  • Sparc only really sets up the ramdisk, but we should still use
    image_setup_linux() so that setup is common across all architectures
    that use the FDT.

    Cover-letter
    Introduce a common image_setup_linux() function
    This series continues the work to tidy up the image code. Each
    architecture has its own code for setting up ready for booting linux.
    An attempt is made here to unify these in a single image_setup_linux()
    function.

    The part of the image code that deals with FDT is split into image-fdt.c
    and a few tweaks are added to make FIT images more viable in SPL.
    END
    Signed-off-by: Simon Glass

    Simon Glass
     

02 May, 2013

1 commit

  • Delete all occurrences of hang() and provide a generic function.

    Signed-off-by: Andreas Bießmann
    Acked-by: Albert ARIBAUD
    [trini: Modify check around puts() in hang.c slightly]
    Signed-off-by: Tom Rini

    Andreas Bießmann
     

16 Mar, 2013

3 commits

  • These macros are already defined in io.h so should not be declared in
    serial.c.

    serial.c:38:0: warning: "READ_BYTE" redefined
    /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:36:0: note: this is the location of the previous definition
    serial.c:39:0: warning: "READ_HWORD" redefined
    /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:37:0: note: this is the location of the previous definition
    serial.c:40:0: warning: "READ_WORD" redefined
    /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:38:0: note: this is the location of the previous definition
    serial.c:41:0: warning: "READ_DWORD" redefined
    /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:39:0: note: this is the location of the previous definition

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

    Simon Glass
     
  • It isn't clear why the sparc cpu Makefile has its own compile line, but
    it does not work correctly with an out-of-tree build. Removing it fixes
    this problem. Perhaps it does not introduce others.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • We create a separate header file for link symbols defined by the link
    scripts. It is helpful to have these all in one place and try to
    make them common across architectures. Since Linux already has a similar
    file, we bring this in even though many of the symbols there are not
    relevant to us.

    Each architecture has its own asm/sections.h where symbols specifc to
    that architecture can be added. For now everything except AVR32 just
    includes the generic header.

    One change is needed in arch/avr32/lib/board.c to make this conversion
    work.

    Reviewed-by: Tom Rini (version 5)
    Signed-off-by: Simon Glass

    Simon Glass
     

20 Feb, 2013

1 commit

  • On architectures where manual relocation
    is needed, the 'malloc_bin_reloc' function
    must be called after 'mem_malloc_init'.

    Make the 'malloc_bin_reloc' function static
    and call it directly from 'mem_malloc_init'
    instead of calling that from board_init_{r,f}
    functions of the affected architectures.

    Signed-off-by: Gabor Juhos
    Cc: Wolfgang Denk
    Cc: Andreas Bießmann
    Cc: Jason Jin
    Cc: Macpaul Lin
    Cc: Daniel Hellstrom
    Cc: Daniel Schwierzeck

    Gabor Juhos
     

04 Feb, 2013

2 commits


02 Feb, 2013

1 commit

  • We plan to move architecture-specific data into a separate structure so
    that we can make the rest of it common.

    As a first step, create struct arch_global_data to hold these fields.
    Initially it is empty.

    This patch applies to all archs at once. I can split it if this is really
    a pain.

    Signed-off-by: Simon Glass

    Simon Glass
     

14 Dec, 2012

1 commit


12 Dec, 2012

1 commit

  • strncasecmp() is present as strnicmp() but disabled. Make it available
    and define strcasecmp() also. There is a only a small performance penalty
    to having strcasecmp() call strncasecmp(), so do this instead of a
    standalone function, to save code space.

    Update the prototype in arch-specific headers as needed to avoid warnings.

    Signed-off-by: Simon Glass

    Simon Glass
     

22 Oct, 2012

1 commit

  • This patch converts the old method of creating a list of command
    onto the new LG-arrays code. The old u_boot_cmd section is converted
    to new u_boot_list_cmd subsection and LG-array macros used as needed.

    Minor adjustments had to be made to the common code to work with the
    LG-array macros, mostly the fixup_cmdtable() calls are now passed the
    ll_entry_start and ll_entry_count instead of linker-generated symbols.

    The command.c had to be adjusted as well so it would use the newly
    introduced LG-array API instead of directly using linker-generated
    symbols.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     

20 Oct, 2012

1 commit


17 Oct, 2012

1 commit


16 Oct, 2012

4 commits

  • Carry an index in the lowlevel usb functions to make specify the
    respective usb controller.

    Also pass through an controller struct from lowlevel_init to the
    creation of the root usb device of this controller.

    Signed-off-by: Lucas Stach
    Reviewed-by: Marek Vasut

    Lucas Stach
     
  • Remove the support for not-CONFIG_SERIAL_MULTI part from serial
    port drivers and some board files. Since CONFIG_SERIAL_MULTI is
    now enabled by default, that part is a dead code. Remove it.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Anatolij Gustschin
    Cc: Stefan Roese
    Signed-off-by: Tom Rini

    Marek Vasut
     
  • Implement support for CONFIG_SERIAL_MULTI into leon3 serial driver.
    This driver was so far only usable directly, but this patch also adds
    support for the multi method. This allows using more than one serial
    driver alongside the leon3 driver. Also, add a weak implementation
    of default_serial_console() returning this driver.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Peter Tyser

    Marek Vasut
     
  • Implement support for CONFIG_SERIAL_MULTI into leon2 serial driver.
    This driver was so far only usable directly, but this patch also adds
    support for the multi method. This allows using more than one serial
    driver alongside the leon2 driver. Also, add a weak implementation
    of default_serial_console() returning this driver.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Peter Tyser

    Marek Vasut
     

27 Sep, 2012

1 commit


19 Sep, 2012

1 commit


10 Aug, 2012

1 commit


16 May, 2012

2 commits


19 Mar, 2012

4 commits

  • Common code has a mdelay() func, so use that instead of the usb-specific
    wait_ms() func. This also fixes the build errors:

    ohci-hcd.c: In function 'submit_common_msg':
    /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
    ohci-hcd.c:1519:9: sorry, unimplemented: called from here
    /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
    ohci-hcd.c:1816:10: sorry, unimplemented: called from here
    /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
    ohci-hcd.c:1827:10: sorry, unimplemented: called from here
    /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
    ohci-hcd.c:1844:10: sorry, unimplemented: called from here
    /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
    ohci-hcd.c:1563:11: sorry, unimplemented: called from here
    /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
    ohci-hcd.c:1583:9: sorry, unimplemented: called from here
    make[1]: *** [ohci-hcd.o] Error 1

    Signed-off-by: Mike Frysinger
    Acked-by: Marek Vasut

    Mike Frysinger
     
  • These calls should not be made directly any more, since bootstage
    will call the show_boot_...() functions as needed.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Signed-off-by: Simon Glass

    Simon Glass
     
  • Rather than the caller negating our progress numbers to indicate an
    error has occurred, which seems hacky, add a function to indicate this.

    Signed-off-by: Simon Glass
    Acked-by: Mike Frysinger

    Simon Glass
     

06 Dec, 2011

1 commit

  • Fix the build warnings:
    board.c: In function 'board_init_f':
    board.c:179:8: warning: unused variable 'e'
    board.c:178:6: warning: unused variable 'i'
    board.c:173:13: warning: unused variable 'cmdtp'
    bootm.c: In function 'do_bootm_linux':
    bootm.c:101:28: warning: unused variable 'kernend'
    bootm.c:101:15: warning: unused variable 'initrd_addr'
    bootm.c:100:26: warning: unused variable 'checksum'
    bootm.c:100:21: warning: unused variable 'len'
    bootm.c:100:15: warning: unused variable 'data'

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

24 Oct, 2011

2 commits


06 Oct, 2011

1 commit

  • This is long over due. All but two net drivers have been converted, but
    those have now been dropped.

    The only thing left to do is actually delete all references to NET_MULTI
    and code that is compiled when that is not defined. So here we scrub the
    core code.

    Signed-off-by: Mike Frysinger

    Mike Frysinger