[Qemu-devel] [PATCH v2] pxa2xx_lcd: SRAM is valid location for the framebuffer

2012-01-24 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick --- v2: fix descptr validation hw/pxa2xx_lcd.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 4e9f7b4..de0fa48 100644 --- a/hw/pxa2xx_lcd.c +++ b/hw/pxa2xx_lcd.c @@ -308,9 +308,12

Re: [Qemu-devel] [PATCH] pxa2xx_lcd: SRAM is valid location for the framebuffer

2012-01-24 Thread Vasily Khoruzhick
On Tue, 2012-01-24 at 21:49 +0300, Vasily Khoruzhick wrote: > Signed-off-by: Vasily Khoruzhick Please ignore it, this version is buggy > hw/pxa2xx_lcd.c | 10 -- > 1 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c

[Qemu-devel] [PATCH] pxa2xx_lcd: SRAM is valid location for the framebuffer

2012-01-24 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_lcd.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 4e9f7b4..b39abbb 100644 --- a/hw/pxa2xx_lcd.c +++ b/hw/pxa2xx_lcd.c @@ -311,6 +311,10 @@ static void

[Qemu-devel] [PATCH 1/2] pxa2xx_keypad: make single automatic scans work

2012-01-12 Thread Vasily Khoruzhick
u-boot uses single automatic scans and polling in pxa2xx_keypad driver, so clear KPC_AS bit immediately and update keys state even if KPC_AS and KPC_ASACT are cleared. Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_keypad.c | 72 ++-- 1 files

[Qemu-devel] [PATCH 2/2] pxa2xx_lcd: fix palette parser

2012-01-12 Thread Vasily Khoruzhick
Pallete entry size for 16bpp format is 2 bytes, not 4 Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_lcd.c | 51 --- 1 files changed, 28 insertions(+), 23 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 5dd4ef0..02e237e 100644

Re: [Qemu-devel] [PATCH v5] Add support for Zipit Z2 machine

2011-07-28 Thread Vasily Khoruzhick
On Monday 11 July 2011 18:26:37 Vasily Khoruzhick wrote: > On Wednesday 06 July 2011 16:52:49 Vasily Khoruzhick wrote: > > Zipit Z2 is small PXA270 based handheld. > > Ping? One more ping.

Re: [Qemu-devel] [PATCH v5] Add support for Zipit Z2 machine

2011-07-11 Thread Vasily Khoruzhick
On Wednesday 06 July 2011 16:52:49 Vasily Khoruzhick wrote: > Zipit Z2 is small PXA270 based handheld. Ping? > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes, added VMStateDescription for LCD device and AER915, > traces clean up. > v3: no changes > v4:

[Qemu-devel] [PATCH v5] Add support for Zipit Z2 machine

2011-07-06 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes, added VMStateDescription for LCD device and AER915, traces clean up. v3: no changes v4: no changes v5: use DPRINTF for debug-related traces, add missing fields to VMStateDescription for

Re: [Qemu-devel] [PATCH 08/12] qemu_ram_ptr_length: take ram_addr_t as arguments

2011-07-06 Thread Vasily Khoruzhick
> > Signed-off-by: Stefano Stabellini > Reviewed-by: Peter Maydell > Signed-off-by: Alexander Graf Tested-by: Vasily Khoruzhick > --- > cpu-common.h |2 +- > exec.c | 21 ++--- > 2 files changed, 15 insertions(+), 8 deletions(-) > >

Re: [Qemu-devel] [PATCH v4 2/2] Add support for Zipit Z2 machine

2011-06-24 Thread Vasily Khoruzhick
On Friday 24 June 2011 17:45:06 Peter Maydell wrote: > On 17 June 2011 11:04, Vasily Khoruzhick wrote: > > Zipit Z2 is small PXA270 based handheld. > > > > Signed-off-by: Vasily Khoruzhick > > These patches are affected by the bug in current qemu master > which

Re: [Qemu-devel] [PATCH v4 2/2] Add support for Zipit Z2 machine

2011-06-21 Thread Vasily Khoruzhick
On Friday 17 June 2011 13:04:37 Vasily Khoruzhick wrote: > Zipit Z2 is small PXA270 based handheld. Ping > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes, added VMStateDescription for LCD device and AER915, > traces clean up. > v3: no change

Re: [Qemu-devel] [PATCH v4 1/2] pxa2xx_lcd: add proper rotation support

2011-06-21 Thread Vasily Khoruzhick
On Friday 17 June 2011 13:04:36 Vasily Khoruzhick wrote: > Until now, pxa2xx_lcd only supported 90deg rotation, but > some machines (for example Zipit Z2) needs 270deg rotation. Ping > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes > v3: fix dpy_update calls f

[Qemu-devel] [PATCH v4 2/2] Add support for Zipit Z2 machine

2011-06-17 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes, added VMStateDescription for LCD device and AER915, traces clean up. v3: no changes v4: no changes Makefile.target |1 + hw/z2.c | 352

[Qemu-devel] [PATCH v4 1/2] pxa2xx_lcd: add proper rotation support

2011-06-17 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes v3: fix dpy_update calls for 180 and 360 deg. rotation. v4: codestyle fixes; replace atoi with strtol hw/framebuffer.c

