27 Feb, 2019
1 commit
-
This patch adds fixed-factor clock driver which derives clock
rate by dividing (div) and multiplying (mult) fixed factors
to a parent clock.Signed-off-by: Atish Patra
Signed-off-by: Anup Patel
Reviewed-by: Simon Glass
20 Feb, 2019
3 commits
-
Some audio codecs such as Intel HDA do not need to use digital data to
play sounds, but instead have a way to emit beeps. Add this interface as
an option. If the beep interface is not supported, then the sound uclass
falls back to the I2S interface.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
At present the PCH has 4 operations and these are reasonably widely used
in the drivers. But sometimes we want to add rarely used operations, and
each of these currently adds to the size of the PCH operations table.Add an ioctl() method which can be easily expanded without any more impact
on the operations table.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
This uclass currently has no tests. Add a sandbox driver and some simple
tests to provide basic coverage.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
[bmeng: Use "sandbox,pch" for the compatible string, for consistency]
Signed-off-by: Bin Meng
12 Feb, 2019
1 commit
-
- DM I2C improvements
10 Feb, 2019
2 commits
-
Samsung sound patches (applied for Samsung maintainer)
Common sound support
buildman environment support
of-platdata documentation improvements -
regulator_set_enable() api throws an error in the following three cases:
- when requested to disable an always-on regulator
- when set_enable() ops not provided by regulator driver
- when enabling is actually failed.(Error returned by the regulator driver)Sometimes consumer drivers doesn't want to track the first two scenarios
and just need to worry about the case where enabling is actually failed.
But it is also a good practice to have an error value returned in the
first two cases.So introduce an api regulator_set_enable_if_allowed() which ignores the
first two error cases and returns an error as given by regulator driver.
Consumer drivers can use this api need not worry about the first two
error conditions.Signed-off-by: Lokesh Vutla
Reviewed-by: Simon Glass
09 Feb, 2019
1 commit
-
While uclass_find_device() fails with -ENODEV in case of list_empty
strangely uclass_find_first_device() returns 0.Fix uclass_find_first_device() to also fail with -ENODEV instead.
Signed-off-by: Marcel Ziswiler
Reviewed-by: Simon Glass
08 Feb, 2019
1 commit
-
It is checking the highest alias ID for eth, gpio, pci, i2c and error
code on non existing alias.Signed-off-by: Michal Simek
Reviewed-by: Heiko Schocher
Reviewed-by: Simon Glass
25 Jan, 2019
1 commit
-
When dealing with two ethernet ports and having "netretry" set
to "once", it could occur that the connection (e.g. an ARP
request) failed, hence the status of the netloop was
"NETLOOP_FAIL". Due to the setting of "netretry", the network
logic would then switch to the other network interface,
assigning "ret" with the return value of "net_start_again()".
If this call succeeded we would return 0 (i.e. success) to
the caller when in reality the network action failed.Signed-off-by: Thomas RIENOESSL
Reviewed-by: Christian Gmeiner
Acked-by: Joe Hershberger
16 Jan, 2019
1 commit
-
Fix recent changes to serial API for driver model
Buildman clang support and a few fixes
Small fixes to 'dm tree' and regmap test
Improve sandbox build compatibility
A few other minor fixes
15 Jan, 2019
5 commits
-
All driver-model functions should have a device as the first parameter.
Update this function accordingly.Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko -
All driver-model functions should have a device as the first parameter.
Update this function accordingly.Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko -
All driver-model functions should have a device as the first parameter.
Update this function accordingly.Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko -
At present one of the regmap tests takes 5 seconds to run since it waits
for a timeout. This should be handled using sandbox_timer_add_offset()
which advances time for test purposes.This requires a little change to make the regmap_read_poll_timeout()
testable.Update the macro and the test.
Fixes: ebe3497c9c ("test: regmap: add regmap_read_poll_timeout test")
Signed-off-by: Simon Glass
-
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: Philipp Tomsich
Reviewed-by: Simon Glass
29 Dec, 2018
1 commit
-
With enabled default Nimbus font dm_test_video_truetype* tests fail.
Update expected expressions to fix them.Signed-off-by: Anatolij Gustschin
Reviewed-by: Simon Glass
16 Dec, 2018
1 commit
-
The "dm" command under CONFIG_CMD_DM should live under cmd/ rather than
test/dm/ so move it.Signed-off-by: Tom Rini
14 Dec, 2018
5 commits
-
All users of sound are converted to use driver model. Drop the old code
and the CONFIG_DM_SOUND option.Signed-off-by: Simon Glass
-
The current dev_read...() functions use s32 and u32 which are convenient
for device tree but not so useful for normal code, which often wants to
use normal integers for values.Add a helper which supports returning an unsigned int. Also add signed
versions of the unsigned readers.Signed-off-by: Simon Glass
-
The sound driver pulls together the audio codec and i2s drivers in order
to actually make sounds. It supports setup() and play() methods. The
sound_find_codec_i2s() function allows locating the linked codec and i2s
devices. They can be referred to from uclass-private data.Add a uclass and a test for sound.
Signed-off-by: Simon Glass
-
The i2s bus is commonly used with audio codecs. It provides a way to
stream digital data sychronously in both directions. U-Boot only supports
audio output, so this uclass is very simple, with a single tx_data()
method.Add a uclass and a test for i2s.
Signed-off-by: Simon Glass
-
An audio codec provides a way to convert digital data to sound and vice
versa. Add a simple uclass which just supports setting the parameters for
the codec.Signed-off-by: Simon Glass
10 Dec, 2018
1 commit
-
- DWC3 and UDC cleanup
07 Dec, 2018
3 commits
-
syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon
device from a reference in the DTS. It operates similarly to the linux
version of the namesake function.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass -
Add a sandbox DMA driver implementation (provider) and corresponding DM
test.Reviewed-by: Tom Rini
Signed-off-by: Grygorii Strashko
Reviewed-by: Simon Glass
Acked-by: Álvaro Fernández Rojas -
This is uclass for Hardware Spinlocks.
It implements two mandatory operations: lock and unlock
and one optional relax operation.Signed-off-by: Benjamin Gaignard
Reviewed-by: Simon Glass
Reviewed-by: Patrice Chotard
06 Dec, 2018
2 commits
-
Minor sandbox enhancements / fixes
tpm improvements to clear up v1/v2 support
buildman toolchain fixes
New serial options to set/get config -
- Various MTD fixes from Boris
- Zap various unused / legacy paths.
- pxa3xx NAND update from MiquelSigned-off-by: Tom Rini
05 Dec, 2018
4 commits
-
New callback will give a necessary information to fill up ACPI SPCR table,
for example. Maybe used later for other purposes.Signed-off-by: Andy Shevchenko
Reviewed-by: Simon Glass
Change ADR_SPACE_SYSTEM_IO to SERIAL_ADDRESS_SPACE_IO to fix build error:
Signed-off-by: Simon Glass -
In some cases it would be good to know the settings, such as parity,
of current serial console. One example might be an ACPI SPCR table
to generate using these parameters.Signed-off-by: Andy Shevchenko
Reviewed-by: Simon Glass -
This functions allow us to get and remap I/O addresses by name, which is useful when there are multiple reg addresses indexed by reg-names property.
This is needed in bmips dma/eth patch series, but can also be used on many
other drivers.Signed-off-by: Álvaro Fernández Rojas
Reviewed-by: Daniel Schwierzeck
Reviewed-by: Simon Glass -
If U-Boot is started from SPL or TPL, then those earlier phases deal with
the reset cause. On real hardware this cause may be lost once it is read.
Emulate that behaviour in sandbox by reporting a warm reset when a
previous phase has run since start-up.Signed-off-by: Simon Glass
30 Nov, 2018
3 commits
-
Update the device tree, sandbox i2c driver and tests to use the new
emulation parent to hold emulators.Signed-off-by: Simon Glass
-
Add two functions which can find a child device by uclass or by name.
The first is useful with Multi-Function-Devices (MFDs) to find one of a
particular type. The second is useful when only the name is known.Signed-off-by: Simon Glass
-
This function may be useful to code outside of the code driver-model
implementation. Export it and add a test.Signed-off-by: Simon Glass
27 Nov, 2018
1 commit
26 Nov, 2018
1 commit
-
The old 'sb' command was deprecated in 2015 and replaced with 'host'.
Remove the remaining users and the command, so that the name is available
for other purposes.Signed-off-by: Simon Glass
24 Nov, 2018
1 commit
-
Add test to regmap_read_poll_timeout() helper to check the timeout works
properly but cannot test proper condition matching since read/write calls
are not executed in sandbox.Tested-by: Jerome Brunet
Acked-by: Jagan Teki
Signed-off-by: Neil Armstrong
21 Nov, 2018
1 commit
-
It is useful to obtain the block-protect setting of the SPI flash, so we
know whether it is fully open or (perhaps partially) write-protected. Add
a method for this. Update the sandbox driver to process this operation and
add a test.Signed-off-by: Simon Glass