aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-04-02 12:16:04 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-04-02 12:16:04 +0200
commit9caa3ec1e9aab16428dbaecde14da6bdf4b9ce3a (patch)
tree4090d4c72307a7ffe1d5be613a6950e3c5be8e38
parent98f22dc172e1ebd5341da3de0d67666442566f72 (diff)
hw/r2d: add a USB keyboard
The R2D board does not have a PS/2 port, and only support a keyboard on the USB bus. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--hw/r2d.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/r2d.c b/hw/r2d.c
index 8769a12221..ec075db331 100644
--- a/hw/r2d.c
+++ b/hw/r2d.c
@@ -34,6 +34,7 @@
#include "sh7750_regs.h"
#include "ide.h"
#include "loader.h"
+#include "usb.h"
#define SDRAM_BASE 0x0c000000 /* Physical location of SDRAM: Area 3 */
#define SDRAM_SIZE 0x04000000
@@ -240,6 +241,9 @@ static void r2d_init(ram_addr_t ram_size,
for (i = 0; i < nb_nics; i++)
pci_nic_init_nofail(&nd_table[i], "rtl8139", i==0 ? "2" : NULL);
+ /* USB keyboard */
+ usbdevice_create("keyboard");
+
/* Todo: register on board registers */
if (kernel_filename) {
int kernel_size;