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 ...
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: Support AE3XX platform.Support Andestech AE3xx platform: serial, 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>
NDS32: Generic Board Support and Unsupport Add nds32 ag101p generic board support.Signed-off-by: Kun-Hua Huang <kunhua@andestech.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)
bd_info: remove bi_barudrate member from struct bd_infogd->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
bd_info: remove bi_barudrate member from struct bd_infogd->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 structurebut it was a long time ago.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Tom Rini <trini@ti.com>Cc: Simon Glass <sjg@chromium.org>Cc: Wolfgang Denk <wd@denx.de>Cc: Heiko Schocher <hs@denx.de>Acked-by: Michal Simek <monstr@monstr.eu> (For microblaze)
kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/libU-Boot has supported two kinds of asm-offsets.h.One is generic for all architectures and its source is located at./lib/asm-offset
kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/libU-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 usethe 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 SoCdirectoreis 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 intoarch/$(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 inarch/{arm,nds32}/lib/asm-offsets.c.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Yuantian Tang <Yuantian.Tang@freescale.com>
nds32: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Macpaul Lin <macpaul@gmail.com>
Merge branch 'master' of git://git.denx.de/u-boot-nds32
nds32: Convert Makefiles to use COBJS-y styleSigned-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com>Cc: Macpaul Lin <macpaul@gmail.com>
Merge branch 'master' of git://git.denx.de/u-boot-i2cThe sandburst-specific i2c drivers have been deleted, conflict was justover the SPDX conversion.Conflicts: board/sandburst/common/ppc440gx_i
Merge branch 'master' of git://git.denx.de/u-boot-i2cThe sandburst-specific i2c drivers have been deleted, conflict was justover the SPDX conversion.Conflicts: board/sandburst/common/ppc440gx_i2c.c board/sandburst/common/ppc440gx_i2c.hSigned-off-by: Tom Rini <trini@ti.com>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
i2c: common changes for multibus/multiadapter supportSigned-off-by: Heiko Schocher <hs@denx.de>Signed-off-by: Simon Glass <sjg@chromium.org>Cc: Henrik Nordström <henrik@henriknordstrom.net>
Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTMMAKEALL is fine for ppc4xx and mpc85xx.Run checks were done on our controlcenterd hardware.Signed-off-by: Dirk Eibach <dirk.eibach@gdsys
Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTMMAKEALL is fine for ppc4xx and mpc85xx.Run checks were done on our controlcenterd hardware.Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>Signed-off-by: Andy Fleming <afleming@freescale.com>
avr32/m68k/microblaze/nds32/nios2/openrisc/sh/sparc: fix do_bootm_linuxCommit 35fc84fa1ff51e15ecd3e464dac87eb105ffed30 broke bootm on avr32. Itrequires to call do_bootm_linux() with flag set to BO
avr32/m68k/microblaze/nds32/nios2/openrisc/sh/sparc: fix do_bootm_linuxCommit 35fc84fa1ff51e15ecd3e464dac87eb105ffed30 broke bootm on avr32. Itrequires to call do_bootm_linux() with flag set to BOOTM_STATE_OS_PREP beforecalling it again with flag set to BOOTM_STATE_OS_GO.Fix this by allowing flag set to BOOTM_STATE_OS_PREP, this however willrequire a complete refactoring later on.Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>[trini: Apply to m68k, microblaze, nds32, nios2, openrisc, sh and sparc]Signed-off-by: Tom Rini <trini@ti.com>
nds32: Use sections header to obtain link symbolsInclude this header to get access to link symbols, which are otherwiseremoved.Signed-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com>Cc: Macpaul Lin <m
nds32: Use sections header to obtain link symbolsInclude this header to get access to link symbols, which are otherwiseremoved.Signed-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com>Cc: Macpaul Lin <macpaul@gmail.com>
lib: consolidate hang()Delete all occurrences of hang() and provide a generic function.Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>Acked-by: Albert ARIBAUD <albert.u.boot@ariba
lib: consolidate hang()Delete all occurrences of hang() and provide a generic function.Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>[trini: Modify check around puts() in hang.c slightly]Signed-off-by: Tom Rini <trini@ti.com>
Consolidate bool type'bool' is defined in random places. This patch consolidates them into asingle header file include/linux/types.h, using stdbool.h introduced in C99.All other #define, typedef
Consolidate bool type'bool' is defined in random places. This patch consolidates them into asingle header file include/linux/types.h, using stdbool.h introduced in C99.All other #define, typedef and enum are removed. They are all consistent withtrue = 1, false = 0.Replace FALSE, False with false. Replace TRUE, True with true.Skip *.py, *.php, lib/* files.Signed-off-by: York Sun <yorksun@freescale.com>
Replace __bss_end__ with __bss_endNote this is a tree-wide change affecting multiple architectures.At present we use __bss_start, but mostly __bss_end__. This seemsinconsistent and in a number o
Replace __bss_end__ with __bss_endNote this is a tree-wide change affecting multiple architectures.At present we use __bss_start, but mostly __bss_end__. This seemsinconsistent and in a number of places __bss_end is used instead.Change to use __bss_end for the BSS end symbol throughout U-Boot. Thismakes it possible to use the asm-generic/sections.h file on allarchs.Signed-off-by: Simon Glass <sjg@chromium.org>
malloc: make malloc_bin_reloc staticOn architectures where manual relocationis needed, the 'malloc_bin_reloc' functionmust be called after 'mem_malloc_init'.Make the 'malloc_bin_reloc' function
malloc: make malloc_bin_reloc staticOn architectures where manual relocationis needed, the 'malloc_bin_reloc' functionmust be called after 'mem_malloc_init'.Make the 'malloc_bin_reloc' function staticand 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 <juhosg@openwrt.org>Cc: Wolfgang Denk <wd@denx.de>Cc: Andreas Bießmann <andreas.devel@gmail.com>Cc: Jason Jin <Jason.jin@freescale.com>Cc: Macpaul Lin <macpaul@andestech.com>Cc: Daniel Hellstrom <daniel@gaisler.com>Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
nds32: Drop tlb_addr from global dataThis field doesn't appear to be used for anything important, so drop it.Signed-off-by: Simon Glass <sjg@chromium.org>
common: Convert the U-Boot commands to LG-arraysThis patch converts the old method of creating a list of commandonto the new LG-arrays code. The old u_boot_cmd section is convertedto new u_boot_l
common: Convert the U-Boot commands to LG-arraysThis patch converts the old method of creating a list of commandonto the new LG-arrays code. The old u_boot_cmd section is convertedto 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 theLG-array macros, mostly the fixup_cmdtable() calls are now passed thell_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 newlyintroduced LG-array API instead of directly using linker-generatedsymbols.Signed-off-by: Marek Vasut <marex@denx.de>Cc: Joe Hershberger <joe.hershberger@gmail.com>Cc: Mike Frysinger <vapier@gentoo.org>
nds32: Change macro from BOARD_LATE_INIT to CONFIG_BOARD_LATE_INITWith almost all the architecture and board BOARD_LATE_INIT does not use.CONFIG_BOARD_LATE_INIT is used instead.This changed CONFI
nds32: Change macro from BOARD_LATE_INIT to CONFIG_BOARD_LATE_INITWith almost all the architecture and board BOARD_LATE_INIT does not use.CONFIG_BOARD_LATE_INIT is used instead.This changed CONFIG_BOARD_LATE_INIT from BOARD_LATE_INIT.Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>CC: Macpaul Lin <macpaul@andestech.com>[trini: Fixup for context changes]Signed-off-by: Tom Rini <trini@ti.com>
12