19 Feb, 2018

1 commit

  • Only ARM and in some configs MIPS really implement arch_fixup_fdt().
    Others just use the same boilerplate which is not good by itself,
    but what's worse if we try to build with disabled CONFIG_CMD_BOOTM
    and enabled CONFIG_OF_LIBFDT we'll hit an unknown symbol which was
    apparently implemented in arch/xxx/lib/bootm.c.

    Now with weak arch_fixup_fdt() right in image-fdt.c where it is
    used we get both items highlighted above fixed.

    Signed-off-by: Alexey Brodkin
    Cc: Daniel Schwierzeck
    Cc: Simon Glass
    Cc: York Sun
    Cc: Stefan Roese
    Reviewed-by: Tom Rini
    Reviewed-by: Daniel Schwierzeck

    Alexey Brodkin
     

30 Nov, 2017

1 commit


03 Oct, 2017

1 commit

  • Convert the nds32 architecture to make use of the new asm-generic/io.h
    to provide address mapping functions. As the generic implementations are
    suitable for nds32 this is primarily a matter of removing code.

    Feedback from architecture maintainers is welcome.

    Signed-off-by: Paul Burton
    Cc: Macpaul Lin

    Paul Burton
     

28 Sep, 2017

1 commit


21 Sep, 2017

3 commits


13 Sep, 2017

1 commit


16 Aug, 2017

1 commit

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

05 Jun, 2017

2 commits


23 May, 2017

1 commit

  • Support Andestech eth ftmac100 device tree flow on AG101P/AE3XX platform.
    Verification:
    Boot linux kernel via dhcp and bootm ok.

    NDS32 # setenv bootm_size 0x2000000;setenv fdt_high 0x1f00000;
    NDS32 # dhcp 0x600000 10.0.4.97:boomimage-310y-ae300-spi.bin
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    DHCP client bound to address 10.0.4.178 (4899 ms)
    Using mac@e0100000 device
    TFTP from server 10.0.4.97; our IP address is 10.0.4.178
    Filename 'boomimage-310y-ae300-spi.bin'.
    Load address: 0x600000
    Loading: #################################################################
    #################################################################
    #################################################################
    ...
    ...
    ###################################
    233.4 KiB/s
    done
    Bytes transferred = 13872076 (d3abcc hex)
    NDS32 # dhcp 0x2000000 10.0.4.97:ae300.dtb
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    DHCP client bound to address 10.0.4.178 (4592 ms)
    Using mac@e0100000 device
    TFTP from server 10.0.4.97; our IP address is 10.0.4.178
    Filename 'ae300.dtb'.
    Load address: 0x2000000
    Loading: #
    82 KiB/s
    done
    Bytes transferred = 2378 (94a hex)
    NDS32 # bootm 0x600000 - 0x2000000
    Image Name:
    Created: 2017-03-22 6:52:03 UTC
    Image Type: NDS32 Linux Kernel Image (uncompressed)
    Data Size: 13872012 Bytes = 13.2 MiB
    Load Address: 0000c000
    Entry Point: 0000c000
    Verifying Checksum ... OK
    Booting using the fdt blob at 0x2000000
    Loading Kernel Image ... OK
    Loading Device Tree to 01efc000, end 01eff949 ... OK
    Linux version 3.10.102-20375-gb0034c1-dirty (rick@app09)
    (gcc version 4.9.3 (2016-07-06_nds32le-linux-glibc-v3_experimental) )
    #293 PREEMPT Wed Mar 22 14:49:28 CST 2017
    CPU: NDS32 N13, AndesCore ID(wb), CPU_VER 0x0d11103f(id 13, rev 17, cfg 4159)
    ...
    ...
    Signed-off-by: rick

    rick
     

22 May, 2017

3 commits


07 Apr, 2017

1 commit

  • With d53ecad92f06 some unused interrupt related code was removed.
    However all of these options are currently unused. Rather than migrate
    some of these options to Kconfig we just remove the code in question.

    The only related code changes here are that in some cases we use
    CONFIG_STACKSIZE in non-IRQ related context. In these cases we rename
    and move the value local to the code in question.

    Fixes: d53ecad92f06 ("Merge branch 'master' of git://git.denx.de/u-boot-sunxi")
    Signed-off-by: Tom Rini

    Tom Rini
     

29 Sep, 2016

1 commit


24 Sep, 2016

1 commit

  • Unlike Linux, nothing about errno.h is arch-specific in U-Boot.
    As you see, all of arch/${ARCH}/include/asm/errno.h is just a
    wrapper of . Actually, U-Boot does not
    export headers to user-space, so we just have to care about the
    consistency in the U-Boot tree.

    Now all of include directives for are gone.
    Deprecate .

    Signed-off-by: Masahiro Yamada
    Acked-by: Alexey Brodkin

    Masahiro Yamada
     

15 Jul, 2016

1 commit


06 Feb, 2016

1 commit

  • Correct spelling of "U-Boot" shall be used in all written text
    (documentation, comments in source files etc.).

    Signed-off-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Reviewed-by: Simon Glass
    Reviewed-by: Minkyu Kang

    Bin Meng
     

21 Jan, 2016

1 commit


05 Nov, 2015

1 commit


28 Aug, 2015

2 commits


13 May, 2015

1 commit

  • By making the board selections optional, every defconfig will include
    the board selection when running savedefconfig so if a new board is
    added to the top of the list of choices the former top's defconfig will
    still be correct.

    Signed-off-by: Joe Hershberger
    Cc: Masahiro Yamada
    Acked-by: Stephen Warren
    Cc: Tom Rini

    Joe Hershberger
     

