08 Oct, 2018
1 commit
-
Serial init in board_init_f will cost much time, skip it here
because the serial will be initialized again in board_init_r
and it's more faster (after cache is enabled). We will miss
some logs before the serial is ready but it's ok for Android Auto.
This commit will save about 190ms on imx8qm.Test: boot ok for both imx8qm and imx8qxp.
Change-Id: If6efdc19794aecda862f22b6fec7f7aba2005766
Signed-off-by: Ji Luo
Reviewed-by: Ye Li
28 Jan, 2018
1 commit
-
Fix some style violations in the board_f file.
Reviewed-by: Simon Glass
Signed-off-by: Mario Six
25 Jan, 2018
1 commit
24 Jan, 2018
2 commits
-
Change all coldfire arch files to use CONFIG_DISPLAY_CPUINFO.
Signed-off-by: Angelo Dureghello
Reviewed-by: Tom Rini
---
Changes for v2:
- update common/Kconfig to add M68K to the default y list -
Adds a VID specific API in init_sequence_f and spl code flow
namely init_func_vid which is required to adjust core voltage.VID specific code is required in spl, hence moving flag CONFIG_VID
out of spl flags.Signed-off-by: Ashish Kumar
Signed-off-by: Rajesh Bhagat
Reviewed-by: York Sun
12 Jan, 2018
1 commit
-
Support common commands bdinfo and image format,
also modify common generic flow for RISC-V.Signed-off-by: Rick Chen
Signed-off-by: Rick Chen
Signed-off-by: Greentime Hu
Reviewed-by: Tom Rini
08 Dec, 2017
2 commits
-
Set up logging both before and after relocation.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
This does not appear to be used by any boards. Before introducing a new
log system, remove this old one.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
16 Sep, 2017
1 commit
-
Once U-Boot relocates itself the existing driver-model timer (if any) is
no-longer valid until the device is reinitialised. Any use of the device
may cause a crash. To handle this, set the timer to NULL after relocation.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
20 Aug, 2017
1 commit
-
CONFIG_SYS_GENERIC_GLOBAL_DATA is no longer used by any board or
platform, so support for it can be dropped.Signed-off-by: Thomas Petazzoni
Reviewed-by: Vladimir Zapolskiy
Reviewed-by: Simon Glass
16 Aug, 2017
1 commit
-
We are now using an env_ prefix for environment functions. Rename these
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass
02 Aug, 2017
1 commit
-
Make reserve_mmu a weak so that it provides an option
to customize this routine as per platform needSigned-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek
Reviewed-by: Simon Glass
27 Jul, 2017
1 commit
-
Some platforms have very limited SRAM to run SPL code, so there may
not be the same amount space for a malloc pool before relocation in
the 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 memory
space independently.Signed-off-by: Andy Yan
Reviewed-by: Tom Rini
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
[fixed up commit-message:]
Signed-off-by: Philipp Tomsich
26 Jul, 2017
1 commit
-
U-Boot has up until now built with -fpic for the MIPS architecture,
producing position independent code which uses indirection through a
global offset table, making relocation fairly straightforward as it
simply involves patching up GOT entries.Using -fpic does however have some downsides. The biggest of these is
that generated code is bloated in various ways. For example, function
calls are indirected through the GOT & the t9 register:8f998064 lw t9,-32668(gp)
0320f809 jalr t9Without -fpic the call is simply:
0f803f01 jal be00fc04
This is more compact & faster (due to the lack of the load & the
dependency the jump has on its result). It is also easier to read &
debug because the disassembly shows what function is being called,
rather than just an offset from gp which would then have to be looked up
in the ELF to discover the target function.Another disadvantage of -fpic is that each function begins with a
sequence to calculate the value of the gp register, for example:3c1c0004 lui gp,0x4
279c3384 addiu gp,gp,13188
0399e021 addu gp,gp,t9Without using -fpic this sequence no longer appears at the start of each
function, reducing code size considerably.This patch switches U-Boot from building with -fpic to building with
-fno-pic, in order to gain the benefits described above. The cost of
this is an extra step during the build process to extract relocation
data from the ELF & write it into a new .rel section in a compact
format, plus the added complexity of dealing with multiple types of
relocation rather than the single type that applied to the GOT. The
benefit is smaller, cleaner, more debuggable code. The relocate_code()
function is reimplemented in C to handle the new relocation scheme,
which also makes it easier to read & debug.Taking maltael_defconfig as an example the size of u-boot.bin built
using the Codescape MIPS 2016.05-06 toolchain (gcc 4.9.2, binutils
2.24.90) shrinks from 254KiB to 224KiB.Signed-off-by: Paul Burton
Cc: Daniel Schwierzeck
Cc: u-boot@lists.denx.de
Reviewed-by: Daniel Schwierzeck
Tested-by: Daniel Schwierzeck
11 Jul, 2017
1 commit
-
Runtime U-boot dtb selection is generally a two step process. First step
is to simply use an initial generic dtb. The second step is to select
the dtb and perhaps execute additional code ones U-boot knows what board
it is running on. Embedded_dtb_select handles the second step by allowing
board specific code to run and perform what ever necessary configuration
that is needed.Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
04 Jul, 2017
1 commit
-
There was for long time no activity in the 4xx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in 4xx,
so remove it.Signed-off-by: Heiko Schocher
16 Jun, 2017
1 commit
-
There was for long time no activity in the mpx5xxx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in mpc5xxx,
so remove it.Signed-off-by: Heiko Schocher
12 Jun, 2017
5 commits
-
relocate_code() calculates the relocation offset wrt. the symbol
__image_copy_start which happens to have the same value as
CONFIG_TEXT_BASE on most systems.
When creating an i.MX boot image with an integrated IVT it is
convenient to have CONFIG_TEXT_BASE point to the start of the IVT
that is prepended to the actual code. Thus CONFIG_TEXT_BASE will
differ from __image_copy_start, while the calculation
'gd->relocaddr - __image_copy_start' still gives the right relocation
offset.Signed-off-by: Lothar Waßmann
-
The current implementation makes it look like the 'if (from_spl)' part is
dead code because these features are not enabled for sandbox. We could
enable it for sandbox_spl, but this is not done yet (it requires sharing
memory between SPL and U-Boot proper which is in fact supported).It is probably nicer to avoid #ifdef anyway. Change it.
Signed-off-by: Simon Glass
Reported-by: Coverity (CID: 163244)
Fixes: 824bb1b (bootstage: Support SPL) -
There was for long time no activity in the 5xx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in 5xx,
so remove it.Signed-off-by: Heiko Schocher
-
There was for long time no activity in the 8260 area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in 8260,
so remove it.Signed-off-by: Heiko Schocher
-
There was for long time no activity in the 8xx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in 8xx,
so remove it (with a heavy heart, knowing that I remove
here the root of U-Boot).Signed-off-by: Heiko Schocher
06 Jun, 2017
5 commits
-
At present bootstage only supports U-Boot proper. But SPL can also consume
boot time so it is useful to have the record start there.Add bootstage support to SPL. Also support stashing the timing information
when SPL finishes so that it can be picked up and reported by U-Boot
proper. This provides a full boot time record, excluding only the time
taken by the boot ROM.Signed-off-by: Simon Glass
-
Driver model is set up ones before relocation and once after. Record the
time taken in each case.Signed-off-by: Simon Glass
-
At present we don't allow use of bootstage before driver model is running.
This means we cannot time the init of driver model itself.Now that bootstage requires its own board-specific timer, we can move its
init to earlier in the sequence, both before and after relocation.Signed-off-by: Simon Glass
-
Some boards cannot access pre-relocation data after relocation. Reserve
space for this and copy it during preparation for relocation.Signed-off-by: Simon Glass
-
At present bootstage uses the data section of the image to store its
information. There are a few problems with this:- It does not work on all boards (e.g. those which run from flash before
relocation)
- Allocated strings still point back to the pre-relocation data after
relocationNow that U-Boot has a pre-relocation malloc() we can use this instead,
with a pointer to the data in global_data. Update bootstage to do this and
set up an init routine to allocate the memory.Now that we have a real init function, we can drop the fake 'reset' record
and add a normal one instead.Note that part of the problem with allocated strings remains. They are
reallocated but this will only work where pre-relocation memory is
accessible after relocation.Signed-off-by: Simon Glass
05 Jun, 2017
1 commit
-
With a small tweak we can avoid including these files for all boards.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
16 May, 2017
1 commit
15 May, 2017
2 commits
-
Coldfire arch is not happy with timer_init since interrupt handlers
are still not set at that stage, and the boot hangs silently.Signed-off-by: Angelo Dureghello
-
Drop use of this long-deprecated option.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
13 Apr, 2017
1 commit
-
This allows us to use the same DRAM init function on all archs. Add a
dummy function for arc, which does not use DRAM init here.Signed-off-by: Simon Glass
[trini: Dummy function on nios2]
Signed-off-by: Tom Rini
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
06 Apr, 2017
7 commits
-
These includes don't seem to be needed now. Drop them. Reserve the
mp.h header for PowerPC for now.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese
Reviewed-by: York Sun -
This header file is used by three archs. It could be used by all of them
since relocation is a common function. Move it into a generic file.Signed-off-by: Simon Glass
-
This header file is used by two archs. It could be used by all of them
since it allows the cache to be on during relocation. Move it into a
generic file.Signed-off-by: Simon Glass
-
We don't need this PPC-specific function in generic code. Move it to
the powerpc directory.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese -
This is to keep the header file order consistent.
Signed-off-by: Simon Glass
Reviewed-by: York Sun -
Drop headers which are not used or needed in this file. The compiler.h
header is included by common.h.Signed-off-by: Simon Glass
Reviewed-by: York Sun -
By making dram_init_banksize() return an error code we can drop the
wrapper. Adjust this and clean up all implementations.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese