[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/19] unicore32-softmmu: Add ps2 support
From: |
gxt |
Subject: |
[Qemu-devel] [PATCH 13/19] unicore32-softmmu: Add ps2 support |
Date: |
Tue, 7 Aug 2012 18:00:53 +0800 |
From: Guan Xuetao <address@hidden>
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD.
Signed-off-by: Guan Xuetao <address@hidden>
---
default-configs/unicore32-softmmu.mak | 1 +
hw/puv3.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/default-configs/unicore32-softmmu.mak
b/default-configs/unicore32-softmmu.mak
index 4d4fbfc..de38577 100644
--- a/default-configs/unicore32-softmmu.mak
+++ b/default-configs/unicore32-softmmu.mak
@@ -1,3 +1,4 @@
# Default configuration for unicore32-softmmu
CONFIG_PUV3=y
CONFIG_PTIMER=y
+CONFIG_PCKBD=y
diff --git a/hw/puv3.c b/hw/puv3.c
index 9acfc5a..271df97 100644
--- a/hw/puv3.c
+++ b/hw/puv3.c
@@ -38,6 +38,7 @@ static void puv3_soc_init(CPUUniCore32State *env)
{
qemu_irq *cpu_intc, irqs[PUV3_IRQS_NR];
DeviceState *dev;
+ MemoryRegion *i8042 = g_new(MemoryRegion, 1);
int i;
/* Initialize interrupt controller */
@@ -57,6 +58,10 @@ static void puv3_soc_init(CPUUniCore32State *env)
irqs[PUV3_IRQS_GPIOLOW4], irqs[PUV3_IRQS_GPIOLOW5],
irqs[PUV3_IRQS_GPIOLOW6], irqs[PUV3_IRQS_GPIOLOW7],
irqs[PUV3_IRQS_GPIOHIGH], NULL);
+
+ /* Keyboard (i8042), mouse disabled for nographic */
+ i8042_mm_init(irqs[PUV3_IRQS_PS2_KBD], NULL, i8042, PUV3_REGS_OFFSET, 4);
+ memory_region_add_subregion(get_system_memory(), PUV3_PS2_BASE, i8042);
}
static void puv3_board_init(CPUUniCore32State *env, ram_addr_t ram_size)
--
1.7.0.4
- [Qemu-devel] [PATCH 00/19] unicore32: Add unicore32-softmmu support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 01/19] unicore32-softmmu: Add unicore32-softmmu build support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 02/19] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 03/19] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable, gxt, 2012/08/07
- [Qemu-devel] [PATCH 04/19] target-unicore32: Drop UC32_CPUID macros, gxt, 2012/08/07
- [Qemu-devel] [PATCH 12/19] unicore32-softmmu: Add puv3 dma support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 06/19] unicore32-softmmu: Make sure that kernel can access user space, gxt, 2012/08/07
- [Qemu-devel] [PATCH 07/19] unicore32-softmmu: Add puv3 soc/board support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 11/19] unicore32-softmmu: Add puv3 pm support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 13/19] unicore32-softmmu: Add ps2 support,
gxt <=
- [Qemu-devel] [PATCH 05/19] unicore32-softmmu: Implement softmmu specific functions, gxt, 2012/08/07
- [Qemu-devel] [PATCH 10/19] unicore32-softmmu: Add puv3 gpio support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 08/19] unicore32-softmmu: Add puv3 interrupt support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 17/19] unicore32: Disintegrate cpu_dump_state_ucf64 function, gxt, 2012/08/07
- [Qemu-devel] [PATCH 19/19] unicore32-softmmu: Add a minimal curses screen support, gxt, 2012/08/07
- [Qemu-devel] [PATCH 18/19] unicore32: Close dump-option of cpu_dump_state_ucf64 function, gxt, 2012/08/07
- [Qemu-devel] [PATCH 16/19] unicore32: Split UniCore-F64 instruction helpers from helper.c, gxt, 2012/08/07
- [Qemu-devel] [PATCH 15/19] unicore32-softmmu: Add is_default setting for puv3 machine, gxt, 2012/08/07
- [Qemu-devel] [PATCH 14/19] unicore32-softmmu: Add maintainer information for UniCore32 machine, gxt, 2012/08/07
- [Qemu-devel] [PATCH 09/19] unicore32-softmmu: Add puv3 ostimer support, gxt, 2012/08/07