19 Apr, 2015

1 commit

  • This value is not used by the network stack and is available in the
    global data, so stop passing it around. For the one legacy function
    that still expects it (init op on old Ethernet drivers) pass in the
    global pointer version directly to avoid changing that interface.

    Signed-off-by: Joe Hershberger
    Reported-by: Simon Glass
    Reviewed-by: Simon Glass
    Signed-off-by: Simon Glass
    (Trival fix to remove an unneeded variable declaration in 4xx_enet.c)

    Joe Hershberger
     

24 Mar, 2015

1 commit

  • Various files are needlessly rebuilt every time due to the version and
    build time changing. As version.h is not actually needed, remove the
    include.

    Signed-off-by: Rob Herring
    Cc: Albert Aribaud
    Cc: Stefano Babic
    Cc: Minkyu Kang
    Cc: Marek Vasut
    Cc: Tom Warren
    Cc: Michal Simek
    Cc: Macpaul Lin
    Cc: Wolfgang Denk
    Cc: York Sun
    Cc: Stefan Roese
    Cc: Nobuhiro Iwamatsu
    Cc: Simon Glass
    Cc: Philippe Reynes
    Cc: Eric Jarrige
    Cc: "David Müller"
    Cc: Phil Edworthy
    Cc: Robert Baldyga
    Cc: Torsten Koschorrek
    Cc: Anatolij Gustschin
    Reviewed-by: Linus Walleij
    Reviewed-by: Łukasz Majewski

    Rob Herring
     

09 Feb, 2015

1 commit


08 Dec, 2014

1 commit

  • Introduce a Makefile under arch/$ARCH/ and include it in the
    top Makefile (similar to Linux kernel). This allows further
    refactoringi like moving architecture-specific code out of global
    makefiles, deprecating config variables (CPU, CPUDIR, SOC) or
    deprecating arch/$ARCH/config.mk.

    In contrary to Linux kernel, U-Boot defines the ARCH variable by
    Kconfig, thus the arch Makefile can only included conditionally
    after the top config.mk.

    Signed-off-by: Daniel Schwierzeck
    Acked-by: Masahiro Yamada

    Daniel Schwierzeck
     

23 Nov, 2014

2 commits


14 Sep, 2014

1 commit

  • Now the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}
    are specified in arch/Kconfig.

    We can delete the ones in arch and board Kconfig files.

    This commit can be easily reproduced by the following command:

    find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '
    /config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ {
    N
    s/\n[[:space:]]*string//
    }
    '

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

31 Jul, 2014

1 commit


30 Jul, 2014

1 commit

  • This commit adds:
    - arch/${ARCH}/Kconfig
    provide a menu to select target boards
    - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
    set CONFIG macros to the appropriate values for each board
    - configs/${TARGET_BOARD}_defconfig
    default setting of each board

    (This commit was automatically generated by a conversion script
    based on boards.cfg)

    In Linux Kernel, defconfig files are located under
    arch/${ARCH}/configs/ directory.
    It works in Linux Kernel since ARCH is always given from the
    command line for cross compile.

    But in U-Boot, ARCH is not given from the command line.
    Which means we cannot know ARCH until the board configuration is done.
    That is why all the "*_defconfig" files should be gathered into a
    single directory ./configs/.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass

    Masahiro Yamada
     

13 May, 2014

1 commit

  • 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
     

29 Mar, 2014

1 commit

  • U-Boot has supported two kinds of asm-offsets.h.

    One is generic for all architectures and its source is located at
    ./lib/asm-offsets.c.

    The other is SoC specific and its source is under SoC directory.
    The problem here is that only boards with SoC directory can use
    the asm-offsets infrastructure.
    Putting asm-offsets.c right under CPU directory does not work.

    Now a new demand is coming. PowerPC folks want to use asm-offsets.
    But no PowerPC boards have SoC directory.

    It seems inconsistent that some boards add asm-offsets.c to SoC
    directoreis and some to CPU directories.
    It looks more reasonable to put asm-offsets.c under arch/$(ARCH)/lib.

    This commit merges asm-offsets.c under SoC directories into
    arch/$(ARCH)/lib/asm-offsets.c.

    By the way, I doubt the necessity of some entries in asm-offsets.c.
    I am leaving refactoring to the board maintainers.
    Please check "TODO" in the comment blocks in
    arch/{arm,nds32}/lib/asm-offsets.c.

    Signed-off-by: Masahiro Yamada
    Cc: Yuantian Tang

    Masahiro Yamada
     

07 Mar, 2014

1 commit


05 Mar, 2014

1 commit


20 Feb, 2014

2 commits

  • We are going to switch over to Kbuild in upcoming commits.

    Each makefile must have non-empty obj- or obj-y
    to generate built-in.o on Kbuild.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This commit changes the working directory
    where the build process occurs.

    Before this commit, build process occurred under the source
    tree for both in-tree and out-of-tree build.

    That's why we needed to add $(obj) prefix to all generated
    files in makefiles like follows:
    $(obj)u-boot.bin: $(obj)u-boot

    Here, $(obj) is empty for in-tree build, whereas it points
    to the output directory for out-of-tree build.

    And our old build system changes the current working directory
    with "make -C " syntax when descending into the
    sub-directories.

    On the other hand, Kbuild uses a different idea
    to handle out-of-tree build and directory descending.

    The build process of Kbuild always occurs under the output tree.
    When "O=dir/to/store/output/files" is given, the build system
    changes the current working directory to that directory and
    restarts the make.

    Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada