- 13 4月, 2021 1 次提交
-
-
由 Asherah Connor 提交于
A sandbox driver and test are added for the qfw uclass, and a test in QEMU added for qfw functionality to confirm it doesn't break in real world use. Signed-off-by: NAsherah Connor <ashe@kivikakk.ee> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
- 12 3月, 2021 1 次提交
-
-
由 Simon Glass 提交于
This is the main test function for driver model but not for other tests. Rename the file and the function so this is clear. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 26 2月, 2021 1 次提交
-
-
由 Sean Anderson 提交于
This test verifies the mapping between fastboot partitions and partitions as understood by U-Boot. It also tests the creation of GPT partitions, though that is not the primary goal. Signed-off-by: NSean Anderson <sean.anderson@seco.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 18 2月, 2021 2 次提交
-
-
由 Nicolas Saenz Julienne 提交于
By reusing DT nodes already available in sandbox's test DT introduce a test to validate dev_phys_to_bus()/dev_bus_to_phys(). Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de> Reviewed-by: NSimon Glass <sjg@chromium.org> Tested-by: NPeter Robinson <pbrobinson@gmail.com> Signed-off-by: NMatthias Brugger <mbrugger@suse.com>
-
由 Nicolas Saenz Julienne 提交于
Introduce some new nodes in sandbox's test device-tree and dm tests in order to validate dev_get_dma_range(). Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de> Reviewed-by: NSimon Glass <sjg@chromium.org> Tested-by: NPeter Robinson <pbrobinson@gmail.com> Signed-off-by: NMatthias Brugger <mbrugger@suse.com>
-
- 31 1月, 2021 2 次提交
-
-
由 Simon Glass 提交于
At present this function uses the old format for reading hashes. Add support for the current format. Add a test while we are here. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This is used several times in this file. Put it in a function to avoid code duplication. Also add a test for this function. There are no cros_ec tests at present, so it is time to update the code. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 06 11月, 2020 1 次提交
-
-
由 Simon Glass 提交于
This uclass is intended to provide a way to obtain information about a U-Boot board. But the concept of a U-Boot 'board' is the whole system, not just one circuit board, meaning that 'board' is something of a misnomer for this uclass. In addition, the name 'board' is a bit overused in U-Boot and we want to use the same uclass to provide SMBIOS information. The obvious name is 'system' but that is so vague as to be meaningless. Use 'sysinfo' instead, since this uclass is aimed at providing information on the system. Rename everything accordingly. Note: Due to the patch delta caused by the symbol renames, this patch shows some renamed files as being deleted in one place and created in another. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
- 30 10月, 2020 2 次提交
-
-
由 Simon Glass 提交于
At present we have a pytest that covers of-platadata. Add a very simple unit test that just checks that a device can be found. This shows the ability to write these tests in C. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Tests are easier to run in U-Boot proper. Running them in SPL does not add test coverage in most cases. Also some tests use features that are not available in SPL. Update the build rules to disable these tests in SPL. We still need test-main to be able to actually run SPL tests. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 28 10月, 2020 2 次提交
-
-
由 Pratyush Yadav 提交于
Tests tests run the three mux subcommands: list, select, and deselect, and verify that the commands do what we expect. Signed-off-by: NPratyush Yadav <p.yadav@ti.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Jean-Jacques Hiblot 提交于
Provide tests to check the behavior of the multiplexer framework. Two sets of tests are added. One is using an emulated multiplexer driver that can be used to test basic functionality like select, deselect, etc. The other is using the mmio mux which adds tests specific to it. Signed-off-by: NJean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: NPratyush Yadav <p.yadav@ti.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 08 10月, 2020 1 次提交
-
-
由 Sean Anderson 提交于
This extends the pinctrl-sandbox driver to support pin muxing, and adds a test for that behaviour. The test is done in C and not python (like the existing tests for the pinctrl uclass) because it needs to call pinctrl_select_state. Another option could be to add a command that invokes pinctrl_select_state and then test everything in test/py/tests/test_pinmux.py. The pinctrl-sandbox driver now mimics the way that many pinmux devices work. There are two groups of pins which are muxed together, as well as four pins which are muxed individually. I have tried to test all normal paths. However, very few error cases are explicitly checked for. Signed-off-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 30 9月, 2020 1 次提交
-
-
由 Etienne Carriere 提交于
This change introduces SCMI agent uclass to interact with a firmware using the SCMI protocols [1]. SCMI agent uclass currently supports a single method to request processing of the SCMI message by an identified server. A SCMI message is made of a byte payload associated to a protocol ID and a message ID, all defined by the SCMI specification [1]. On return from process_msg() method, the caller gets the service response. SCMI agent uclass defines a post bind generic sequence for all devices. The sequence binds all the SCMI protocols listed in the FDT for that SCMI agent device. Currently none, but later change will introduce protocols. This change implements a simple sandbox device for the SCMI agent uclass. The sandbox nicely answers SCMI_NOT_SUPPORTED to SCMI messages. To prepare for further test support, the sandbox exposes a architecture function for test application to read the sandbox emulated devices state. Currently supports 2 SCMI agents, identified by an ID in the FDT device name. The simplistic DM test does nothing yet. SCMI agent uclass is designed for platforms that embed a SCMI server in a firmware hosted somewhere, for example in a companion co-processor or in the secure world of the executing processor. SCMI protocols allow an SCMI agent to discover and access external resources as clock, reset controllers and more. SCMI agent and server communicate following the SCMI specification [1]. This SCMI agent implementation complies with the DT bindings defined in the Linux kernel source tree regarding SCMI agent description since v5.8. Links: [1] https://developer.arm.com/architectures/system-architectures/software-standards/scmiSigned-off-by: NEtienne Carriere <etienne.carriere@linaro.org> Cc: Simon Glass <sjg@chromium.org> Cc: Peng Fan <peng.fan@nxp.com> Cc: Sudeep Holla <sudeep.holla@arm.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 29 7月, 2020 1 次提交
-
-
由 Philippe Reynes 提交于
Add a test to confirm that we can read button state using the button-gpio driver. Signed-off-by: NPhilippe Reynes <philippe.reynes@softathome.com>
-
- 26 7月, 2020 1 次提交
-
-
由 Dave Gerlach 提交于
Add a sandbox SOC driver, and some tests for the SOC uclass. Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NDave Gerlach <d-gerlach@ti.com>
-
- 24 7月, 2020 1 次提交
-
-
git://git.denx.de/u-boot-dm由 Tom Rini 提交于
This reverts commit 5d3a21df, reversing changes made to 56d37f1c. Unfortunately this is causing CI failures: https://travis-ci.org/github/trini/u-boot/jobs/711313649Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 21 7月, 2020 1 次提交
-
-
由 Dave Gerlach 提交于
Add a sandbox SOC driver, and some tests for the SOC uclass. Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NDave Gerlach <d-gerlach@ti.com>
-
- 17 7月, 2020 2 次提交
-
-
由 Simon Glass 提交于
More complex device properties can be provided to drivers via a device-specific data (_DSD) object. To create this we need to build it up in a separate data structure and then generate the ACPI code, due to its recursive nature. Add an implementation of this. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NWolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
由 Simon Glass 提交于
Add a new file to handle generating ACPI code programatically. This is used when information must be dynamically added to the tables, e.g. the SSDT. Initial support is just for writing simple values. Also add a 'base' value so that the table can be freed. This likely doesn't happen in normal code, but is nice to do in tests. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NWolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
- 01 7月, 2020 3 次提交
-
-
由 Sean Anderson 提交于
This patch adds a generic reset driver. It is designed to be useful when one has a register in a regmap which contains bits that reset other devices. I thought this seemed like a very generic use, so here is a generic driver. The overall structure has been modeled on the syscon-reboot driver. Signed-off-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Sean Anderson 提交于
This type of bus is used in Linux to designate buses which have power domains and/or clocks which need to be enabled before their child devices can be used. Because power domains are automatically enabled before probing in U-Boot, we just need to enable any clocks present. Signed-off-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Sean Anderson 提交于
This pll code is primarily based on the code from the kendryte standalone sdk in lib/drivers/sysctl.c. k210_pll_calc_config is roughly analogous to the algorithm used to set the pll frequency, but it has been completely rewritten to be fixed-point based. Signed-off-by: NSean Anderson <seanga2@gmail.com> CC: Lukasz Majewski <lukma@denx.de>
-
- 17 4月, 2020 1 次提交
-
-
由 Patrick Delaunay 提交于
Add functions to iterate on all property with livetree - dev_read_first_prop - dev_read_next_prop - dev_read_prop_by_prop and - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop And helper: dev_for_each_property For example: struct ofprop property; dev_for_each_property(property, config) { value = dev_read_prop_by_prop(&property, &propname, &len); or: for (res = ofnode_get_first_property(node, &property); !res; res = ofnode_get_next_property(&property)) { value = ofnode_get_property_by_prop(&property, &propname, &len); .... } Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 16 4月, 2020 2 次提交
-
-
由 Laurentiu Tudor 提交于
Add a new test for fdtdec_set_carveout(). Signed-off-by: NLaurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: NSimon Glass <sjg@chromium.org> Drop blank line at EFO: Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Add a sandbox test for the basic ACPI functionality we have so far. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Reviewed-by: NWolfgang Wallner <wolfgang.wallner@br-automation.com>
-
- 08 1月, 2020 2 次提交
-
-
由 Simon Glass 提交于
The devres functionality has very few users in U-Boot, but it still should have tests. Add a few basic tests of the main functions. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Sughosh Ganu 提交于
Add a unit test for testing the rng uclass functionality using the sandbox rng driver. Signed-off-by: NSughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: NPatrice Chotard <patrice.chotard@st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 15 12月, 2019 3 次提交
-
-
由 Simon Glass 提交于
Add a simple sandbox test for this uclass. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
由 Simon Glass 提交于
Add a simple PMC for sandbox to permit tests to run. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
- 14 10月, 2019 1 次提交
-
-
由 Yannick Fertré 提交于
Display Serial Interface (DSI) host can usefully be modelled as their own uclass. DSI defines a serial bus and a communication protocol between the host and the device (panel, bridge). Signed-off-by: NYannick Fertré <yannick.fertre@st.com>
-
- 19 7月, 2019 2 次提交
-
-
由 Lukasz Majewski 提交于
This patch provides code to implement the CCF clock tree in sandbox. It uses all the introduced primitives; some generic ones are reused, some sandbox specific were developed. In that way (after introducing the real CCF tree in sandbox) the recently added to clk-uclass.c: clk_get_by_id() and clk_get_parent_rate() are tested in their natural work environment. Usage (sandbox_defconfig and sandbox_flattree_defconfig): ./u-boot --fdt arch/sandbox/dts/test.dtb --command "ut dm clk_ccf" Signed-off-by: NLukasz Majewski <lukma@denx.de>
-
由 Alex Marginean 提交于
Adds a test using a makeshift MDIO MUX. The test is based on the existing MDIO test. It uses the last emulated PHY register to verify MUX selection. Signed-off-by: NAlex Marginean <alexm.osslist@gmail.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
- 16 7月, 2019 1 次提交
-
-
由 Alex Marginean 提交于
A very simple test for DM_MDIO, mimicks a register write/read through the sandbox bus to a dummy PHY. Signed-off-by: NAlex Marginean <alexm.osslist@gmail.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Tested-by: NBin Meng <bmeng.cn@gmail.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 11 7月, 2019 1 次提交
-
-
由 Ramon Fried 提交于
Add basic PCI endpoint sandbox testing. Signed-off-by: NRamon Fried <ramon.fried@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 05 7月, 2019 1 次提交
-
-
由 Jean-Jacques Hiblot 提交于
This uclass is intended for devices that do not need any features from the uclass, including binding children. This will typically be used by devices that are used to bind child devices but do not use dm_scan_fdt_dev() to do it. That is for example the case of several USB wrappers that have 2 child devices (1 for device and 1 for host) but bind only one at a any given time. Signed-off-by: NJean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 20 2月, 2019 1 次提交
-
-
由 Simon Glass 提交于
This uclass currently has no tests. Add a sandbox driver and some simple tests to provide basic coverage. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> [bmeng: Use "sandbox,pch" for the compatible string, for consistency] Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
-
- 15 1月, 2019 1 次提交
-
-
由 Philipp Tomsich 提交于
Add a test for the bootcount uclass, which uses the RTC bootcount backend (i.e. drivers/bootcount/rtc.c is implictly also tested). Signed-off-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 16 12月, 2018 1 次提交
-
-
由 Tom Rini 提交于
The "dm" command under CONFIG_CMD_DM should live under cmd/ rather than test/dm/ so move it. Signed-off-by: NTom Rini <trini@konsulko.com>
-