summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-08 23:48:06 -0700
committerSimon Glass <sjg@chromium.org>2015-11-19 20:27:52 -0700
commitd8a26f0300e0fae51de277e5d5892926de12102f (patch)
tree0df35185229182cf796f38e393f409dc1609e6c2 /arch/sandbox
parentb70a3fea947b28c1368063048c494389d030233b (diff)
downloadu-boot-imx-d8a26f0300e0fae51de277e5d5892926de12102f.zip
u-boot-imx-d8a26f0300e0fae51de277e5d5892926de12102f.tar.gz
u-boot-imx-d8a26f0300e0fae51de277e5d5892926de12102f.tar.bz2
usb: sandbox: Add a USB emulation driver
Add a simple USB keyboard driver for sandbox. It provides a function to 'load' it with input data, which it will then stream through to the normal U-Boot input subsystem. When the input data is exhausted, the keyboard stops providing data. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/include/asm/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h
index d3c7851..224b0eb 100644
--- a/arch/sandbox/include/asm/test.h
+++ b/arch/sandbox/include/asm/test.h
@@ -86,4 +86,6 @@ long sandbox_i2c_rtc_set_offset(struct udevice *dev, bool use_system_time,
*/
long sandbox_i2c_rtc_get_set_base_time(struct udevice *dev, long base_time);
+int sandbox_usb_keyb_add_string(struct udevice *dev, const char *str);
+
#endif