10 Mar, 2020
1 commit
-
doc/README.drivers.eth seems like a good source for understanding
U-Boot's network subsystem, but is only talking about legacy network
drivers. This is particularly sad as proper documentation would help in
porting drivers over to the driver model.Rewrite the document to describe network drivers in the new driver model
world. Most driver callbacks/methods are almost identical in their
semantic, but recv() differs in some important details.Also keep some parts of the original text at the end, to help
understanding old drivers. Add some hints on how to port drivers over.This also uses the opportunity to reformat the document in reST, on the
way moving it into doc/driver-model and adding it into the structure
there.Signed-off-by: Andre Przywara
Reviewed-by: Simon Glass
Acked-by: Joe Hershberger
11 Feb, 2020
2 commits
-
sandbox conversion to SDL2
TPM TEE driver
Various minor sandbox video enhancements
New driver model core utility functions -
The patch fixes some errors.
Signed-off-by: Dario Binacchi
Reviewed-by: Bin Meng
06 Feb, 2020
1 commit
-
Following the recommendation of adding '#define DEBUG' at the top
of drivers/core/lists.c does not cause the debug messages to be
shown. Change it to '#define LOG_DEBUG' instead, which actually
makes it work as per doc/README.log.While at it, provide the full path to lists.c to in order to make
the instructions clearer.Signed-off-by: Fabio Estevam
Reviewed-by: Simon Glass
15 Dec, 2019
1 commit
-
We don't want to include dt-structs.h in header files, so add a note about
that.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
03 Nov, 2019
1 commit
-
Add a note about the driver name in the of-platdata documentation since
the naming must follow the compatible string.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
25 Oct, 2019
2 commits
-
We need distinguish the following two situations in various SPI APIs:
- given chip select num is invalid
- given chip select num is valid, but no device is attachedCurrently -ENODEV is returned for both cases.
For the first case, it's more reasonable to return -EINVAL instead of
-ENODEV for invalid chip select numbers.Signed-off-by: Bin Meng
Tested-by: Jagan Teki # SoPine
Reviewed-by: Jagan Teki -
If an SPI controller driver does not implement ops->cs_info, that
probably means any chip select number could be valid, hence let's
return 0 for spi_cs_info().Signed-off-by: Bin Meng
Tested-by: Jagan Teki # SoPine
Reviewed-by: Jagan Teki
15 Oct, 2019
1 commit
-
Make it a little easier to find the documentation.
Signed-off-by: Ralph Siemsen
Reviewed-by: Simon Glass
08 Oct, 2019
3 commits
-
Fix these spelling errors the header file and documentation.
Fix a small typo in the PCI documentation.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Sandbox pci works using emulation drivers which are currently children of
the pci device:pci-controller {
pci@1f,0 {
compatible = "pci-generic";
reg = ;
emul@1f,0 {
compatible = "sandbox,swap-case";
};
};
};In this case the emulation device is attached to pci device on address
f800 (device 1f, function 0) and provides the swap-case functionality.However this is not ideal, since every device on a PCI bus has a child
device. This is only really the case for sandbox, but we want to avoid
special-case code for sandbox.Worse, child devices cannot be probed before their parents. This forces
us to use 'find' rather than 'get' to obtain the emulator device. In fact
the emulator devices are never probed. There is code in
sandbox_pci_emul_post_probe() which tries to track when emulators are
active, but at present this does not work.A better approach seems to be to add a separate node elsewhere in the
device tree, an 'emulation parent'. This could be given a bogus address
(such as -1) to hide the emulators away from the 'pci' command, but it
seems better to keep it at the root node to avoid such hacks.Then we can use a phandle to point from the device to the correct
emulator, and only on sandbox. The code to find an emulator does not
interfere with normal pci operation.Add a new UCLASS_PCI_EMUL_PARENT uclass which allows finding an emulator
given a bus, and finding a bus given an emulator. Update the existing
device trees and the code for finding an emulator.This brings PCI emulators more into line with I2C.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
[bmeng: fix 3 typos in the commit message;
encode bus number in the labels of swap_case_emul nodes;
mention commit 4345998ae9df in sandbox_pci_get_emul()]
Signed-off-by: Bin Meng -
Sometimes devices don't appear and it can be confusing. Add a few notes to
help with this situation.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
[bmeng: fix 2 issues in the doc and include the doc in the index.rst]
Signed-off-by: Bin Meng
20 Sep, 2019
2 commits
-
For many sub-systems we already require the driver model to be used. Yet
there is still a handful of boards that do not have CONFIG_DM enabled.We should make CONFIG_DM compulsory with release v2020.01
Conversion dates for CONFIG_DM_SPL and CONFIG_DM_TPL are yet to be defined.
Signed-off-by: Heinrich Schuchardt
Reviewed-by: Simon Glass -
The of-plat.rst file till this change has been using
This is at best misleading as SPL_OF_PLATDATA is always defined when we
want to use this SPL tinification feature (also in U-Boot proper).
As a result the OF_PLATDATA SPL specific code is also compiled in when
U-Boot proper is build.Signed-off-by: Lukasz Majewski
Reviewed-by: Peng Fan
Reviewed-by: Simon Glass
16 Sep, 2019
1 commit
-
Update SPI drivers, driver model conversion status for
v2019.10 release.Signed-off-by: Jagan Teki
05 Sep, 2019
1 commit
-
The driver model has been supported for network drivers since 2015. It is
time to convert the remaining boards. Set July 2020 as a timeline.Signed-off-by: Heinrich Schuchardt
Reviewed-by: Simon Glass
Acked-by: Joe Hershberger
24 Jul, 2019
14 commits
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
-
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
Reviewed-by: Heinrich Schuchardt -
Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.Signed-off-by: Bin Meng
Reviewed-by: Heinrich Schuchardt -
Add index.rst for driver model. More docs will be added later.
Signed-off-by: Bin Meng
Reviewed-by: Heinrich Schuchardt
11 Jul, 2019
1 commit
-
Add documentation for the pre-reloc property in SPL and TPL device-tree:
- u-boot,dm-pre-proper
- u-boot,dm-pre-reloc
- u-boot,dm-spl
- u-boot,dm-tplSigned-off-by: Patrick Delaunay
Reviewed-by: Simon Glass
10 Jun, 2019
1 commit
-
Now, we have few driver are fully converted into dm and few
are partially converted.So, update the migration status accordingly.
Signed-off-by: Jagan Teki
23 Apr, 2019
1 commit
-
In previously label which will be expanded to the node's full path was
used, and now replacing label with most commonly used DT phandle. The
codes were changed accordingly to the use of DT phandle and supporting
multiple instances.Signed-off-by: Tien Fong Chee
17 Apr, 2019
1 commit
-
Now that all boards using TI QSPI have moved to DM and DT, drop non DM
code completely.Signed-off-by: Vignesh Raghavendra
Reviewed-by: Tom Rini
[jagan: update MIGRATION.txt, rebase config_whitelist.txt]
Signed-off-by: Jagan Teki
Reviewed-by: Jagan Teki
10 Feb, 2019
1 commit
-
Improve some things in the documentation of OF_PLATDATA that I found
while porting socfgpa_gen5 to it.Signed-off-by: Simon Goldschmidt
Reviewed-by: Simon Glass
16 Jan, 2019
1 commit
-
Switching private data manual allocation to driver model auto allocation
so users no longer need to deallocate themself because this would be
deallocated by driver model when the device is no longer required.Signed-off-by: Tien Fong Chee
Reviewed-by: Simon Glass
09 Jan, 2019
2 commits
-
Add a migration plan for video which is an important subsystem in U-Boot.
Signed-off-by: Simon Glass
-
Add a migration plan for PCI which is an important subsystem in U-Boot.
Signed-off-by: Simon Glass
02 Jan, 2019
1 commit
-
- v2019.04 for no dm conversion drivers
- v2019.07 for partially converted drivers.Note: there were many updates on this deadline, so better
not update this again.Signed-off-by: Jagan Teki
13 Dec, 2018
1 commit
-
The function part_init() will only be built when we have both
CONFIG_PARTITIONS and CONFIG_HAVE_BLOCK_DEVICE set. Protect the call to
this function with both of these tests now.Cc: Simon Glass
Cc: Philipp Tomsich
Cc: Michal Simek
Cc: York Sun
Cc: Prabhakar Kushwaha
Cc: Mingkai Hu
Cc: Stefan Roese
Cc: Marek Behún
Cc: Vanessa Maegima
Cc: Eugen Hristev
Cc: Adam Ford
Cc: Jagan Teki
Cc: Tom Warren
Cc: Stephen Warren
Cc: Vitaly Andrianov
Signed-off-by: Tom Rini
Reviewed-by: Simon Glass