edminiv2: switch to SPLED Mini V2 is based on Orion 5x which boots at fixedaddress 0xFFFF0000 in NOR Flash. Place SPL there, andswitch U-Boot from .bin to .img format, stored inNOR Flash at 0xFF
edminiv2: switch to SPLED Mini V2 is based on Orion 5x which boots at fixedaddress 0xFFFF0000 in NOR Flash. Place SPL there, andswitch U-Boot from .bin to .img format, stored inNOR Flash at 0xFFF90000.Note: this patch was tested on HW and works, i.e.it boots U-Boot properly, but SPL console outputcurrently does not appear, due to GD being trashedby arch/arm/lib/spl.c. This trashing is soon to beremoved, and then ED Mini V2 SPL console output willbecome visible.Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
show more ...
ARM: orion5x: move SoC sources to mach-orion5xMovearch/arm/cpu/arm926ejs/orion5x/* -> arch/arm/mach-orion5x/*Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert
ARM: orion5x: move SoC sources to mach-orion5xMovearch/arm/cpu/arm926ejs/orion5x/* -> arch/arm/mach-orion5x/*Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
kconfig: arm: introduce symbol for ARM CPUsThis commit introduces a Kconfig symbol for each ARM CPU:CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,CPU_ARM1176, CPU_V7, CPU_PXA
kconfig: arm: introduce symbol for ARM CPUsThis commit introduces a Kconfig symbol for each ARM CPU:CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,CPU_ARM1176, CPU_V7, CPU_PXA, CPU_SA1100.Also, it adds the CPU feature Kconfig symbol HAS_VBAR which is selectedfor CPU_ARM1176 and CPU_V7.For each target, the corresponding CPU is selected and the definition ofSYS_CPU in the corresponding Kconfig file is removed.Also, it removes redundant "string" type in some Kconfig files.Signed-off-by: Georges Savoundararadj <savoundg@gmail.com>Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in
kconfig: remove redundant "string" type in arch and board KconfigsNow 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 <yamada.m@jp.panasonic.com>
orion5x: kconfig: move board select menu and common settingsBecuase the board select menu in arch/arm/Kconfig is too big,move the Orion5x board select menu to orion5x/Kconfig.Move also common se
orion5x: kconfig: move board select menu and common settingsBecuase the board select menu in arch/arm/Kconfig is too big,move the Orion5x board select menu to orion5x/Kconfig.Move also common settings (CONFIG_SYS_CPU="arm926ejs" andCONFIG_SYS_SOC="orion5x").Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Remove unnecessary use of hush header fileSome files include hush.h but don't actually use it. Remove this wherepossible.Signed-off-by: Simon Glass <sjg@chromium.org>
arm926ejs: convert makefiles to Kbuild styleNote1:In arch/arm/cpu/arm926ejs/spear/MakefileSTART := start.owas changedextra-$(CONFIG_SPL_BUILD) := start.obecause spear/start.o is only used for
arm926ejs: convert makefiles to Kbuild styleNote1:In arch/arm/cpu/arm926ejs/spear/MakefileSTART := start.owas changedextra-$(CONFIG_SPL_BUILD) := start.obecause spear/start.o is only used for SPL.Note2:START := start.owas missing from arch/arm/cpu/arm926ejs/mxs/Makefile.This commit simply addsextra-$(CONFIG_SPL_BUILD) := start.oSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.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>
arm: Move lastinc to arch_global_dataMove this field into arch_global_data and tidy up.Signed-off-by: Simon Glass <sjg@chromium.org>
arm: Move tbl to arch_global_dataMove this field into arch_global_data and tidy up.Signed-off-by: Simon Glass <sjg@chromium.org>
ARM: prevent misaligned array initsUnder option -munaligned-access, gcc can perform local charor 16-bit array initializations using misaligned nativeaccesses which will throw a data abort excepti
ARM: prevent misaligned array initsUnder option -munaligned-access, gcc can perform local charor 16-bit array initializations using misaligned nativeaccesses which will throw a data abort exception. Fix fileswhere these array initializations were unneeded, and forfiles known to contain such initializations, enforce gccoption -mno-unaligned-access.Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>[trini: Switch to usign call cc-option for -mno-unaligned-access asAlbert had done previously as that's really correct]Signed-off-by: Tom Rini <trini@ti.com>
edminiv2: orion5x: fix GPIO inits and valuesOrion5x did not actually write GPIO output valuesor input polarities, and ED Mini V2 had bad ormissing values for GPIO settings.Signed-off-by: Albert
edminiv2: orion5x: fix GPIO inits and valuesOrion5x did not actually write GPIO output valuesor input polarities, and ED Mini V2 had bad ormissing values for GPIO settings.Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>Acked-By: Prafulla Wadaskar <prafulla@marvell.com>
bugfix: all Marvell specific build fails due to undefined reference to `get_ticks'after http://patchwork.ozlabs.org/patch/136415/ was applied. All Marvellbuild fails with below errorcommon/libco
bugfix: all Marvell specific build fails due to undefined reference to `get_ticks'after http://patchwork.ozlabs.org/patch/136415/ was applied. All Marvellbuild fails with below errorcommon/libcommon.o: In function `cread_line':/home/uboot/src/u-boot-arm/common/main.c:717: undefined reference to `get_ticks'/home/uboot/src/u-boot-arm/common/main.c:717: undefined reference to `get_tbclk'/home/uboot/src/u-boot-arm/common/main.c:720: undefined reference to `get_ticks'The same is fixed for Kirkwood, ARMADA100, pantheon and orion5x SoCsSigned-off-by: Prafulla Wadaskar <prafulla@marvell.com>
ARM: orion5x: reduce dependence of including platform fileFor files like the drivers/serial/serial.c, it must include theplatform file, as the CONFIG_SYS_NS16550_COM1 must reference tothe definit
ARM: orion5x: reduce dependence of including platform fileFor files like the drivers/serial/serial.c, it must include theplatform file, as the CONFIG_SYS_NS16550_COM1 must reference tothe definition in the platform definition files.Include the platform definition file in the config file, so that itwould decouple the dependence for the driver files.Signed-off-by: Lei Wen <leiwen@marvell.com>
Timer: Remove reset_timer_masked()In some circumstances, reset_timer_masked() was called be timer_init() inorder to perform architecture specific timer initialisation. In suchcases, the required
Timer: Remove reset_timer_masked()In some circumstances, reset_timer_masked() was called be timer_init() inorder to perform architecture specific timer initialisation. In suchcases, the required code in reset_timer_masked() has been moved intotimer_init()
Timer: Remove reset_timer() for non-Nios2 arches
Timer: Remove set_timer completely
Remove volatile qualifier in get_ram_size() callsCheckpatch.pl complains about the volatile qualifier in calls toget_ram_size(). Remove this qualifier in the prototype and in thecalls where it is
Remove volatile qualifier in get_ram_size() callsCheckpatch.pl complains about the volatile qualifier in calls toget_ram_size(). Remove this qualifier in the prototype and in thecalls where it is useless, and leave it only in the function bodywhere it is needed.Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Replace obsolete e-mail addressSigned-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Orion5x: Correct DRAM bank detection
arm926ejs: timer: Replace bss variable by gdrReuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bssvalues in the arm926ejs timers implementation.The usage of bss values in dri
arm926ejs: timer: Replace bss variable by gdrReuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bssvalues in the arm926ejs timers implementation.The usage of bss values in drivers before initialisation of bss is forbidden.In that special case some data in .rel.dyn gets corrupted.This patch is similiar to the patch Dirk Behme postedfor the armv7/omap-common/timer.c and added suggestionsfrom Reinhard Meyer.Tested on the arm926ejs mx27 based magnesium boardTested on the arm926ejs kirkwood based suen3 boardSigned-off-by: Heiko Schocher <hs@denx.de>cc: Albert ARIBAUD <albert.aribaud@free.fr>cc: Prafulla Wadaskar <prafulla@marvell.com>cc: Stefano Babic <sbabic@denx.de>cc: Reinhard Meyer <u-boot@emk-elektronik.de>
Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. A
Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. As stated in the System V ABI, "the link editor does notextract archive members to resolve undefined weak symbols".This commit changes all Makefiles to use partial linking (ld -r) insteadof creating library archives, which forces all symbols to participate inlinking, allowing non-weak symbols to override weak symbols as intended.This approach is also used by Linux, from which the gmake functioncmd_link_o_target (defined in config.mk and used in all Makefiles) isinspired.The name of each former library archive is preserved except forextensions which change from ".a" to ".o". This commit updatesreferences accordingly where needed, in particular in some linkerscripts.This commit reveals board configurations that exclude some features butinclude source files that depend these disabled features in the build,resulting in undefined symbols. Known such cases include:- disabling CMD_NET but not CMD_NFS;- enabling CONFIG_OF_LIBFDT but not CONFIG_QE.Signed-off-by: Sebastien Carlier <sebastien.carlier@gmail.com>
Drop support for CONFIG_SYS_ARM_WITHOUT_RELOCWhen this define was introduced, the idea was to provide a softmigration path for ARM boards to get adapted to the new relocationsupport. However, ot
Drop support for CONFIG_SYS_ARM_WITHOUT_RELOCWhen this define was introduced, the idea was to provide a softmigration path for ARM boards to get adapted to the new relocationsupport. However, other recent changes led to a differentimplementation (ELF relocation), where this no longer works. By nowCONFIG_SYS_ARM_WITHOUT_RELOC does not only not help any more, but itactually hurts because it obfuscates the actual code by sprinkling itwith lots of dead and non-working debris.So let's make a clean cut and drop CONFIG_SYS_ARM_WITHOUT_RELOC.Signed-off-by: Wolfgang Denk <wd@denx.de>Tested-by: Heiko Schocher <hs@denx.de>Tested-by: Reinhard Meyer <u-boot@emk-elektronik.de>
orion5x: optimize window size computationSigned-off-by: Chris Moore <moore@free.fr>Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
orion5x: fix relocation-incompatible codeSigned-off-by: Albert Aribaud <albert.aribaud@free.fr>
12