28 Jul, 2016
3 commits
-
Many SoCs allow power to be applied to or removed from portions of the SoC
(power domains). This may be used to save power. This API provides the
means to control such power management hardware.Signed-off-by: Stephen Warren
Acked-by: Simon Glass -
Quite a few places have a bind() method which just calls dm_scan_fdt_dev().
We may as well call dm_scan_fdt_dev() directly. Update the code to do this.Signed-off-by: Simon Glass
-
This new function is more convenient for callers, and handles pre-relocation
situations automatically.Signed-off-by: Simon Glass
20 Jun, 2016
2 commits
-
The following changes are made to the clock API:
* The concept of "clocks" and "peripheral clocks" are unified; each clock
provider now implements a single set of clocks. This provides a simpler
conceptual interface to clients, and better aligns with device tree
clock bindings.
* Clocks are now identified with a single "struct clk", rather than
requiring clients to store the clock provider device and clock identity
values separately. For simple clock consumers, this isolates clients
from internal details of the clock API.
* clk.h is split so it only contains the client/consumer API, whereas
clk-uclass.h contains the provider API. This aligns with the recently
added reset and mailbox APIs.
* clk_ops .of_xlate(), .request(), and .free() are added so providers
can customize these operations if needed. This also aligns with the
recently added reset and mailbox APIs.
* clk_disable() is added.
* All users of the current clock APIs are updated.
* Sandbox clock tests are updated to exercise clock lookup via DT, and
clock enable/disable.
* rkclk_get_clk() is removed and replaced with standard APIs.Buildman shows no clock-related errors for any board for which buildman
can download a toolchain.test/py passes for sandbox (which invokes the dm clk test amongst
others).Signed-off-by: Stephen Warren
Acked-by: Simon Glass -
This adds a sandbox reset implementation (provider), a test client
device, instantiates them both from Sandbox's DT, and adds a DM test
that excercises everything.Signed-off-by: Stephen Warren
Acked-by: Simon Glass
04 Jun, 2016
1 commit
-
Add some tests for the new open drain setting feature of the GPIO
uclass, and extend the capabilities of the sandbox GPIO driver
accordingly.Signed-off-by: Mario Six
Reviewed-by: Simon Glass
Reviewed-by: York Sun
27 May, 2016
2 commits
-
This adds a sandbox mailbox implementation (provider), a test client
device, instantiates them both from Sandbox's DT, and adds a DM test
that excercises everything.Signed-off-by: Stephen Warren
Acked-by: Simon Glass # v1 -
The current reset API implements a method to reset the entire system.
In the near future, I'd like to introduce code that implements the device
tree reset bindings; i.e. the equivalent of the Linux kernel's reset API.
This controls resets to individual HW blocks or external chips with reset
signals. It doesn't make sense to merge the two APIs into one since they
have different semantic purposes. Resolve the naming conflict by renaming
the existing reset API to sysreset instead, so the new reset API can be
called just reset.Signed-off-by: Stephen Warren
Acked-by: Simon Glass
17 May, 2016
3 commits
-
Add a simple test which checks that a sandbox-emulated SD card can be used
correctly. This tests plumbing through the MMC stack's block-device
implementaion.Signed-off-by: Simon Glass
-
Enable building the MMC code for sandbox. This increases build
coverage for sandbox.Signed-off-by: Simon Glass
-
This driver will require generic MMC and block-device support in a future
commit. To avoid test errors, make this change now.Signed-off-by: Simon Glass
15 Apr, 2016
1 commit
-
LLVM 3.5 noted:
test/dm/core.c:41:35: warning: unused variable 'test_pdata_pre_reloc' [-Wunused-const-variable]
static const struct dm_test_pdata test_pdata_pre_reloc = {And the correct fix here is that the driver_info_pre_reloc test should
use the test_pdata_pre_reloc not test_pdata_manual variableCc: Simon Glass
Signed-off-by: Tom Rini
Reviewed-by: Simon Glass
02 Apr, 2016
1 commit
-
This patch adds emulated spmi bus controller with part of
pm8916 pmic on it to sandbox and tests validating SPMI uclass.Signed-off-by: Mateusz Kulikowski
Reviewed-by: Simon Glass
18 Mar, 2016
1 commit
-
Add some tests to check that block devices work as expected.
Signed-off-by: Simon Glass
Tested-by: Stephen Warren
15 Mar, 2016
4 commits
-
The USB subsystem has a few counters that need to be reset since they are
stored in static variables rather than driver-model data. An example is
usb_max_devs. Ultimately we should move this data into the USB uclass.For now, make sure that USB is reset after each test, so that the counters
go back to zero.Note: this is not a perfect solution: It a USB test fails it will exit
immediately and leave USB un-reset. The impact here is that it may cause
subsequence test failures in the same run.Signed-off-by: Simon Glass
-
To ease conversion to driver model, add helper functions which deal with
calling each block device method. With driver model we can reimplement these
functions with the same arguments.Use inline functions to avoid increasing code size on some boards.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Stephen Warren -
The current name is too generic. The function returns a block device based
on a provided string. Rename it to aid searching and make its purpose
clearer. Also add a few comments.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Stephen Warren -
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
26 Feb, 2016
1 commit
-
These are working correctly again, so re-enable them.
Signed-off-by: Simon Glass
Reviewed-by: Jagan Teki
Tested-by: Jagan Teki
16 Feb, 2016
1 commit
-
Invoke each "ut"-based unit test as a separate pytest.
Now that the DM unit test runs under test/py, remove the manual shell
script that invokes it.Signed-off-by: Stephen Warren
Acked-by: Simon Glass
Tested-by: Simon Glass # v2, on sandbox
06 Feb, 2016
1 commit
-
Close the file earlier to hopefully fix a Coverity error.
Reported-by: Coverity (CID: 134901)
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
30 Jan, 2016
4 commits
-
This adds tests for the different character types, line wrap, scrolling and
backspace.Signed-off-by: Simon Glass
-
Enable this feature so that truetype fonts can be used on the sandbox
console. Update the tests to select the normal/rotated console when needed.Signed-off-by: Simon Glass
Signed-off-by: Anatolij Gustschin -
This can be sent when to many characters are entered. Make sure it is
ignored and does not cause a character to be displayed.Signed-off-by: Simon Glass
-
With anti-aliased fonts we need a more fine-grained horizontal position
than a single pixel. Characters can be positioned to start part-way through
a pixel, with anti-aliasing (greyscale edges) taking care of the visual
effect.To cope with this, use fractional units (1/256 pixel) for horizontal
positions in the text console.Signed-off-by: Simon Glass
[agust: rebased]
Signed-off-by: Anatolij Gustschin
29 Jan, 2016
1 commit
-
The ut command prints a test failure count each time it is executed.
This is stored in a global variable which is never reset. Consequently,
the printed failure count accumulates across runs. Fix this by clearing
the counter each time "ut" is invoked.Signed-off-by: Stephen Warren
Acked-by: Simon Glass
24 Jan, 2016
1 commit
-
We have a way to find a regmap by its syscon driver data value. Add the same
for syscon itself.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
21 Jan, 2016
3 commits
-
Add a test for the 'bmp' command. Test both the uncompressed and compressed
versions of the file, since they use different code paths.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin -
Test that text is displayed correctly when the console is rotated.
Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin -
Add tests that check that the video console is working correcty. Also check
that text output produces the expected result. Test coverage includes
character output, wrapping and scrolling.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
14 Jan, 2016
1 commit
-
This will allow the implementation to make use of data in the block_dev
structure beyond the base device number. This will be useful so that eMMC
block devices can encompass the HW partition ID rather than treating this
out-of-band. Equally, the existence of the priv field is crying out for
this patch to exist.Signed-off-by: Stephen Warren
Reviewed-by: Tom Rini
13 Jan, 2016
1 commit
-
Update these tests to use driver model API functions.
Signed-off-by: Simon Glass
12 Jan, 2016
1 commit
-
Due to a limitation removed in an earlier patch, USB tests were not seeing
all the devices. Update the tests to pass now that all devices are visible.Signed-off-by: Simon Glass
08 Jan, 2016
1 commit
-
This subsystem has been broken since commit:
4efad20a sf: Update status reg check in spi_flash_cmd_wait_ready
There has so far been no response from the maintainer, and a release is
imminent. For now, let's just disable the tests.Signed-off-by: Simon Glass
07 Dec, 2015
2 commits
-
Now that we may compile (but not link) code calling fixup_cmdtable when
this is not set, we need to always have the declaration available. We
should also make sure that anyone calling the function includes
as that's where the function declaration is.Signed-off-by: Tom Rini
-
Subcommands contain pointers to functions which are not updated when
MANUAL_RELOC is enabled. This patch fix it.Signed-off-by: Michal Simek
Reviewed-by: Simon Glass
20 Nov, 2015
4 commits
-
Add a test that verifies that USB keyboards work correctly on sandbox.
This verifies some additional parts of the USB stack.Signed-off-by: Simon Glass
-
Add tests that 'usb tree' produces the right output when a device changes
order on the bus.Signed-off-by: Simon Glass
-
Add tests that this command produces the right output, even when a rescan
results in a device disappearing from the bus.Signed-off-by: Simon Glass
-
When running sandbox tests, silence the console to avoid unwanted output.
Also, record the console in case tests want to check it.The -v option can be used to enable stdout during tests.
Signed-off-by: Simon Glass