26 Feb, 2020
1 commit
-
Its possible that k3_avs_priv is NULL because the driver may not have
been probed yet. Therefore check if pointer is valid before
dereferencing it.Signed-off-by: Vignesh Raghavendra
11 Feb, 2020
2 commits
-
sandbox conversion to SDL2
TPM TEE driver
Various minor sandbox video enhancements
New driver model core utility functions -
- Move P2SB from Apollo Lake to a more generic location
- Add a function to find a device by drvdata in DM core
- Enhancement of DM IRQ uclass driver
- Add a clock driver for Intel devices
- Add support for ACPI general-purpose events
- Add a TPM driver for H1/Cr50
- Enable TPM on Google Chromebook Coral
10 Feb, 2020
1 commit
-
Set the correct offset length and chip address offset mask for each
device to allow correct access to total capacity of the devices.Signed-off-by: Robert Beckett
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
4 commits
-
Now that we can use direct access to the system malloc() in sandbox, drop
the remaining uses of os_malloc().The only one remaining now is for the RAM buffer, which we do want to be
at a known address, so this is intended.Signed-off-by: Simon Glass
-
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
-
At present devres.h is included in all files that include dm.h but few
make use of it. Also this pulls in linux/compat which adds several more
headers. Drop the automatic inclusion and require files to include devres
themselves. This provides a good indication of which files use devres.Signed-off-by: Simon Glass
Reviewed-by: Anatolij Gustschin -
At present this method uses a non-const udevice pointer, but the call
should not modify the device. Use a const pointer.Signed-off-by: Simon Glass
18 Jan, 2020
2 commits
-
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 -
This seems pretty old now. It has not been converted to driver model and
is not used by any boards.Drop it.
Signed-off-by: Simon Glass
09 Jan, 2020
1 commit
-
---------------------------------------------------------------------
Add i.MX8MP SoC and EVK board
Update README for i.MX8MN EVK and fix mmc env
Add pca9450 driver
--------------------------------------------------------------------Travis: https://travis-ci.org/sbabic/u-boot-imx/builds/634211885
08 Jan, 2020
1 commit
-
i.MX8MP use similar ocotp as i.MX8MN, but has changed fuse banks
and ctrl register bit definitions, so update to reflect that.Reviewed-by: Ye Li
Signed-off-by: Peng Fan
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
4 commits
-
Add ability to query size of eeprom device and partitions
Signed-off-by: Robert Beckett
Reviewed-by: Heiko Schocher -
Add ability to partition eeprom via devicetree bindings
Signed-off-by: Robert Beckett
Reviewed-by: Heiko Schocher -
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 -
Update this uclass to support the needs of the Apollo Lake ITSS. It
supports four operations.Move the uclass into a separate directory so that sandbox can use it too.
Add a new Kconfig to control it and enable this on x86.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 -
The Primary-to-Sideband bus (P2SB) is used to access various peripherals
through memory-mapped I/O in a large chunk of PCI space. The space is
segmented into different channels and peripherals are accessed by
device-specific means within those channels. Devices should be added in
the device tree as subnodes of the p2sb.This adds a uclass and enables it for sandbox.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
11 Dec, 2019
1 commit
-
Chromium EC commands can be up to 16-bits, so using a uint8_t here can
cause truncation. Update to use a uint instead.It looks like this should likely have been done as a part of
9fea76f5d30264dc08ac591a7a89427b8441555b, but this function was skipped
for some reason.Signed-off-by: Michael Auchter
Cc: Simon Glass
Reviewed-by: Simon Glass
03 Dec, 2019
5 commits
-
These functions do not use driver model but are still used. Move them to a
new eeprom.h header file.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
This function belongs in time.h so move it over and add a comment.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
Drop inclusion of crc.h in common.h and use the correct header directly
instead.With this we can drop the conflicting definition in fw_env.h and rely on
the crc.h header, which is already included.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
There are a few whitespace problems with this code. Tidy them up.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
This is only used by a few files so it should not be in the common header.
Move it out.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
17 Nov, 2019
1 commit
-
Newer Rockchip socs like the px30 use a different ip block to handle
one-time-programmable memory, so add a misc driver for it as well.Signed-off-by: Finley Xiao
Signed-off-by: Heiko Stuebner
Reviewed-by: Kever Yang
12 Nov, 2019
1 commit
-
u-boot-imx-20191105
-------------------
i.MX8MN SoC support
ROM API image download support
i.MX8MM enet enabling
08 Nov, 2019
2 commits
-
j721e SoCs have different OPP tables. Add support for the same.
Note: DM Still has lot of voltages TBD hence the correct
values need to be programmed once they are published.Signed-off-by: Keerthy
-
Adaptive Voltage Scaling is a technology used in TI SoCs to optimize
the operating voltage based on characterization data written to efuse
during production. Add a driver to support this feature for K3 line of
SoCs, initially for AM65x.Signed-off-by: Tero Kristo
Signed-off-by: Keerthy
05 Nov, 2019
1 commit
-
clk and pinctrl will be get(probed) during each device probe,
we don't need to probe them in scu driver. Only need to bind the sub-nodes
(clk and iomuxc) of MU node with their drivers.So drop the code to probe the clk/pinctrl, and this patch will make it
easy to add more subnodes.Signed-off-by: Peng Fan
04 Nov, 2019
1 commit
-
Need to pass total 5 arguments for SIP HAB call on i.MX8MQ,
so update the interface to add new argument.Signed-off-by: Ye Li
[agust: fixed imx8m-power-domain build]
Signed-off-by: Anatolij Gustschin
Reviewed-by: Patrick Wildt
Reviewed-by: Peng Fan
24 Oct, 2019
1 commit
-
The Microchip Flexcom is just a wrapper which embeds a SPI controller,
an I2C controller and an USART.
Only one function can be used at a time and is chosen at boot time according
to the device tree.
The bindings are kept as in Linux.
The driver registers to MISC_UCLASS.Signed-off-by: Eugen Hristev
09 Oct, 2019
1 commit
-
u-boot-imx-20191009
-------------------Travis : https://travis-ci.org/sbabic/u-boot-imx/builds/595148532
- MX6UL / ULZ
- Toradex board
- Allow to set OCRAM for MX6Q/D
- MX7ULP
- MX8: (container image, imx8mq_mek), SCU API
- fix several board booting from SD/EMMC (cubox-i for example)
- pico boards[trini: display5 merged manually]
Signed-off-by: Tom Rini
08 Oct, 2019
3 commits
-
Add more scfw api for clk/partition/seco usage
The api will be used by ccf/partition/secure boot.Signed-off-by: Peng Fan
-
Add sc_pm_is_partition_started to check whether a partition
has been started. This will be used to detect M4 partition booted up or
not, then we could choose which dtb to use. If M4 is up, we need
use dtb, such as imx8qm-mek-rpmsg.dtb.Signed-off-by: Peng Fan
-
Add sc_rm_set_master_sid to set stream sid of masters to make
sure they could use smmu.Signed-off-by: Peng Fan