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>
spl: add hierarchical defaults for SPL_LDSCRIPTWith SPL_LDSCRIPT moved to Kconfig (and this being a 'string' confignode), all the lingering definitions in header files will causewarnings/errors d
spl: add hierarchical defaults for SPL_LDSCRIPTWith SPL_LDSCRIPT moved to Kconfig (and this being a 'string' confignode), all the lingering definitions in header files will causewarnings/errors due to the redefinition of the configuration item.As we don't want to pollute the defconfig files (and values shouldusually be identical for entire architectures), the defaults are movedinto Kconfig. Kconfig will always pick the first default thatmatches, so please keep these values at the end of each file (to allowany board-specific Kconfig, which will be included earlier) tooverride with an unconditional default setting.Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>Reviewed-by: Simon Glass <sjg@chromium.org>
microblaze: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-BootSome platforms have very limited SRAM to run SPL code, so there maynot be the same amount space for a malloc pool b
microblaze: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-BootSome platforms have very limited SRAM to run SPL code, so there maynot be the same amount space for a malloc pool before relocation inthe SPL stage as the normal U-Boot stage.Make SPL and (the full) U-Boot stage use independent SYS_MALLOC_F_LEN,so the size of pre-relocation malloc pool can be configured memoryspace independently.Signed-off-by: Andy Yan <andy.yan@rock-chips.com>Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>[fixed up commit-message:]Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Convert CONFIG_ENV_IS_IN_FLASH to KconfigThis converts the following to Kconfig: CONFIG_ENV_IS_IN_FLASHSigned-off-by: Simon Glass <sjg@chromium.org>
microblaze: Build only DTBs for selected targetAdding more targets to repository requires some additionalchanges not simply just adding config file, defconfig and dts.This patch makes this proces
microblaze: Build only DTBs for selected targetAdding more targets to repository requires some additionalchanges not simply just adding config file, defconfig and dts.This patch makes this process easier by building onlyparticular DTB which is selected via defconfigthat Makefile doesn't need to contain all dts files in the repository.Reported-by: Nathan Rossi <nathan@nathanrossi.com>Signed-off-by: Michal Simek <michal.simek@xilinx.com>
spl: make image arg or fdt blob address reconfigurableAt present fdt blob or argument address being passed to kernel is fixed atcompile time using macro CONFIG_SYS_SPL_ARGS_ADDR. FDT blob fromdif
spl: make image arg or fdt blob address reconfigurableAt present fdt blob or argument address being passed to kernel is fixed atcompile time using macro CONFIG_SYS_SPL_ARGS_ADDR. FDT blob fromdifferent media like nand, nor flash are copied to the address pointedby the macro.The problem is, it makes args/fdt blob compulsory to copy which is not requiredin cases like for NOR Flash. This patch removes this limitation.Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
microblaze: Fix endif macro commandUse correct name in endif comment.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Kconfig: Migrate BOARD_LATE_INIT to a selectThis option should not really be user selectable. Note that on PowerPCwe currently only need BOARD_LATE_INIT when CHAIN_OF_TRUST is enabled so becondi
Kconfig: Migrate BOARD_LATE_INIT to a selectThis option should not really be user selectable. Note that on PowerPCwe currently only need BOARD_LATE_INIT when CHAIN_OF_TRUST is enabled so beconditional on that.Signed-off-by: Tom Rini <trini@konsulko.com>Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com> (for UniPhier)
libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORYCommit e2f88dfd2d96 ("libfdt: Introduce new ARCH_FIXUP_FDT option")allows us to skip memory setup of DTB, but a problem for ARM is thatspi
libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORYCommit e2f88dfd2d96 ("libfdt: Introduce new ARCH_FIXUP_FDT option")allows us to skip memory setup of DTB, but a problem for ARM is thatspin_table_update_dt() and psci_update_dt() are skipped as well ifCONFIG_ARCH_FIXUP_FDT is disabled.This commit allows us to skip only fdt_fixup_memory_banks() insteadof the whole of arch_fixup_fdt(). It will be useful when we want touse a memory node from a kernel DTB as is, but need some fixups forSpin-Table/PSCI.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Acked-by: Alexey Brodkin <abrodkin@synopsys.com>Acked-by: Simon Glass <sjg@chromium.org>Fixed build error for x86:Signed-off-by: Simon Glass <sjg@chromium.org>
efi: Use asmlinkage for EFIAPIThis is required for x86 and is also correct for ARM (since it is empty).Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Bin Meng <bmeng.cn@gmail.com>Sig
efi: Use asmlinkage for EFIAPIThis is required for x86 and is also correct for ARM (since it is empty).Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Bin Meng <bmeng.cn@gmail.com>Signed-off-by: Alexander Graf <agraf@suse.de>
spl: Add a parameter to jump_to_image_linux()Instead of using the global spl_image variable, pass the required struct inas an argument.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by:
spl: Add a parameter to jump_to_image_linux()Instead of using the global spl_image variable, pass the required struct inas an argument.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.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>
Remove unneeded remnants of bcopy().Since bcopy() is no longer used, delete all remaining references toit.Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
microblaze: Move MSR instruction selection to KconfigSelect MSR instructions via Kconfig instead of xparameters.h.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Remove !OF_CONTROL code for timer and interruptOF_CONTROL is enabled by default that's why this is dead code.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Read information about timer/interrupts from DTRead information about timer and interrupts from DT. This is the firstsmall step to move timer and intc to DM.Signed-off-by: Michal Sim
microblaze: Read information about timer/interrupts from DTRead information about timer and interrupts from DT. This is the firstsmall step to move timer and intc to DM.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Kconfig: Move CONFIG_FIT and related options to KconfigThere are already two FIT options in Kconfig but the CONFIG options arestill in the header files. We need to do a proper move to fix this.M
Kconfig: Move CONFIG_FIT and related options to KconfigThere are already two FIT options in Kconfig but the CONFIG options arestill in the header files. We need to do a proper move to fix this.Move these options to Kconfig and tidy up board configuration: CONFIG_FIT CONFIG_OF_BOARD_SETUP CONFIG_OF_SYSTEM_SETUP CONFIG_FIT_SIGNATURE CONFIG_FIT_BEST_MATCH CONFIG_FIT_VERBOSE CONFIG_OF_STDOUT_VIA_ALIAS CONFIG_RSAUnfortunately the first one is a little complicated. We need to make surethis option is not enabled in SPL by this change. Also this option isenabled automatically in the host builds by defining CONFIG_FIT in theimage.h file. To solve this, add a new IMAGE_USE_FIT #define which canbe used in files that are built on the host but must also build for U-Bootand SPL.Note: Masahiro's moveconfig.py script is amazing.Signed-off-by: Simon Glass <sjg@chromium.org>[trini: Add microblaze change, various configs/ re-applies]Signed-off-by: Tom Rini <trini@konsulko.com>
microblaze: Add missing chosen nodefdtgrep requires /chosen node to be specified or at least more nodes whichstays in DTS to generate output.Error message:./tools/fdtgrep -b u-boot,dm-pre-reloc
microblaze: Add missing chosen nodefdtgrep requires /chosen node to be specified or at least more nodes whichstays in DTS to generate output.Error message:./tools/fdtgrep -b u-boot,dm-pre-reloc -RT dts/dt.dtb -n /chosen -Odtb | ./tools/fdtgrep -r -O dtb - -o spl/u-boot-spl.dtb -P pinctrl-0 -Ppinctrl-names -P clocks -P clock-names -P interrupt-parentError: FDT_ERR_BADMAGICThis patch add empty chosen node to keep fdtgrep happy and passcompilation for in tree DTS file.Signed-off-by: Michal Simek <michal.simek@xilinx.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>
microblaze: Remove empty file - cpu.cNo need to have empty unused file in architecture code.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Wire-up debug_uart in asmSigned-off-by: Michal Simek <michal.simek@xilinx.com>
serial: uartlite: Move driver to DMEnable SPL DM too.Signed-off-by: Michal Simek <michal.simek@xilinx.com>Reviewed-by: Thomas Chou <thomas@wytron.com.tw>
Fix board init code to respect the C runtime environmentboard_init_f_mem() alters the C runtime environment'sstack it is actually already using. This is not a validbehaviour within a C runtime en
Fix board init code to respect the C runtime environmentboard_init_f_mem() alters the C runtime environment'sstack it is actually already using. This is not a validbehaviour within a C runtime environment.Split board_init_f_mem into C functions which do not altertheir own stack and always behave properly with respect totheir C runtime environment.Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>Acked-by: Thomas Chou <thomas@wytron.com.tw>
microblaze: Enable DM by defaultEnable DM for the whole architecture.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
1234567