- Jan 06, 2015
-
-
Masahiro Yamada authored
To enjoy driver-model on sandbox, using device tree is recommended. While we are here, change sandbox_config to sandbox_defconfig too. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
-
- Nov 21, 2014
-
-
Simon Glass authored
Add documentation for the various driver model options that are now available. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 24, 2014
-
-
Simon Glass authored
Add tests for gpio_requestf() and for memory leaks. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a helper which permits a printf()-style format string for the requester string. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that gpio_request() is handled by the uclass, updates the tests accordingly. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 22, 2014
-
-
Simon Glass authored
This README is intended to help maintainers move their SPI drivers over to driver model. It works through the required steps with an example. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
-
Simon Glass authored
The sequence number is unique within the uclass, so state this clearly. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
-
Simon Glass authored
Buses need to iterate through their children in some situations. Add a few functions to make this easy. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
-
- Jul 23, 2014
-
-
Simon Glass authored
Some devices (particularly bus devices) must track their children, knowing when a new child is added so that it can be set up for communication on the bus. Add a child_pre_probe() method to provide this feature, and a corresponding child_post_remove() method. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some device types can have child devices and want to store information about them. For example a USB flash stick attached to a USB host controller would likely use this space. The controller can hold information about the USB state of each of its children. The data is stored attached to the child device in the 'parent_priv' member. It can be auto-allocated by dm when the child is probed. To do this, add a per_child_auto_alloc_size value to the parent driver. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Devices can have childen that can be addressed by a simple index, the sequence number or a device tree offset. Add functions to access a child in each of these ways. The index is typically used as a fallback when the sequence number is not available. For example we may use a serial UART with sequence number 0 as the console, but if no UART has sequence number 0, then we can fall back to just using the first UART (index 0). The device tree offset function is useful for buses, where they want to locate one of their children. The device tree can be scanned to find the offset of each child, and that offset can then find the device. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present only root nodes in the device tree are scanned for devices. But some devices can have children. For example a SPI bus may have several children for each of its chip selects. Add a function which scans subnodes and binds devices for each one. This can be used for the root node scan also, so change it. A device can call this function in its bind() or probe() methods to bind its children. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Don't allow access to uclasses before they have been initialised. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Each device that was bound from a device tree has an node that caused it to be bound. Add functions that find and return a device based on a device tree offset. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
In U-Boot it is pretty common to number devices from 0 and access them on the command line using this numbering. While it may come to pass that we will move away from this numbering, the possibility seems remote at present. Given that devices within a uclass will have an implied numbering, it makes sense to build this into driver model as a core feature. The cost is fairly small in terms of code and data space. With each uclass having numbered devices we can ask for SPI port 0 or serial port 1 and receive a single device. Devices typically request a sequence number using aliases in the device tree. These are resolved when the device is probed, to deal with conflicts. Sequence numbers need not be sequential and holes are permitted. At present there is no support for sequence numbers using static platform data. It could easily be added to 'struct driver_info' if needed, but it seems better to add features as we find a use for them, and the use of -1 to mean 'no sequence' makes the default value somewhat painful. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Driver model currently only operates after relocation is complete. In this state U-Boot typically has a small amount of memory available. In adding support for driver model prior to relocation we must try to use as little memory as possible. In addition, on some machines the memory has not be inited and/or the CPU is not running at full speed or the data cache is off. These can reduce execution performance, so the less initialisation that is done before relocation the better. An immediately-obvious improvement is to only initialise drivers which are actually going to be used before relocation. On many boards the only such driver is a serial UART, so this provides a very large potential benefit. Allow drivers to mark themselves as 'pre-reloc' which means that they will be initialised prior to relocation. This can be done either with a driver flag or with a 'dm,pre-reloc' device tree property. To support this, the various dm scanning function now take a 'pre_reloc_only' parameter which indicates that only drivers marked pre-reloc should be bound. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jun 20, 2014
-
-
Simon Glass authored
The lifecycle of a device is an important part of driver model. Add to the existing documentation and clarify it. Reported-by:
Jon Loeliger <jdl@jdl.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It is best to avoid having any occurence of 'struct device' in driver model, so rename to achieve this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jun 11, 2014
-
-
Chris Packham authored
Signed-off-by:
Chris Packham <judge.packham@gmail.com>
-
- May 27, 2014
-
-
Heiko Schocher authored
using UBI and DM together leads in compiler error, as both define a "struct device", so rename "struct device" in include/dm/device.h to "struct udevice", as we use linux code (MTD/UBI/UBIFS some USB code,...) and cannot change the linux "struct device" Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Marek Vasut <marex@denx.de>
-
- Mar 04, 2014
-
-
Simon Glass authored
This documentation pertains to the planned implementation of driver model in U-Boot for each subsystem, but it has not been superseded. It is probably better to have this documentation in the source code for each subsystem where possible, so that docbook will pick it up. Where this does not make sense, new documentation can be placed in some suitable file in doc/driver-model. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This adds a README to help with understanding of this series. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Feb 06, 2014
-
-
Marek Vasut authored
This driver is no longer used, remove it. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Michael Schwingen <michael@schwingen.org> Cc: Tom Rini <trini@ti.com>
-
Marek Vasut authored
The driver is no longer used, remove it. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Michael Schwingen <michael@schwingen.org> Cc: Tom Rini <trini@ti.com>
-
- Nov 08, 2013
-
-
Masahiro Yamada authored
This commit omits non-existing drivers/net/netarm_eth.c from the list. This driver is deleted by commit b411eb30. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Masahiro Yamada authored
The following serial drivers do not exist any more. - ns9750_serial.c: deleted by commit 4cfc611b - s3c4510b_uart.c: deleted by commit afad4029 - serial_clps7111.c: deleted by commit f2e08015 - serial_netarm.c: deleted by commit b411eb30 This commit cleans up UDM-serial.txt. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Masahiro Yamada authored
Everytime a dead driver is removed from the list, we must re-number. This is a painful task. Try git show e5323225 -- doc/driver-model/UDM-serial.txt git show 6f62f420 -- doc/driver-model/UDM-serial.txt git show b9f4bc34 -- doc/driver-model/UDM-serial.txt to see what I mean. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
- Oct 14, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Drop changes for PEP 4 following python tools] Signed-off-by:
Tom Rini <trini@ti.com>
-
- Sep 19, 2013
-
-
Masahiro Yamada authored
Since commit 5dc5f36 removed B2 board support, there are no boards enabling s3c44b0_rtc. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Andrea Scian <andrea.scian@dave-tech.it>
-
Masahiro Yamada authored
Since commit 5dc5f36 removed B2 board support, there are no boards enabling serial_s3c44b0. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Andrea Scian <andrea.scian@dave-tech.it>
-
- Jul 24, 2013
-
-
Gabor Juhos authored
Add a const keyword to the sect_buf argument of ide_write_data to fix the following warning: cmd_ide.c: In function '__ide_output_data': cmd_ide.c:548: warning: passing argument 2 of 'ide_write_data' discards qualifiers from pointer target type /devel/u-boot.git/include/ide.h:76: note: expected 'ulong *' but argument is of type 'const ulong *' Also modify the driver-model documentation to match with the new prototype. Compile tested only. Cc: Macpaul Lin <macpaul@andestech.com> Signed-off-by:
Gabor Juhos <juhosg@openwrt.org>
-
- May 15, 2013
-
-
Wolfgang Denk authored
The Freescale MPC8220 Power Architecture processors have long reached EOL; Freescale does not even list these any more on their web site. Remove the code to avoid wasting maitaining efforts on dead stuff. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Andy Fleming <afleming@gmail.com>
-
- Apr 12, 2013
-
-
Benoît Thébaudeau authored
Following the removal of the smdk6400 board, the s3c64xx SoC becomes unused, so remove associated code. It will still be possible to restore it later from the Git history if necessary. Signed-off-by:
Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
-
- Mar 11, 2013
-
-
Stefan Roese authored
These boards seem to be unmaintained for quite some time. So lets remove support for them completely. This also cleans up some common drivers/files. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Guillaume Alexandre <guillaume.alexandre@gespac.ch> Acked-by:
Wolfgang Denk <wd@denx.de>
-
- Feb 28, 2013
-
-
Wolfgang Denk authored
Commit 8b710b16 started removing code for the unmaintained "ns9750dev" board; the board support is still broken, and not included anywhere in the Makefile or boards.cfg. Remove the remaining dead code. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Oct 26, 2012
-
-
Marek Vasut authored
This stuff has been rotting in the tree for a year now. Remove it. Signed-off-by:
Marek Vasut <marex@denx.de>
-
- Oct 16, 2012
-
-
Albert ARIBAUD authored
Since commit 957731ed (ARM: remove broken "lpd7a40x" boards), lh7a40x cpu and serial driver have become unused. Remove them. Signed-off-by:
Albert ARIBAUD <albert.u.boot@aribaud.net>
-
- Sep 02, 2012
-
-
Tomáš Hlaváček authored
Signed-off-by:
Tomas <Hlavacek<tmshlvck@gmail.com>
-
Tomas Hlavacek authored
Signed-off-by:
Tomas Hlavacek <tmshlvck@gmail.com>
-