Re: [Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-08 Thread Vasily Khoruzhick
On Wednesday 08 June 2011 12:50:50 Peter Maydell wrote: > On 3 June 2011 16:36, Vasily Khoruzhick wrote: > > Until now, pxa2xx_lcd only supported 90deg rotation, but > > some machines (for example Zipit Z2) needs 270deg rotation. > > > > Signed-off-by: Vasily Kho

Re: [Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-08 Thread Vasily Khoruzhick
On Friday 03 June 2011 18:36:36 Vasily Khoruzhick wrote: > Until now, pxa2xx_lcd only supported 90deg rotation, but > some machines (for example Zipit Z2) needs 270deg rotation. > > Signed-off-by: Vasily Khoruzhick Ping

[Qemu-devel] [PATCH v3 2/2] Add support for Zipit Z2 machine

2011-06-03 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes, added VMStateDescription for LCD device and AER915, traces clean up. v3: no changes Makefile.target |1 + hw/z2.c | 352 +++ 2

Re: [Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
On Friday 03 June 2011 18:36:36 Vasily Khoruzhick wrote: > Until now, pxa2xx_lcd only supported 90deg rotation, but > some machines (for example Zipit Z2) needs 270deg rotation. > > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes > v3: fix dpy_update call

[Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes v3: fix dpy_update calls for 180 and 360 deg. rotation. hw/framebuffer.c |2 + hw/pxa2xx_lcd.c | 101

Re: [Qemu-devel] [PATCH v2 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
On Wednesday 01 June 2011 12:28:06 Vasily Khoruzhick wrote: > Until now, pxa2xx_lcd only supported 90deg rotation, but > some machines (for example Zipit Z2) needs 270deg rotation. > > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes > > hw/framebuffer.c |

[Qemu-devel] [PATCH v2 1/2] pxa2xx_lcd: add proper rotation support

2011-06-01 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes hw/framebuffer.c |2 + hw/pxa2xx_lcd.c | 86 +++-- input.c

[Qemu-devel] [PATCH v2 2/2] Add support for Zipit Z2 machine

2011-06-01 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes, added VMStateDescription for LCD device and AER915, traces clean up. Makefile.target |1 + hw/z2.c | 352 +++ 2 files changed

Re: [Qemu-devel] [PATCH 2/2] Add support for Zipit Z2 machine

2011-05-31 Thread Vasily Khoruzhick
On Wednesday 01 June 2011 02:35:05 Peter Maydell wrote: > On 31 May 2011 15:16, Vasily Khoruzhick wrote: > > +static uint32_t zipit_lcd_transfer(SSISlave *dev, uint32_t value) > > +{ > > +ZipitLCD *z = FROM_SSI_SLAVE(ZipitLCD, dev); > > +if (z->enabled

[Qemu-devel] [PATCH 1/2] pxa2xx_lcd: add proper rotation support

2011-05-31 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick --- hw/framebuffer.c |2 + hw/pxa2xx_lcd.c | 80 - input.c | 34

[Qemu-devel] [PATCH 2/2] Add support for Zipit Z2 machine

2011-05-31 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- Makefile.target |1 + hw/z2.c | 302 +++ 2 files changed, 303 insertions(+), 0 deletions(-) create mode 100644 hw/z2.c diff --git a/Makefile.target b

[Qemu-devel] [PATCH v2] Fix obvious mistake in pxa2xx i2s driver

2011-02-20 Thread Vasily Khoruzhick
RST bit is (1 << 4) bit, not (1 << 3), fix condition that enables i2s if ENB is set and RST is not set. Signed-off-by: Vasily Khoruzhick --- v2: simplify expression hw/pxa2xx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c i

Re: [Qemu-devel] [PATCH] Fix obvious mistake in pxa2xx i2s driver

2011-02-20 Thread Vasily Khoruzhick
On Sunday 20 February 2011 20:24:46 Aurelien Jarno wrote: > The fix looks fine, but the resulting code is probably over > engineered... What about: > > s->enable = (value & 9) == 1; > > ? Looks OK to me. Regards Vasily

[Qemu-devel] Re: [PATCH 1/2] pxa2xx_keypad: enhance emulation of KPAS, KPASMKP regs

2011-02-20 Thread Vasily Khoruzhick
On Tuesday 15 February 2011 15:27:28 Vasily Khoruzhick wrote: > Add emulation of KPAS register and proper emulation of > KPASMKP regs, so now driver supports multipresses and properly > works with Linux driver. > Ping

[Qemu-devel] Re: [PATCH] Fix obvious mistake in pxa2xx i2s driver

2011-02-20 Thread Vasily Khoruzhick
On Monday 14 February 2011 18:59:10 Vasily Khoruzhick wrote: > RST bit is (1 << 3) bit, not (1 << 2), fix condition > that enables i2s if ENB is set and RST is not set. > Ping

[Qemu-devel] [PATCH 2/2] pxa2xx_keypad: Handle 0xe0xx keycodes

2011-02-15 Thread Vasily Khoruzhick
Add handling of 0xe0xx keycodes to pxa2xx_driver. Extended keycodes in keymap should be marked with most significant bit set (i.e. 0x80). Without this patch it's not possible to handle i.e. cursor keys. Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_keypad.c | 10 ++ 1 files ch

[Qemu-devel] [PATCH 1/2] pxa2xx_keypad: enhance emulation of KPAS, KPASMKP regs

2011-02-15 Thread Vasily Khoruzhick
Add emulation of KPAS register and proper emulation of KPASMKP regs, so now driver supports multipresses and properly works with Linux driver. Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_keypad.c | 114 1 files changed, 62 insertions

[Qemu-devel] [PATCH] Fix obvious mistake in pxa2xx i2s driver

2011-02-14 Thread Vasily Khoruzhick
RST bit is (1 << 3) bit, not (1 << 2), fix condition that enables i2s if ENB is set and RST is not set. Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index d966846..68b67ae 100