path: root/include/dm-demo.h
Commit message (Collapse)AuthorAgeFilesLines
* dm: demo: Add a simple GPIO demonstrationSimon Glass2015-01-291-0/+4
| | | | | | | | Add a new 'demo light' command which uses GPIOs to control imaginary lights. Each light is assigned a bit number in the overall value. This provides an example driver for using the new GPIO API. Signed-off-by: Simon Glass <>
* dm: rename device struct to udeviceHeiko Schocher2014-05-271-5/+5
| | | | | | | | | | | | 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 <> Cc: Simon Glass <> Cc: Marek Vasut <>
* dm: Add a demonstration/example driverSimon Glass2014-03-041-0/+36
As an example of how to write a uclass and a driver, provide a demo version of each, accessible through the 'demo' command. To use these with driver model, define CONFIG_CMD_DEMO and CONFIG_DM_DEMO. The two demo drivers are enabled with CONFIG_DM_DEMO_SIMPLE and CONFIG_DM_DEMO_SHAPE. Signed-off-by: Simon Glass <> Signed-off-by: Marek Vasut <> Signed-off-by: Pavel Herrmann <> Signed-off-by: Viktor Křivák <> Signed-off-by: Tomas Hlavacek <>
OpenPOWER on IntegriCloud