01 May, 2017
1 commit
-
With 3f66149d9fb4 we no longer have a common call fdt_fixup_ethernet.
This was fine to do on PowerPC as they largely had calls already in
ft_cpu_fixup. On ARM however we largely relied on this call. Rather
than introduce a large number of changes to ft_cpu_fixup /
ft_board_fixup we recognize that this is a common enough call that we
should be doing it in a central location. Do it early enough that we
can do any further updates in ft_cpu_fixup / ft_board_fixup.Cc: Gerd Hoffmann
Cc: Chen-Yu Tsai
Cc: Maxime Ripard
Cc: Thomas Chou (maintainer:NIOS)
Cc: York Sun (maintainer:POWERPC MPC85XX)
Cc: Stefan Roese (maintainer:POWERPC PPC4XX)
Cc: Simon Glass
Cc: Joakim Tjernlund
Fixes: 3f66149d9fb4 ("Remove extra fdt_fixup_ethernet() call")
Signed-off-by: Tom Rini
Acked-by: Stefan Roese
Acked-by: York Sun
Reviewed-by: Simon Glass
15 Apr, 2017
3 commits
-
With DM_SCSI enabled, blk_create_devicef() is called with blkz = 0, leading
to a divide-by-0 exception.
scsi_detect_dev() can be used to get the required parameters (block size
and number of blocks) from the drive before calling blk_create_devicef().Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass -
We might want to get information about the scsi device without initializing the partition.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass -
This is a cosmetic change. target and LUN have kind of the same role in
this function. One of them was passed as a parameter and the other was
embedded in a structure. For consistency, pass both of them as parameters.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
14 Apr, 2017
2 commits
-
This fixes a regression caused by
commit 07b2b78ce4bc8ae25e066c65245eaf58c0d9a67c
dm: usb: Convert USB storage to use driver-model for block devswhich caused part_init to be called when it was not previously.
Without this patch, the following happens when a USB sd card reader is used.=> usb start
starting USB...
USB0: Port not available.
USB1: USB EHCI 1.00
scanning bus 1 for devices... 3 USB Device(s) found
scanning usb for storage devices... Device NOT ready
Request Sense returned 02 3A 00
### ERROR ### Please RESET the board ###This happens because dev_desc->blksz is 0.
Signed-off-by: Troy Kisky
13 Apr, 2017
3 commits
-
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 -
Move U-Boot private data into a separate file. This
lets export fw_env.h to be used by external programs
that want to change the environment using the library
built in tools/env.Signed-off-by: Stefano Babic
-
aes.h is a too generic name if this file can
be exported and used by a program.
Rename it to avoid any conflicts with
other files (for example, from openSSL).Signed-off-by: Stefano Babic
09 Apr, 2017
1 commit
-
FIT support in the net boot case is much like the RAM boot case in that
we load our image to "load_addr" and pass a dummy read function into
"spl_load_simple_fit()". As the load address is no longer hard-coded to
the final execution address, legacy image loading will require load_addr
to be set correctly in the image header.Signed-off-by: Andrew F. Davis
08 Apr, 2017
8 commits
-
Under the plethora of #ifdefs, the xyzModem code hid this pearl:
static char *zm_out = (char *) 0x00380000;
This was only enabled when DEBUG is defined, so it's probably why it
went unnoticed for so long. No idea what platform had memory at that
exact location, but the this approach is extremely hacky.
Use a static buffer instead.Signed-off-by: Alexandru Gagniuc
-
Signed-off-by: Alexandru Gagniuc
-
spl_mmc.c calls mmc_initialize(). This symbol is provided in
drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.
The sunxi Kconfig case is an oddball because it redefines
SPL_MMC_SUPPORT.Signed-off-by: Alexandru Gagniuc
[trini: Update arch/arm/cpu/armv8/zynqmp/Kconfig]
Signed-off-by: Tom Rini -
The default value of BOOTSTAGE_STASH_SIZE should be set to hexadecimal,
but an integer value is set. This fixes the BOOTSTAGE_STASH_SIZE number
from hexadecimal to integer.Signed-off-by: Nobuhiro Iwamatsu
-
On ARM v7M, the processor will return to ARM mode when executing blx
instruction with bit 0 of the address == 0. Always set it to 1 to stay
in thumb mode.Similar commit:
f99993c10882f7dc8ec35993d5febe59aac01e6a
Author: Matt Porter
Date: Tue May 5 15:00:23 2015 -0400
common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()Signed-off-by: Vikas Manocha
-
ft_cpu_setup() already calls fdt_fixup_ethernet(), calling it
in image_setup_libfdt() is both redundant and breaks any modifications
done by ft_board_setup(). Restore the old behavior by removing
the call in image_setup_libfdt()Fixes: 13d06981a982 ("image: Add device tree setup to image library")
Signed-off-by: Joakim Tjernlund -
SPL has been restricted to use only dev 0 based on the assumption that only
one MMC device is registered. This is not always the case and many
platforms now register several devices as expected by the spl mmc boot code
For those platform SPL_ENV_SUPPORT is broken if dev is forced to 0.A word of warning: this commit may break SPL_ENV_SUPPORT on platforms that
do not register the same MMC controllers in SPL and in u-boot (mostly iMX6
based platforms). Fortunately none of those activate SPL_ENV_SUPPORT in
their default configuration.Signed-off-by: Jean-Jacques Hiblot
07 Apr, 2017
2 commits
-
The environment location is something that might change per board
(depending on what storage options are availaible there) or depending on
the user choice (when we have several options).Instead of hardcoding it in our configuration header, create a Kconfig
choice with the options we use for now, and the symbols that depend on it.Once done, also remove the irrelevant sunxi defines.
Signed-off-by: Maxime Ripard
Reviewed-by: Tom Rini
Reviewed-by: Jagan Teki -
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
20 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 -
This is never defined when building this file, so drop it.
Signed-off-by: Simon Glass
Reviewed-by: York Sun -
Move the ugly #ifdefs inside the reserve_video() function so we can
collect all this init into one place.Signed-off-by: Simon Glass
-
The arch-specific details of the cache being off are best handled inside
the reserve_mmu(). This cleans up the init sequence a little.Signed-off-by: Simon Glass
Reviewed-by: York Sun -
CONFIG_ALT_LB_ADDR is really a detail of how this logbuffer is allocated
rather than whether to do it at all. So move the #ifdef into the function.Signed-off-by: Simon Glass
-
All archs put U-Boot at the bottom of the relocated region. Xtensa does
not, but perhaps not for any good reason. Adjust it to see if things
still work OK.Signed-off-by: Simon Glass
-
At present we cannot use this function as an init sequence call without a
wrapper, since it returns the RAM size. Adjust it to set the RAM size in
global_data instead, and return 0 on success.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese -
It looks like only cm5200 and tqm8xx use this feature, so we don't really
need it in generic code. Drop it and have the users access gd->board_type
directly.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese -
At present we misuse print_cpuinfo() do so CPU init on x86. This is done
because it is the next available call after the console is enabled. But
several arches use checkcpu() instead. Despite the horrible name (which
we can fix), it seems a better choice.Adjust the various x86 CPU implementations to move their init code into
checkcpu() and use print_cpuinfo() only for printing CPU info.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese -
Move these two function calls into checkcpu(), which is called on this
arch immediately after these two.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese -
We don't need a special hook for sandbox as one of the later ones will do
just as well. We can print error messages about bad options after we
print the banner. In fact, it seems better.Signed-off-by: Simon Glass
Reviewed-by: Stefan Roese -
This function is called just before checkcpu() on MPX83xx. Move it to the
code for that arch.Signed-off-by: Simon Glass
-
Combine the conditions so this appears in the init list only once.
Signed-off-by: Simon Glass
Reviewed-by: York Sun
Reviewed-by: Stefan Roese -
More than half of the architectures use this function so let's make them
all use it.For those which don't actually define it, we can rely on the weak function
in lib/time.cSigned-off-by: Simon Glass
Reviewed-by: York Sun
Reviewed-by: Stefan Roese