24 Feb, 2018
1 commit
-
Several inline functions in this file reference undefined functions in
U-Boot. For example:atomic-long.h:73:9: warning: implicit declaration of function
'atomic64_sub_and_test'
atomic-long.h:80:9: warning: implicit declaration of function
'atomic64_dec_and_test'
atomic-long.h:87:9: warning: implicit declaration of function
'atomic64_inc_and_test'Handle this the same as the 32 bit build by wrapping these functions in
a __UBOOT__ check.Signed-off-by: Bradley Bolen
(cherry picked from commit 9c3264ce40130966897fb9c1b91c120f588531d0)
15 Nov, 2016
1 commit
-
It is useful to have a basic sanity check for EFI loader support. Add a
'bootefi hello' command which loads HelloWord.efi and runs it under U-Boot.Signed-off-by: Simon Glass
[agraf: Fix documentation, add unfulfilled kconfig dep]
Signed-off-by: Alexander Graf
24 Oct, 2016
1 commit
-
Move these option to Kconfig and tidy up existing uses.
Signed-off-by: Simon Glass
Reviewed-by: Jagan Teki
11 Oct, 2016
1 commit
-
This is used in some link scripts, so add a declaration for it.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
24 Sep, 2016
1 commit
-
There are no files that include any more.
Move error macro defines to include/linux/errno.h and remove
include/asm-generic/errno.h.Going forward, please include when you need error
macros.Signed-off-by: Masahiro Yamada
07 Sep, 2016
1 commit
-
Line up comments for readibility.
Signed-off-by: Robert P. J. Day
16 Jul, 2016
1 commit
-
Secure_ram variable was put in generic global data. But only ARMv8
uses this variable. Move it to ARM specific data structure.Signed-off-by: York Sun
06 Jun, 2016
2 commits
-
Setup flag when default environment are used to be able to
rewrite default distro boot variables based on SoC boot mode.Signed-off-by: Michal Simek
Reviewed-by: Alexander Graf
04 Jun, 2016
1 commit
-
Certain GPIO devices have the capability to switch their GPIOs into
open-drain mode, that is, instead of actively driving the output
(Push-pull output), the pin is connected to the collector (for a NPN
transistor) or the drain (for a MOSFET) of a transistor, respectively.
The pin then either forms an open circuit or a connection to ground,
depending on the state of the transistor.This patch adds functions to the GPIO uclass to switch GPIOs to
open-drain mode on devices that support it.Signed-off-by: Mario Six
Reviewed-by: Simon Glass
Reviewed-by: York Sun
17 May, 2016
1 commit
-
Many drivers use a common form of offset + flags for device
tree nodes. e.g.:
This patch adds a common implementation of this type of parsing
and calls it when a gpio driver doesn't supply its' own xlate
routine.This will allow removal of the driver-specific versions in a
handful of drivers and simplify the addition of new drivers.Signed-off-by: Eric Nelson
Reviewed-by: Stephen Warren
Acked-by: Simon Glass
17 Mar, 2016
2 commits
-
Some functions do not change the struct gpio_desc parameter. Update these to
use const so this is clear.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
We can use GPIOs as binary digits for reading 'strapping' values. Each GPIO
is assigned a single bit and can be set high or low on the circuit board. We
already have a legacy function for reading these values. Add one that
supports driver model.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
08 Feb, 2016
1 commit
-
Signed-off-by: David Müller
06 Feb, 2016
1 commit
-
Correct spelling of "U-Boot" shall be used in all written text
(documentation, comments in source files etc.).Signed-off-by: Bin Meng
Reviewed-by: Heiko Schocher
Reviewed-by: Simon Glass
Reviewed-by: Minkyu Kang
21 Jan, 2016
1 commit
-
Before relocation we need to reserve memory for the video driver frame
buffers so that they can use this memory when they start up (after
relocation). Add a call to the uclass to permit this.The current top and bottom of the region is stored in global_data so that
it can be checked post-relocation to ensure enough memory is available. No
video device should be probed before relocation.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
15 Dec, 2015
1 commit
-
Secure memory is at the end of memory, separated and reserved
from OS, tracked by gd->secure_ram. Secure memory can host
MMU tables, security monitor, etc. This is different from PRAM
used to reserve private memory. PRAM offers memory at the top
of u-boot memory, not necessarily the real end of memory for
systems with very large DDR. Using the end of memory simplifies
MMU setup and avoid memory fragmentation."bdinfo" command shows gd->secure_ram value if this memory is
marked as secured.Signed-off-by: York Sun
20 Nov, 2015
1 commit
-
It is useful to be able to record console output and provide console input
via a buffer. This provides sandbox with the ability to run a command and
check its output. If the console is set to silent then no visible output
is generated.This also provides a means to fix the problem where tests produce unwanted
output, such as errors or warnings. This can be confusing. We can instead
set the console to silent and record this output. It can be checked later
in the test if required.It is possible that this may prove useful for non-test situations. For
example the console output may be suppressed for normal operations, but
recorded and stored for access by the OS. That feature is not implemented
at present.Signed-off-by: Simon Glass
05 Nov, 2015
1 commit
-
Use the generic bitops header files from the kernel.
Imported from kernel 4.2.3.
Signed-off-by: Fabio Estevam
04 Nov, 2015
1 commit
-
At present in SPL we place the device tree immediately after BSS. This
avoids needing to copy it out of the way before BSS can be used. However on
some boards BSS is not placed with the image - e.g. it can be in RAM if
available.Add an option to tell U-Boot that the device tree should be placed at the
end of the image binary (_image_binary_end) instead of at the end of BSS.Note: A common reason to place BSS in RAM is to support the FAT filesystem.
We should update the code so that it does not use so much BSS.Signed-off-by: Simon Glass
Signed-off-by: Michal Simek
23 Oct, 2015
1 commit
-
Implement a Timer uclass to work with lib/time.c.
Signed-off-by: Thomas Chou
Acked-by: Simon Glass
21 Oct, 2015
1 commit
-
GENMASK is used to create a contiguous bitmask([hi:lo]).
This patch is a copy from Linux, with below commit details
"bitops: Fix shift overflow in GENMASK macros"
(sha1: 00b4d9a14125f1e51874def2b9de6092e007412d)Cc: Tom Rini
Cc: Masahiro Yamada
Signed-off-by: Jagan Teki
18 Aug, 2015
1 commit
-
This causes widespread breakage due to the operation of the low-level code
in crt0.S and cro0_64.S for ARM at least.The fix is not complicated but it seems safer to revert this for now.
This reverts commit 2afddae07523f23f77acd066ad1719f53d289f98.
Signed-off-by: Simon Glass
14 Aug, 2015
2 commits
-
Some archs like to have larger alignment for their global data. Use 16 bytes
which suits all current archs.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
bd->bi_dram[] has both start address and size defined as 32-bit,
which is not the case on some platforms where >=4GiB memory bank
is used. Change them to support such memory banks.Signed-off-by: Bin Meng
05 Aug, 2015
2 commits
-
When running U-Boot as an EFI application we cannot relocate since we do not
have relocation information. U-Boot has already been relocated to a suitable
address.Add a global_data flag to control skipping relocation.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add a convention that the generic global_data only occupy the bottom 16 bits
of the flags word, so that there is less chance of a conflict. At present the
x86 flags conflict.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
22 Jul, 2015
3 commits
-
Add an spl_init() function that does basic init such that board_init_f() can
use simple malloc(), device tree and driver model. Each one is set up only
if enabled for SPL.Note: We really should refactor SPL such that there is a single
board_init_f() and rename the existing weak board_init_f() functions
provided by boards, calling them from the single board_init_f().Signed-off-by: Simon Glass
-
This function can be used for testing to manually request a GPIO for use,
without resorting to the legacy GPIO API.Signed-off-by: Simon Glass
-
Provide a driver-model function to look up a GPIO name. Make the standard
function use it.Signed-off-by: Simon Glass
15 Jul, 2015
1 commit
-
Commit afbbd413a fixed this for non-driver-model. Make sure that the driver
model code handles this also.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
04 Jun, 2015
1 commit
-
Signed-off-by: Masahiro Yamada
15 May, 2015
1 commit
-
This should say 'in', not 'out'.
Signed-off-by: Simon Glass
14 May, 2015
1 commit
-
gpio_get_values_as_int() should return an error if something goes wrong.
Also provide gpio_claim_vector(), a function to request the GPIOs and set
them to input mode. Otherwise callers have to do this themselves.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren
06 Mar, 2015
2 commits
-
This patch adds generic board support for MCF547X/8X and MCF5445X.
It is based on the patch about common generic board support for
M68K architecture sent by Angelo.Signed-off-by: Alison Wang
-
Add generic-board support for the m68k architecture.
Signed-off-by: Angelo Dureghello
18 Feb, 2015
1 commit
-
Signed-off-by: Andreas Bießmann
05 Feb, 2015
1 commit
30 Jan, 2015
2 commits
-
this is an atempt to make the export of functions typesafe.
I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.
The EXPORT_FUNC macro now has 3 fixed parameters and one
variadic parameter
The first is the name of the exported function,
the rest of the parameters are used to format a functionpointer
in the jumptable,the EXPORT_FUNC macros are expanded three times,
1. to declare the members of the struct
2. to initialize the structmember pointers
3. to call the functions in stubs.cSigned-off-by: Martin Dorwig
Acked-by: Simon GlassSigned-off-by: Simon Glass
(resending to the list since my tweaks are not quite trivial) -
Add a deprecation notice to each function so that it is more obvious that we
are moving GPIOs to driver model.Signed-off-by: Simon Glass