UPSTREAM: fdt: Implement weak arch_fixup_fdt()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
UPSTREAM: fdt: Implement weak arch_fixup_fdt()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_BOOTMand enabled CONFIG_OF_LIBFDT we'll hit an unknown symbol which wasapparently implemented in arch/xxx/lib/bootm.c.Now with weak arch_fixup_fdt() right in image-fdt.c where it isused we get both items highlighted above fixed.Change-Id: Iaac96fbb0bcc484906952ced132b10b2cead782eSigned-off-by: Alexey Brodkin <abrodkin@synopsys.com>Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>Cc: Simon Glass <sjg@chromium.org>Cc: York Sun <york.sun@nxp.com>Cc: Stefan Roese <sr@denx.de>Reviewed-by: Tom Rini <trini@konsulko.com>Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
UPSTREAM: dma: import linux/dma-direction.h to consolidate enum dma_data_directionImport include/linux/dma-direction.h from Linux 4.13-rc7 and deleteduplicated definitions of enum dma_data_directi
UPSTREAM: dma: import linux/dma-direction.h to consolidate enum dma_data_directionImport include/linux/dma-direction.h from Linux 4.13-rc7 and deleteduplicated definitions of enum dma_data_direction.Change-Id: I9c6569e4ab91ac82fb1c99a38003a1ac48061813Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>(cherry picked from commit b27af39935855c88ef2203dcfc1ff54e013237c4)
env: Rename getenv/_f() to env_get()We are now using an env_ prefix for environment functions. Rename thesetwo functions for consistency. Also add function comments in common.h.Quite a few place
env: Rename getenv/_f() to env_get()We are now using an env_ prefix for environment functions. Rename thesetwo functions for consistency. Also add function comments in common.h.Quite a few places use getenv() in a condition context, provoking awarning from checkpatch. These are fixed up in this patch also.Suggested-by: Wolfgang Denk <wd@denx.de>Signed-off-by: Simon Glass <sjg@chromium.org>
nds32: Remove include files from common.hWith a few tweaks we can avoid including these files, which are onlyneeded by two C files.Signed-off-by: Simon Glass <sjg@chromium.org>
nds32: Make u-boot-nds32.h a private headerRather than including this arch-specific header file in common.h, includeit from within nds32's u-boot.h header.Signed-off-by: Simon Glass <sjg@chromiu
nds32: Make u-boot-nds32.h a private headerRather than including this arch-specific header file in common.h, includeit from within nds32's u-boot.h header.Signed-off-by: Simon Glass <sjg@chromium.org>
nds32: eth: Support ftmac100 DM.Support Andestech eth ftmac100 device tree flow on AG101P/AE3XX platform.Verification: Boot linux kernel via dhcp and bootm ok. NDS32 # setenv bootm_size 0x20000
nds32: eth: Support ftmac100 DM.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@andestech.com>
nds32: Support AE3XX platform.Support Andestech AE3xx platform: serial, timer device tree flow.Signed-off-by: rick <rick@andestech.com>
nds32: Support AG101P timer DM.Support AG101P timer device tree flow.Signed-off-by: rick <rick@andestech.com>
nds32: Support AG101P serial DM.Support AG101P serial device tree flow.Signed-off-by: rick <rick@andestech.com>
Remove various unused interrupt related codeWith d53ecad92f06 some unused interrupt related code was removed.However all of these options are currently unused. Rather than migratesome of these o
Remove various unused interrupt related codeWith d53ecad92f06 some unused interrupt related code was removed.However all of these options are currently unused. Rather than migratesome of these options to Kconfig we just remove the code in question.The only related code changes here are that in some cases we useCONFIG_STACKSIZE in non-IRQ related context. In these cases we renameand 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 <trini@konsulko.com>
nds32: Support relocation.Enable pie option for relocation.Signed-off-by: rick <rick@andestech.com>Cc: Andes <uboot@andestech.com>
Remove arch/${ARCH}/include/asm/errno.hUnlike Linux, nothing about errno.h is arch-specific in U-Boot.As you see, all of arch/${ARCH}/include/asm/errno.h is just awrapper of <asm-generic/errno.h>
Remove arch/${ARCH}/include/asm/errno.hUnlike Linux, nothing about errno.h is arch-specific in U-Boot.As you see, all of arch/${ARCH}/include/asm/errno.h is just awrapper of <asm-generic/errno.h>. Actually, U-Boot does notexport headers to user-space, so we just have to care about theconsistency in the U-Boot tree.Now all of include directives for <asm/errno.h> are gone.Deprecate <asm/errno.h>.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
arm, nds32, sh: remove useless ioremap()/iounmap() definesThese defines are valid only when iomem_valid_addr is defined,but I do not see such defines anywhere. Remove.Signed-off-by: Masahiro Ya
arm, nds32, sh: remove useless ioremap()/iounmap() definesThese defines are valid only when iomem_valid_addr is defined,but I do not see such defines anywhere. Remove.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Use correct spelling of "U-Boot"Correct spelling of "U-Boot" shall be used in all written text(documentation, comments in source files etc.).Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Reviewed
Use correct spelling of "U-Boot"Correct spelling of "U-Boot" shall be used in all written text(documentation, comments in source files etc.).Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Reviewed-by: Heiko Schocher <hs@denx.de>Reviewed-by: Simon Glass <sjg@chromium.org>Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
nds32: Fix compile error.Fix compile error with gcc 4.9.3Signed-off-by: rick <rick@andestech.com>Cc: Andes <uboot@andestech.com>
nds32: Use the generic bitops headersThe generic bitops headers are required when calling logarithmicfunctions, such as ilog2().Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>Reviewe
nds32: Use the generic bitops headersThe generic bitops headers are required when calling logarithmicfunctions, such as ilog2().Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>Reviewed-by: Jagan Teki <jteki@openedev.com>
NDS32: Generic Board Support and Unsupport Remove ag101 and ag102 supportSigned-off-by: Kun-Hua Huang <kunhua@andestech.com>
NDS32: Generic Board Support and Unsupport Add nds32 ag101p generic board support.Signed-off-by: Kun-Hua Huang <kunhua@andestech.com>
arch: Make board selection choices optionalBy making the board selections optional, every defconfig will includethe board selection when running savedefconfig so if a new board isadded to the top
arch: Make board selection choices optionalBy making the board selections optional, every defconfig will includethe board selection when running savedefconfig so if a new board isadded to the top of the list of choices the former top's defconfig willstill be correct.Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>Cc: Masahiro Yamada <yamada.masahiro@socionext.com>Acked-by: Stephen Warren <swarren@wwwdotorg.org>Cc: Tom Rini <trini@konsulko.com>
net: Remove the bd* parameter from net stack functionsThis value is not used by the network stack and is available in theglobal data, so stop passing it around. For the one legacy functionthat s
net: Remove the bd* parameter from net stack functionsThis value is not used by the network stack and is available in theglobal data, so stop passing it around. For the one legacy functionthat still expects it (init op on old Ethernet drivers) pass in theglobal pointer version directly to avoid changing that interface.Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>Reported-by: Simon Glass <sjg@chromium.org>Reviewed-by: Simon Glass <sjg@chromium.org>Signed-off-by: Simon Glass <sjg@chromium.org>(Trival fix to remove an unneeded variable declaration in 4xx_enet.c)
remove unnecessary version.h includesVarious files are needlessly rebuilt every time due to the version andbuild time changing. As version.h is not actually needed, remove theinclude.Signed-off
remove unnecessary version.h includesVarious files are needlessly rebuilt every time due to the version andbuild time changing. As version.h is not actually needed, remove theinclude.Signed-off-by: Rob Herring <robh@kernel.org>Cc: Albert Aribaud <albert.u.boot@aribaud.net>Cc: Stefano Babic <sbabic@denx.de>Cc: Minkyu Kang <mk7.kang@samsung.com>Cc: Marek Vasut <marex@denx.de>Cc: Tom Warren <twarren@nvidia.com>Cc: Michal Simek <monstr@monstr.eu>Cc: Macpaul Lin <macpaul@andestech.com>Cc: Wolfgang Denk <wd@denx.de>Cc: York Sun <yorksun@freescale.com>Cc: Stefan Roese <sr@denx.de>Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>Cc: Simon Glass <sjg@chromium.org>Cc: Philippe Reynes <tremyfr@yahoo.fr>Cc: Eric Jarrige <eric.jarrige@armadeus.org>Cc: "David Müller" <d.mueller@elsoft.ch>Cc: Phil Edworthy <phil.edworthy@renesas.com>Cc: Robert Baldyga <r.baldyga@samsung.com>Cc: Torsten Koschorrek <koschorrek@synertronixx.de>Cc: Anatolij Gustschin <agust@denx.de>Reviewed-by: Linus Walleij <linus.walleij@linaro.org>Reviewed-by: Łukasz Majewski <l.majewski@samsung.com>
common: Move dram_init() declaration to common locationSigned-off-by: Michal Simek <michal.simek@xilinx.com>Reviewed-by: Simon Glass <sjg@chromium.org>
Kbuild: introduce Makefile in arch/$ARCH/Introduce a Makefile under arch/$ARCH/ and include it in thetop Makefile (similar to Linux kernel). This allows furtherrefactoringi like moving architectu
Kbuild: introduce Makefile in arch/$ARCH/Introduce a Makefile under arch/$ARCH/ and include it in thetop Makefile (similar to Linux kernel). This allows furtherrefactoringi like moving architecture-specific code out of globalmakefiles, deprecating config variables (CPU, CPUDIR, SOC) ordeprecating arch/$ARCH/config.mk.In contrary to Linux kernel, U-Boot defines the ARCH variable byKconfig, thus the arch Makefile can only included conditionallyafter the top config.mk.Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>Acked-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
kbuild: use SoC-specific CONFIG to descend into SoC directoryUse "obj-$(CONFIG_FOO) += foo/" where it is possible.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
kbuild: Descend into SOC directory from CPU directorySome CPUs of some architectures have SOC directories.At present, the build system directly descends into SOC directoriesfrom the top Makefile,
kbuild: Descend into SOC directory from CPU directorySome CPUs of some architectures have SOC directories.At present, the build system directly descends into SOC directoriesfrom the top Makefile, but it should generally descend into eachdirectory from its parent directory.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
1234