07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
28 Apr, 2018
1 commit
-
We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.Signed-off-by: Tom Rini
12 Jul, 2017
1 commit
-
The 'mode' parameter is actually a flag to determine whether to display
a list of devices found during the scan. Rename it to reflect this, add a
function comment and adjust callers to use a boolean.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
09 Dec, 2016
1 commit
-
It is useful to name each method so that we can print out this name when
using the method. Currently this happens using a separate function. In
preparation for unifying this, add a name to each method.The name is only available if we have libcommon support (i.e can use
printf()).Signed-off-by: Simon Glass
07 Oct, 2016
4 commits
-
Update the fat loader to avoid using the spl_image global variable.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
Rather than having a global variable, pass the spl_image as a parameter.
This avoids BSS use, and makes it clearer what the function is actually
doing.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
Add a linker list declaration for this method and remove the explicit
switch() code.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
At present some spl_xxx_load_image() functions take a parameter and some
don't. Of those that do, most take an integer but one takes a string.Convert this parameter into a struct so that we can pass all functions the
same thing. This will allow us to use a common function signature.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
17 May, 2016
1 commit
-
This function is implemented by the legacy block functions now. Drop it.
Signed-off-by: Simon Glass
15 Mar, 2016
1 commit
-
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
and causes 80-column violations, rename it to struct blk_desc.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Stephen Warren
19 Nov, 2015
1 commit
-
Make spl_*_load_image() functions return a value instead of
hanging if a problem is encountered. This enables main spl code
to make the decision whether to hang or not, thus preparing
it to support alternative boot devices.Some boot devices (namely nand and spi) do not hang on error.
Instead, they return normally and SPL proceeds to boot the
contents of the load address. This is considered a bug and
is rectified by hanging on error for these devices as well.Signed-off-by: Nikita Kiryanov
Cc: Igor Grinberg
Cc: Tom Rini
Cc: Simon Glass
Cc: Ian Campbell
Cc: Hans De Goede
Cc: Albert Aribaud
Cc: Jagan Teki
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
24 Mar, 2015
1 commit
-
Various files are needlessly rebuilt every time due to the version and
build time changing. As version.h is not actually needed, remove the
include.Signed-off-by: Rob Herring
Cc: Albert Aribaud
Cc: Stefano Babic
Cc: Minkyu Kang
Cc: Marek Vasut
Cc: Tom Warren
Cc: Michal Simek
Cc: Macpaul Lin
Cc: Wolfgang Denk
Cc: York Sun
Cc: Stefan Roese
Cc: Nobuhiro Iwamatsu
Cc: Simon Glass
Cc: Philippe Reynes
Cc: Eric Jarrige
Cc: "David Müller"
Cc: Phil Edworthy
Cc: Robert Baldyga
Cc: Torsten Koschorrek
Cc: Anatolij Gustschin
Reviewed-by: Linus Walleij
Reviewed-by: Łukasz Majewski
06 Jan, 2015
1 commit
-
We need for scsi_scan().
Signed-off-by: Tom Rini
27 Oct, 2014
1 commit
-
Rename some defines containing FAT in their name to be filesystem generic:
MMCSD_MODE_FAT => MMCSD_MODE_FS
CONFIG_SPL_FAT_LOAD_ARGS_NAME => CONFIG_SPL_FS_LOAD_ARGS_NAME
CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME => CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION => CONFIG_SYS_MMC_SD_FS_BOOT_PARTITIONSigned-off-by: Guillaume GARDET
Cc: Tom Rini
10 Oct, 2014
1 commit
-
At least on OMAP, init_sata() no longer performs scsi_scan()
so we must do it explicitly here.Cc: Dan Murphy
Signed-off-by: Roger Quadros
19 Feb, 2014
1 commit
-
Add spl_sata to read a fat partition from a bootable SATA
drive.Signed-off-by: Dan Murphy
Reviewed-by: Roger Quadros