20 Feb, 2020
1 commit
-
To avoid "asm/dma-mapping.h: No such file or directory" error,
we need something.Signed-off-by: Masahiro Yamada
11 Feb, 2020
1 commit
-
sandbox conversion to SDL2
TPM TEE driver
Various minor sandbox video enhancements
New driver model core utility functions
07 Feb, 2020
2 commits
-
At present driver model supports the IRQ uclass but there is no way to
request a particular interrupt for a driver.Add a mechanism, similar to clock and reset, to read the interrupts
required by a device from the device tree and to request those interrupts.U-Boot itself does not have interrupt-driven handlers, so just provide a
means to read and clear an interrupt. This can be useful to handle
peripherals which must use an interrupt to determine when data is
available, for example.Bring over the basic binding file as well, from Linux v5.4. Note that the
older binding is not supported in U-Boot; the newer 'special form' must be
used.Add a simple test of the new functionality.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
There can be different types of interrupt controllers in a system and some
drivers may need to distinguish between these. In general this can be
handled using the device tree by adding the interrupt information to
device nodes.However on x86 devices we have interrupt controllers which are not tied
to any particular device and not really used in U-Boot. These still need
to be inited, so a convenient method is to give each controller a type
and allow a particular controller type to be probed.Add support for this in sandbox along with a test.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
[bmeng: remove the new bland line at EOF of test/dm/irq.c]
Signed-off-by: Bin Meng
06 Feb, 2020
17 commits
-
At present dm/device.h includes the linux-compatible features. This
requires including linux/compat.h which in turn includes a lot of headers.
One of these is malloc.h which we thus end up including in every file in
U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
which needs to use the system malloc() in some files.Move the compatibility features into a separate header file.
Signed-off-by: Simon Glass
-
Add a new device-tree property to control the colour depth. At present we
support 16bpp and 32bpp.While we are here, update the code to use livetree.
Signed-off-by: Simon Glass
Reviewed-by: Anatolij Gustschin -
On high-DPI displays U-Boot's LCD window can look very small. Add a
-K flag to expand it to make things easier to read, while still using
the existing resolution internally.Signed-off-by: Simon Glass
Reviewed-by: Anatolij Gustschin -
Sandbox currently uses SDL1.2. SDL2 has been around for quite a while and
is widely supported. It has a number of useful features. It seems
appropriate to move sandbox over.Update the code to use SDL2 instead of SDL1.2.
Signed-off-by: Simon Glass
-
At present when audio stops, any in-progress output is cut off. Fix this
by waiting for output to finish.Also use booleans for the boolean variables.
Signed-off-by: Simon Glass
-
A few errors are not checked. Fix these and use my preferred spelling for
init.Signed-off-by: Simon Glass
-
Add comments for each struct member. Drop frequency since it is not used.
Signed-off-by: Simon Glass
-
At present there is no positive indication that U-Boot has finished
sending sound data. This means that it is not possible to power down an
audio codec, for example. Add a new method that is called once all sound
data has been sent.Add a new method for this, called when the sound_play() call is done.
Signed-off-by: Simon Glass
-
Some files use U-Boot headers but still need to access the system
malloc(). Allow this by creating a new asm/malloc.h which can be used so
long as U-Boot's malloc.h has not been included.Signed-off-by: Simon Glass
-
The last member of this array is supposed to be all zeroes according to
the getopt_long() man page. Fix the function to do this.Signed-off-by: Simon Glass
-
Due to recent changes this function is no-longer used. Drop it.
Signed-off-by: Simon Glass
-
Some sandbox files are not built with U-Boot headers, so with the renamed
malloc functions there is now no need to use the special os_... allocation
functions to access the system routines. Instead we can just call them
directly.Update the affected files accordingly.
Signed-off-by: Simon Glass
-
This name conflicts with our desire to #define free() to something else on
sandbox. Rename it.Signed-off-by: Simon Glass
-
At present options are presented in essentially random order. It is easier
to browse them if they are sorted into alphabetical order. Adjust the
help function to handle this.Signed-off-by: Simon Glass
-
If CONFIG_CMDLINE=n, common/cli.c calls board_run_command. This fails to
link on most architectures. However, the sandbox architecture has an
implementation which we can use.Signed-off-by: Sean Anderson
-
Add a function to read a property from the chosen node, providing access
to its length. Update ofnode_get_chosen_string() to make use of it.Signed-off-by: Simon Glass
-
This function is actually intended to read a string rather than a
property. All of its current callers use it that way. Also there is no way
to return the length of the property from this function.Rename it to better indicate its purpose, using ofnode_read as the prefix
since this matches most other functions.Also add some tests which are missing for these functions.
Signed-off-by: Simon Glass
18 Jan, 2020
1 commit
-
At present panic() is in the vsprintf.h header file. That does not seem
like an obvious choice for hang(), even though it relates to panic(). So
let's put hang() in its own header.Signed-off-by: Simon Glass
[trini: Migrate a few more files]
Signed-off-by: Tom Rini
09 Jan, 2020
1 commit
-
dm: Increased separation of ofdata_to_platdata() and probe methods
08 Jan, 2020
2 commits
-
Add a driver which does devres allocations so that we can write tests for
devres.Signed-off-by: Simon Glass
-
Add a sandbox driver for random number generation. Mostly aimed at
providing a unit test for rng uclass.Signed-off-by: Sughosh Ganu
Reviewed-by: Patrice Chotard
Reviewed-by: Simon Glass
18 Dec, 2019
1 commit
-
- Various x86 common codes updated for TPL/SPL
- I2C designware driver updated for PCI
- ICH SPI driver updated to support Apollo Lake
- Add Intel FSP2 base support
- Intel Apollo Lake platform specific drivers support
- Add a new board Google Chromebook Coral
17 Dec, 2019
2 commits
-
Add support for setting the chip address offset mask to EEPROM sumulator
and add tests to test it.Signed-off-by: Robert Beckett
Reviewed-by: Heiko Schocher -
Improve i2c EEPROM simulator testing by providing access functions to
check the previous chip addr and offset.Given that we can now directly test the offsets, also simplified the
offset mapping and allow for wrapping acceses.Signed-off-by: Robert Beckett
Reviewed-by: Heiko Schocher
15 Dec, 2019
4 commits
-
Add a simple sandbox test for this uclass.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add a sandbox driver and PCI-device emulator for p2sb. Also add a test
which uses a simple 'adder' driver to test the p2sb functionality.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
When reseting sandbox for tests, disable mmio support since that is the
default state.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add a simple PMC for sandbox to permit tests to run.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
10 Dec, 2019
1 commit
-
In the device tree UEFI unit test the compatible property of the device is
read.Provide the missing property.
Signed-off-by: Heinrich Schuchardt
03 Dec, 2019
3 commits
-
Move these functions into the command.h header file which is a better fit.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
These functions do not use driver model but are fairly widely used in
U-Boot. But it is not clear that they will use driver model anytime soon,
so we don't want to label them as 'legacy'.Move them to a new irq_func.h header file. Avoid the name 'irq.h' since it
is widely used in U-Boot already.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
These functions are CPU-related and do not use driver model. Move them to
cpu_func.hSigned-off-by: Simon Glass
Reviewed-by: Daniel Schwierzeck
Reviewed-by: Tom Rini
18 Nov, 2019
1 commit
-
Add OP-TEE test swuit
Fix patman cc_file output
Minor sandbox/pinctrl changes
14 Nov, 2019
2 commits
-
Pull request for UEFI sub-system for efi-2020-01-rc3
The following changes for the UEFI subsystem are provided:
* allow building UEFI binaries on the sandbox
* enable access to file systems without partition tables
* correctly check the return value of efi_dp_from_file() -
Compiling arch/sandbox/cpu/os.c results in an error
../arch/sandbox/cpu/os.c: In function ‘os_find_text_base’:
../arch/sandbox/cpu/os.c:823:12: error: cast to pointer from
integer of different size [-Werror=int-to-pointer-cast]
823 | base = (void *)addr;
| ^
cc1: all warnings being treated as errorsThe size of void* differs from that of unsigned long long on 32bit
systems.Signed-off-by: Heinrich Schuchardt
Reviewed-by: Simon Glass
13 Nov, 2019
1 commit
-
On the sandbox the UEFI binaries must match the host architectures.
Adjust the Makefiles. Provide the PE/COFF header and relocation files.
Allow building helloworld.efi on the sandbox.
Signed-off-by: Heinrich Schuchardt