[PATCH] 'detect' command to detect devices
Sascha Hauer
s.hauer at pengutronix.de
Thu May 30 08:40:28 EDT 2013
This adds a 'detect' callback for devices which can be used for
MMC/ATA/USB and maybe other stuff. See the first patch for details.
In short with this series we get a 'detect' command to trigger
a devices detect callback to detect SD/MMC cards. Currently only
SD/MMC is implemented, but this should also be used for USB/ATA
aswell later.
Sascha
----------------------------------------------------------------
Sascha Hauer (3):
devices: add detect mechanism
mci: implement detect driver callback
mci fsl-esdhc: implement detect driver callback
commands/Kconfig | 9 +++++++
commands/Makefile | 1 +
commands/detect.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++
drivers/base/driver.c | 7 +++++
drivers/mci/imx-esdhc.c | 13 +++++++--
drivers/mci/mci-core.c | 21 +++++++++++++++
include/driver.h | 8 ++++++
include/mci.h | 6 +++--
8 files changed, 131 insertions(+), 4 deletions(-)
create mode 100644 commands/detect.c
More information about the barebox
mailing list