[Qemu-devel] [RFC v0 01/10] device_tree: allow offsets for cell properties

2012-09-17 Thread Peter A. G. Crosthwaite
Signed-off-by: Peter A. G. Crosthwaite --- device_tree.c | 10 +- device_tree.h |2 +- hw/arm_boot.c |4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/device_tree.c b/device_tree.c index d7a9b6b..92a383e 100644 --- a/device_tree.c +++ b/device_tree.c

[Qemu-devel] [RFC v0 09/10] microblaze_generic_fdt: first revision

2012-09-17 Thread Peter A. G. Crosthwaite
First revision of fdt generic platform for xilinx microblaze platforms. Adds machine model "microblaze-fdt" which can be used along with the --hw-dtb option to lauch dts driven machine models for microblaze platforms. Signed-off-by: Peter A. G. Crosthwaite --- hw/microblaze/Makefile.o

[Qemu-devel] [RFC v0 07/10] fdt_generic: First revision

2012-09-17 Thread Peter A. G. Crosthwaite
First revision of fdt generic infrastructure. These modules allow for fdt generic machine models, which create machines to match a device tree specification. Signed-off-by: Peter A. G. Crosthwaite --- default-configs/microblaze-softmmu.mak |1 + default-configs/microblazeel-softmmu.mak

[Qemu-devel] [RFC v0 04/10] device_tree: get_prop(): memdup returned properties

2012-09-17 Thread Peter A. G. Crosthwaite
getprop currently return a pointer into the device tree itself. These pointers will be corrupted if the device tree is written to in anyway. To make getprop() safe, duplicate the property so that the value doesnt change over the lifetime of the returned pointer. Signed-off-by: Peter A. G

[Qemu-devel] [RFC v0 08/10] pflash_cfi01: Added fdt generic platform support

2012-09-17 Thread Peter A. G. Crosthwaite
. Signed-off-by: Peter A. G. Crosthwaite --- hw/fdt_generic_devices.c| 45 +++ hw/fdt_generic_devices.h|8 +++ hw/microblaze/Makefile.objs |1 + 3 files changed, 54 insertions(+), 0 deletions(-) create mode 100644 hw

[Qemu-devel] [RFC v0 06/10] device_tree: Extended interface for fdt_generic

2012-09-17 Thread Peter A. G. Crosthwaite
Extended the wrapper interface (around libfdt) for device tree. Node Property getters have been added (qemu_devtree_getprop*) as well as helpers to search/ navigate the nodes of a FDT blob. Signed-off-by: Peter A. G. Crosthwaite --- device_tree.c | 158

[Qemu-devel] [RFC v0 10/10] serial: added fdt generic platform support

2012-09-17 Thread Peter A. G. Crosthwaite
fdt generic platform support for 16550 uarts. Signed-off-by: Peter A. G. Crosthwaite --- hw/fdt_generic_devices.c | 39 +-- 1 files changed, 37 insertions(+), 2 deletions(-) diff --git a/hw/fdt_generic_devices.c b/hw/fdt_generic_devices.c index 91b3c5b

[Qemu-devel] [RFC v0 05/10] qemu-coroutine: Add simple work queue support

2012-09-17 Thread Peter A. G. Crosthwaite
Add a function co_queue_enter_next() which will immediately transfer control to the coroutine at the head of a co queue. This can be used for implementing simple work queues where the manager of a co-queue only needs to enter queued routines one at a time. Signed-off-by: Peter A. G. Crosthwaite

[Qemu-devel] [PATCH v1 6/6] xilinx_timer: Fix a compile error if debug enabled

2012-09-17 Thread Peter A. G. Crosthwaite
From: Chris Wulff There was a missing include of qemu-log and a variable name in a printf was out of date. Signed-off-by: Chris Wulff Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_timer.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/xilinx_timer.c b/hw

[Qemu-devel] [RFC v0 03/10] device_tree: allow property getters to inherit

2012-09-17 Thread Peter A. G. Crosthwaite
If the inherit flag is set, and the specified property is not found, then search the parents for it as well. Signed-off-by: Peter A. G. Crosthwaite --- device_tree.c | 11 --- device_tree.h |4 ++-- hw/arm_boot.c |6 -- 3 files changed, 14 insertions(+), 7 deletions

[Qemu-devel] [RFC v0 02/10] device_tree: return Error* from prop getters

2012-09-17 Thread Peter A. G. Crosthwaite
Rather than exit(1) on fail return an Error*. Clients can then handle errors as they wish. Signed-off-by: Peter A. G. Crosthwaite --- device_tree.c | 25 ++--- device_tree.h |9 +++-- hw/arm_boot.c |8 ++-- 3 files changed, 31 insertions(+), 11 deletions

[Qemu-devel] [PATCH v6 00/13] Ehnahced SSI bus support + M25P80 SPI flash + Xilinx SPI controller

2012-09-17 Thread Peter A. G. Crosthwaite
async io (suggested - Stefan Hajnoczi) (2/4) instantiated two spi flashes instead of one in ml605 ref design (4/4) changed from v1: minor sylistic changes (1/4) converted spi api to modified txrx style (1-3/4) heavily refactored m25p80 model (2/4) Peter A. G. Crosthwaite (13): ssi: Support for

[Qemu-devel] [PATCH v6 01/13] ssi: Support for multiple attached devices

2012-09-17 Thread Peter A. G. Crosthwaite
of all responses from the (mulitple) devices. Signed-off-by: Peter A. G. Crosthwaite --- hw/ssi.c | 24 +--- 1 files changed, 9 insertions(+), 15 deletions(-) diff --git a/hw/ssi.c b/hw/ssi.c index e5f14a0..35d0a04 100644 --- a/hw/ssi.c +++ b/hw/ssi.c @@ -2,6 +2,8

[Qemu-devel] [PATCH v6 03/13] ssi: Added create_slave_no_init()

2012-09-17 Thread Peter A. G. Crosthwaite
Slave creation function that can be used to create an SSI slave without qdev_init() being called. This give machine models a chance to set properties. Signed-off-by: Peter A. G. Crosthwaite --- hw/ssi.c |9 +++-- hw/ssi.h |1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH v6 08/13] m25p80: Initial implementation of SPI flash device

2012-09-17 Thread Peter A. G. Crosthwaite
Added device model for m25p80 style SPI flash family. Signed-off-by: Peter A. G. Crosthwaite --- changed from v4: Added write-1 flag (EEPROM mode). n25q128 table entry indentation fix. updated for new SSI interface. various debug messages cleaned up and added. changed from v3: changed licence to

[Qemu-devel] [PATCH v6 05/13] hw/stellaris: Removed gpio_out init array.

2012-09-17 Thread Peter A. G. Crosthwaite
setters with direct calls to qdev_connect_gpio_out(). Signed-off-by: Peter A. G. Crosthwaite --- hw/stellaris.c | 26 -- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index 01050d1..a7b68f4 100644 --- a/hw/stellaris.c

[Qemu-devel] [PATCH v6 10/13] petalogix-ml605: added SPI controller with n25q128

2012-09-17 Thread Peter A. G. Crosthwaite
Added SPI controller to the reference design, with two n25q128 spi-flashes connected. Signed-off-by: Peter A. G. Crosthwaite --- Changed since v5: Removed redundant (char*) cast with qdev_get_prop_string hw/petalogix_ml605_mmu.c | 27 +++ 1 files changed, 27

[Qemu-devel] [PATCH v6 12/13] xilinx_zynq: Added SPI controllers + flashes

2012-09-17 Thread Peter A. G. Crosthwaite
Added the two SPI controllers to the zynq machine model. Attached two SPI flash devices to each controller. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_zynq.c | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_zynq.c b

[Qemu-devel] [PATCH v6 13/13] MAINTAINERS: Added maintainerships for SSI

2012-09-17 Thread Peter A. G. Crosthwaite
Added maintainership for SSI, M25P80 and the Xilinx SPI controllers. Signed-off-by: Peter A. G. Crosthwaite --- MAINTAINERS |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 61f8b45..0ebe247 100644 --- a/MAINTAINERS +++ b

[Qemu-devel] [PATCH v6 02/13] ssi: Implemented CS behaviour

2012-09-17 Thread Peter A. G. Crosthwaite
Added default CS behaviour for SSI slaves. SSI devices can set a property to enable CS behaviour which will create a GPIO on the device which is the CS. Tristating of the bus on SSI transfers is implemented. Signed-off-by: Peter A. G. Crosthwaite --- Changed since v5: Addressed PMM review

[Qemu-devel] [PATCH v6 04/13] qdev: allow multiple qdev_init_gpio_in() calls

2012-09-17 Thread Peter A. G. Crosthwaite
an index selecter is not possible. Signed-off-by: Peter A. G. Crosthwaite --- changed since v5: moved implementation to irq.c as per PMM review hw/irq.c | 17 ++--- hw/irq.h | 11 ++- hw/qdev.c |6 +++--- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PATCH v6 06/13] stellaris: Removed SSI mux

2012-09-17 Thread Peter A. G. Crosthwaite
Removed the explicit SSI mux and wired the CS line directly up to the SSI devices. Signed-off-by: Peter A. G. Crosthwaite --- hw/ssd0323.c |1 + hw/ssi-sd.c|1 + hw/stellaris.c | 98 ++-- 3 files changed, 19 insertions(+), 81

[Qemu-devel] [PATCH v6 07/13] hw: Added generic FIFO API.

2012-09-17 Thread Peter A. G. Crosthwaite
Added a FIFO API that can be used to create and operate byte FIFOs. Signed-off-by: Peter A. G. Crosthwaite --- hw/Makefile.objs |1 + hw/fifo.c| 78 ++ hw/fifo.h| 47 3 files changed

[Qemu-devel] [PATCH v6 09/13] xilinx_spi: Initial impl. of Xilinx SPI controller

2012-09-17 Thread Peter A. G. Crosthwaite
Device model for xilinx XPS SPI controller (v2.0) Signed-off-by: Peter A. G. Crosthwaite --- changed from v4 (Near total rewrite): removed timer delay. This was innacturate anyways removed for simlicity. updated for new SSI interface. factored out txrx fifos using fifo.h changed from v3

[Qemu-devel] [PATCH v6 11/13] xilinx_spips: Xilinx Zynq SPI cntrlr device model

2012-09-17 Thread Peter A. G. Crosthwaite
Added device model for the Xilinx Zynq SPI controller (SPIPS). Signed-off-by: Peter A. G. Crosthwaite --- hw/arm/Makefile.objs |1 + hw/xilinx_spips.c| 352 ++ 2 files changed, 353 insertions(+), 0 deletions(-) create mode 100644 hw

[Qemu-devel] [RFC PATCH 0/7] Zynq-7000 EPP platform model

2012-01-23 Thread Peter A. G. Crosthwaite
for the Zynq platform. The next two are changes/additions to the qemu boot process to faciliate booting of zynq-linux. The final patch is the initial revision of the zynq machine model. Most of this work was originally authored by Xilinx, as indicated by (c) notices in added files. Peter A. G

[Qemu-devel] [RFC PATCH 1/7] cadence_uart: first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Device model for Cadence UART Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/cadence_uart.c | 619 + 2 files changed, 620 insertions(+), 0 deletions(-) create mode 100644 hw/cadence_uart.c diff --git a

[Qemu-devel] [RFC PATCH 7/7] xilinx_zynq: machine model first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Xilinx zynq-7000 machine model. Also includes device model for the zynq-specific system level control register (SLCR) module. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.target

[Qemu-devel] [RFC PATCH 3/7] cadence_wdt: first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Device model for cadence watchdog timer (WDT) Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/cadence_wdt.c | 260 ++ 2 files changed, 261 insertions(+), 0 deletions(-) create mode 100644 hw/cadence_wdt.c diff --git

[Qemu-devel] [PATCH 7/7] xilinx_zynq: machine model first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Xilinx zynq-7000 machine model. Also includes device model for the zynq-specific system level control register (SLCR) module. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/xilinx_zynq.c | 192 ++ hw/zynq_arm_sysctl.c | 546

[Qemu-devel] [RFC PATCH 4/7] cadence_gem: first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Device mode for cadence gem ethernet controller. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/cadence_gem.c | 1441 ++ 2 files changed, 1442 insertions(+), 0 deletions(-) create mode 100644 hw/cadence_gem.c diff

[Qemu-devel] [RFC PATCH 6/7] arm_boot: added initrd address override

2012-01-23 Thread Peter A. G. Crosthwaite
parameterised the initrd load address for arm boot process. Machine models can populate the initrd field with a non-zero address to specifiy that the default value of 0x00d0 should be overridden. Signed-off-by: Peter A. G. Crosthwaite --- hw/arm-misc.h |2 ++ hw/arm_boot.c | 12

[Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-23 Thread Peter A. G. Crosthwaite
Added linux specific kernel dtb option. This option can be specified to inject an argument device tree blob (dtb) into linux. Signed-off-by: Peter A. G. Crosthwaite --- qemu-options.hx |3 +++ vl.c|4 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qemu

[Qemu-devel] [RFC PATCH 2/7] cadence ttc: first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Device model for cadence triple timer counter (TTC) Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/cadence_ttc.c | 545 ++ 2 files changed, 546 insertions(+), 0 deletions(-) create mode 100644 hw/cadence_ttc.c diff

[Qemu-devel] [PATCH v1 0/2] Xilinx Zynq PL330 support

2012-03-28 Thread Peter A. G. Crosthwaite
/pl330.c. Peter A. G. Crosthwaite (2): pl330: initial version xilinx_zynq: added pl330 to machine model MAINTAINERS |1 + Makefile.target |1 + hw/pl330.c | 1395 ++ hw/xilinx_zynq.c | 18 + 4 files changed, 1415 insertions

[Qemu-devel] [PATCH v1 2/2] xilinx_zynq: added pl330 to machine model

2012-03-28 Thread Peter A. G. Crosthwaite
Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_zynq.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c index 7290c64..033ba09 100644 --- a/hw/xilinx_zynq.c +++ b/hw/xilinx_zynq.c @@ -61,6 +61,9 @@ static void

[Qemu-devel] [PATCH v1 1/2] pl330: initial version

2012-03-28 Thread Peter A. G. Crosthwaite
Device model for Primecell PL330 dma controller. Signed-off-by: Peter A. G. Crosthwaite --- MAINTAINERS |1 + Makefile.target |1 + hw/pl330.c | 1395 +++ 3 files changed, 1397 insertions(+), 0 deletions(-) create mode 100644

[Qemu-devel] [RFC PATCH v1 0/4] SPI bus support + Xilinx SPI controller

2012-03-29 Thread Peter A. G. Crosthwaite
two (as per the controllers functionality) Patch 4 instantiates the XPS SPI controller in the petalogix ML605 reference platform and connects one m25p80 to it. Peter A. G. Crosthwaite (4): SPI: initial support m25p80: initial verion xilinx_spi: initial version petalogix-ml605: added spi

[Qemu-devel] [RFC PATCH v1 4/4] petalogix-ml605: added spi controller with m25p80

2012-03-29 Thread Peter A. G. Crosthwaite
Added spi controller to the reference design, with a single cs line and a m25p80 style spi-flash connected Signed-off-by: Peter A. G. Crosthwaite --- hw/petalogix_ml605_mmu.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/hw/petalogix_ml605_mmu.c b

[Qemu-devel] [RFC PATCH v1 3/4] xilinx_spi: initial version

2012-03-29 Thread Peter A. G. Crosthwaite
device model for xilinx XPS SPI controller (v2.0) Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/xilinx_spi.c | 477 +++ 2 files changed, 478 insertions(+), 0 deletions(-) create mode 100644 hw/xilinx_spi.c diff

[Qemu-devel] [RFC PATCH v1 1/4] SPI: initial support

2012-03-30 Thread Peter A. G. Crosthwaite
defined spi bus and spi slave QOM interfaces. Inspired by and loosley based on existing I2C framework. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/spi.c| 175 +++ hw/spi.h| 86

[Qemu-devel] [RFC PATCH v1 2/4] m25p80: initial verion

2012-03-30 Thread Peter A. G. Crosthwaite
Added device model for m25p80 SPI flash Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/m25p80.c | 495 +++ 2 files changed, 496 insertions(+), 0 deletions(-) create mode 100644 hw/m25p80.c diff --git a

[Qemu-devel] [PATCH v2 0/2] Xilinx Zynq PL330 support

2012-03-30 Thread Peter A. G. Crosthwaite
/pl330.c. Changed from v1: minor code formatting errors (1/2) added GPLv2 copyright to 330 model (1/2) Peter A. G. Crosthwaite (2): pl330: initial version xilinx_zynq: added pl330 to machine model MAINTAINERS |1 + Makefile.target |1 + hw/pl330.c | 1403

[Qemu-devel] [PATCH v2 2/2] xilinx_zynq: added pl330 to machine model

2012-03-30 Thread Peter A. G. Crosthwaite
Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_zynq.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c index 7290c64..033ba09 100644 --- a/hw/xilinx_zynq.c +++ b/hw/xilinx_zynq.c @@ -61,6 +61,9 @@ static void

[Qemu-devel] [PATCH v2 1/2] pl330: initial version

2012-03-30 Thread Peter A. G. Crosthwaite
Device model for Primecell PL330 dma controller. Signed-off-by: Peter A. G. Crosthwaite Signed-off-by: Kirill Batuzov --- changed from v1: GPLv2 license some code formatting fixes MAINTAINERS |1 + Makefile.target |1 + hw/pl330.c | 1403

[Qemu-devel] [PATCH 1/2] xilinx.h: Added missing includes

2011-08-22 Thread Peter A. G. Crosthwaite
Added some missing #includes for this file. Previously this file relied on its clients to pre-include its dependencies. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/xilinx.h b/hw/xilinx.h index 090e6f7

[Qemu-devel] [PATCH 2/2] xilinx: removed microbalze_pic_init from xilinx.h

2011-08-22 Thread Peter A. G. Crosthwaite
This is a microblaze target specific function that belongs outside of xilinx.h (which is a collection of target independent device model instantiator functions) Signed-off-by: Peter A. G. Crosthwaite --- hw/microblaze_pic_cpu.c |2 +- hw/microblaze_pic_cpu.h |8 hw

[Qemu-devel] [PATCH V1] cadence_ttc: changed master clock frequency

2012-05-28 Thread Peter A. G. Crosthwaite
Change the timer clock frequency to 133MHz which is correct. the old 2.5MHz value was for the pre-silicon emulation platform. Signed-off-by: Peter A. G. Crosthwaite --- hw/cadence_ttc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/cadence_ttc.c b/hw/cadence_ttc.c

[Qemu-devel] [RFC PATCH V1 0/2] Arm Boot Patches

2012-05-31 Thread Peter A. G. Crosthwaite
argument. Means you can use a dtb with a command line already present and boot without QEMU nuking your command line. The patches are independent. A block on patch one whould not block patch 2 and vice versa. Sent as one series for reviewer convenience. Peter A. G. Crosthwaite (2): arm_boot

[Qemu-devel] [RFC PATCH V1 1/2] arm_boot: added linux switch

2012-05-31 Thread Peter A. G. Crosthwaite
Added a switch to tell the bootloader that the image is linux and should be bootstrapped as such. This is needed to boot an elf that is linux. Syntax would be: qemu-system-arm ... -kernel linux.elf -machine linux=on Signed-off-by: Peter A. G. Crosthwaite --- hw/arm_boot.c |1 + qemu

[Qemu-devel] [RFC PATCH V1 2/2] arm_boot: conditionalised dtb command line update

2012-05-31 Thread Peter A. G. Crosthwaite
The dtb command line should only be overwritten if the user provides a command line. Otherwise whatever command line was in the dtb should stay unchanged. Signed-off-by: Peter A. G. Crosthwaite --- hw/arm_boot.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a

[Qemu-devel] [PATCH V3 0/2] Xilinx Zynq PL330 support

2012-05-31 Thread Peter A. G. Crosthwaite
. changed since v2: addressed reviewer comments from Igor mitsyanko and Peter Maydell (1/2) Peter A. G. Crosthwaite (2): pl330: initial version xilinx_zynq: added pl330 to machine model Makefile.target |1 + hw/pl330.c | 1411

[Qemu-devel] [PATCH V3 2/2] xilinx_zynq: added pl330 to machine model

2012-05-31 Thread Peter A. G. Crosthwaite
Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_zynq.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c index 7290c64..033ba09 100644 --- a/hw/xilinx_zynq.c +++ b/hw/xilinx_zynq.c @@ -61,6 +61,9 @@ static void

[Qemu-devel] [PATCH V3 1/2] pl330: initial version

2012-05-31 Thread Peter A. G. Crosthwaite
Device model for Primecell PL330 dma controller. Signed-off-by: Peter A. G. Crosthwaite Signed-off-by: Kirill Batuzov --- changed from v2 (in order of diff appearance): GPL version changed to v2 or later Register and field names changed to match TRM id field corrected PL330ChanState enum

[Qemu-devel] [PATCH v4] target-microblaze: lwx/swx: first implementation

2012-05-31 Thread Peter A. G. Crosthwaite
Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: simplified tcg local variable usage aqcross branch changed from v2: fixed tcg local variable usage across branch reworked carry logic (with new write_carryi() function) made LOG_DIS show lwx swx properly changed from v1: implemented

[Qemu-devel] [PATCH V4 0/5] Ehnahced SSI bus support + M25P80 SPI flash + Xilinx SPI controller

2012-06-04 Thread Peter A. G. Crosthwaite
) (2/4) instantiated two spi flashes instead of one in ml605 ref design (4/4) changed from v1: minor sylistic changes (1/4) converted spi api to modified txrx style (1-3/4) heavily refactored m25p80 model (2/4) Peter A. G. Crosthwaite (5): SSI: Built in multiple device support m25p80: initial

[Qemu-devel] [PATCH V4 1/5] SSI: Built in multiple device support

2012-06-04 Thread Peter A. G. Crosthwaite
Added support for multiple devices attached to a single SSI bus (Previously SSI masters with multiple slaves were emulated as multiple point to point SSI busses) Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: added ssi_create_slave_noinit changed from v2: This patch is new (totally

[Qemu-devel] [PATCH V4 2/5] m25p80: initial verion

2012-06-04 Thread Peter A. G. Crosthwaite
Added device model for m25p80 SPI flash Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: changed licence to v2 or later (PMM review) generalised device model - rather than being fixed to the fl064k, it can handle a wide range of m25p80 devices refactored erase commands (previously

[Qemu-devel] [PATCH V4 3/5] xilinx_spi: initial version

2012-06-04 Thread Peter A. G. Crosthwaite
device model for xilinx XPS SPI controller (v2.0) Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: typedef'd struct XilinxSPI changed unsigned int -> uin32_t removed unused vars (c_fifo_exist and cmd_ongoing) txfifo_reset removed duplicate s->regs[R_SPISR] &= ~SR_TX_F

[Qemu-devel] [PATCH V4 5/5] stellaris: Updated spi bus implementation

2012-06-04 Thread Peter A. G. Crosthwaite
Setup the stellaris_ssi_bus device to use a single multi-slave ssi bus instead of two busses. Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: This patch is new hw/stellaris.c | 17 +++-- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/hw/stellaris.c b

[Qemu-devel] [PATCH V4 4/5] petalogix-ml605: added spi controller with m25p80

2012-06-04 Thread Peter A. G. Crosthwaite
Added spi controller to the reference design, with a single cs line and a m25p80 style spi-flash connected Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: set spi flashes as being fl06k changed from v2: changed spi -> ssi added two spi flashes to machine model instead of

[Qemu-devel] [PATCH] target-microblaze: fix swx build breakage

2012-06-04 Thread Peter A. G. Crosthwaite
The lazy initialisation of r_check was throwing an error on --enable-debug. Removed the lazy initialisation of r_check and swx_addr. Signed-off-by: Peter A. G. Crosthwaite --- target-microblaze/translate.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target

[Qemu-devel] [PATCH v3 0/4] *** SUBJECT HERE ***

2012-06-06 Thread Peter A. G. Crosthwaite
[Original cover by Igor] First patch introduces standard SD host controller model. This is accumulated version of my previous patch I sent a while ago and a recent SDHCI patch by Peter A. G. Crosthwaite. Second patch introduces Exynos4210-specific SDHCI built on top of standard SDHCI model. [New

[Qemu-devel] [PATCH v3 3/4] vl.c: allow for reapeated -sd arguments

2012-06-06 Thread Peter A. G. Crosthwaite
Allows for repeating of -sd arugments in the same way -pflash and -mtdblock can be repeated. Signed-off-by: Peter A. G. Crosthwaite --- vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 23ab3a3..a381e90 100644 --- a/vl.c +++ b/vl.c @@ -2437,7

[Qemu-devel] [PATCH v3 4/4] xilinx_zynq: Added sdhci controllers

2012-06-06 Thread Peter A. G. Crosthwaite
Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_zynq.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c index 7290c64..42b6e69 100644 --- a/hw/xilinx_zynq.c +++ b/hw/xilinx_zynq.c @@ -130,6 +130,18 @@ static void

[Qemu-devel] [PATCH v3 2/4] exynos4210: introduce Exynos4210 SD host controller model

2012-06-06 Thread Peter A. G. Crosthwaite
From: Igor Mitsyanko Exynos4210 SD/MMC host controller is based on SD association standart host controller ver. 2.00 Signed-off-by: Igor Mitsyanko --- Makefile.target |1 + hw/exynos4210.c | 20 +++ hw/exynos4210_sdhci.c | 438

[Qemu-devel] [PATCH v2 00/11] Xilinx Devs: refactored device and property names

2012-06-12 Thread Peter A. G. Crosthwaite
provide a translation layer to change from Xilinx names to QEMU names. Peter A. G. Crosthwaite (11): xilinx_uartlite: changed device name xilinx_timer: added default frequency xilinx_timer: changed nr_timers to one_timer_only xilinx_timer: changed device name xilinx_intc: changed device name

[Qemu-devel] [PATCH v2 01/11] xilinx_uartlite: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-uartlite. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/petalogix_s3adsp1800_mmu.c |2 +- hw/xilinx_uartlite.c |5 +++-- 2 files changed, 4 insertions(+), 3 deletions

[Qemu-devel] [PATCH v2 09/11] xilinx_axienet: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,axi-ethernet. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_axienet.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH v2 04/11] xilinx_timer: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-timer. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |2 +- hw/xilinx_timer.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xilinx.h b/hw

[Qemu-devel] [PATCH v2 07/11] xilinx_ethlite: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-ethernetlite. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_ethlite.c |5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH v2 11/11] xilinx_axidma: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,axi-dma. This is the exact name of the device in the Xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h|2 +- hw/xilinx_axidma.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xilinx.h b/hw

[Qemu-devel] [PATCH v2 05/11] xilinx_intc: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-intc. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |2 +- hw/xilinx_intc.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xilinx.h b/hw

[Qemu-devel] [PATCH v2 08/11] xilinx_axienet: droped the c_ on parameters

2012-06-12 Thread Peter A. G. Crosthwaite
Even though the xilinx tools do have C_ on all params by default, drop this for consistency with all the other xilinx IP (I.E. param names are the xilinx names without the C_ prefix) Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_axienet.c |4 ++-- 2

[Qemu-devel] [PATCH v2 10/11] xilinx_axidma: (un)reversed irq initialisation

2012-06-12 Thread Peter A. G. Crosthwaite
The axidma irq orders are reversed in both the device model and the instantion. Undid both reversal (for no net change). Also needs to be reversed for consistency with Xilinx tools IRQ listing. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h|4 ++-- hw/xilinx_axidma.c |2

[Qemu-devel] [PATCH v2 06/11] xilinx_ethlite: tweaked naming of ping-pong props

2012-06-12 Thread Peter A. G. Crosthwaite
Changed "txpingpong" prop to "tx-ping-pong". Same for rx. This is done to make the property name exactly match what is output by the xilinx tools for this IP. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_ethlite.c |4 ++--

[Qemu-devel] [PATCH v2 03/11] xilinx_timer: changed nr_timers to one_timer_only

2012-06-12 Thread Peter A. G. Crosthwaite
The configurable property for this IP in the Xilinx tools is a boolean switch "one-timer-only" that flicks this timer from being dual channel to single. Updated QEMU to work the same way for better match with the IP core and its TRM. Signed-off-by: Peter A. G. Crosthwait

[Qemu-devel] [PATCH v2 02/11] xilinx_timer: added default frequency

2012-06-12 Thread Peter A. G. Crosthwaite
Added a reasonable default frequency for the xilinx timer (the 62MHz from s3adsp machine model). Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index 3ab2f2b..e9fde28

[Qemu-devel] [RFC v0 0/8] QOMify AXI stream for Xilinx AXI ethernet/DMA

2012-06-13 Thread Peter A. G. Crosthwaite
P8 changes the names of all the types etc to better match AXI stream Paolo Bonzini (2): qom: revamp interfaces xilinx: remove PROP_PTR properties Peter A. G. Crosthwaite (6): xilinx_axidma: Added missing TypeInfo object: create default canonical paths for orphans object: make interfaces co

[Qemu-devel] [RFC v0 1/8] qom: revamp interfaces

2012-06-13 Thread Peter A. G. Crosthwaite
From: Paolo Bonzini This commit is composed of several changes: 1) it provides a complete set of macros that serve as building blocks for the definition of Interface types. 2) make Interface public. This is because this type serves as the base class for the actual implementation objects that a

[Qemu-devel] [RFC v0 6/8] xilinx dont cast to interface types with links

2012-06-13 Thread Peter A. G. Crosthwaite
Something is broken with casting to an interface type then setting a link. Cast these two to object for linking instead and it all works. Needs investigation why. Signed-off-by: Peter A. G. Crosthwaite --- hw/petalogix_ml605_mmu.c |4 ++-- hw/xilinx.h |4 ++-- 2 files

[Qemu-devel] [RFC v0 7/8] petalogix_ml605_mmu: fixed qdev create for dma

2012-06-13 Thread Peter A. G. Crosthwaite
The qdev name was wrong, fixed. This will fold into a patch 2 of this series, but creating seperately for ease of review and diff tracking. Signed-off-by: Peter A. G. Crosthwaite --- hw/petalogix_ml605_mmu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw

[Qemu-devel] [RFC v0 8/8] axidma: renamed interconnect to axi-stream

2012-06-13 Thread Peter A. G. Crosthwaite
The "axidma peer" connection is really the axi stream interface. renamed appropriately. Signed-off-by: Peter A. G. Crosthwaite --- hw/axi-stream.c | 15 +++ hw/axi-stream.h | 35 +++ hw/microblaze/Makefile.objs |

[Qemu-devel] [RFC v0 3/8] xilinx_axidma: Added missing TypeInfo

2012-06-13 Thread Peter A. G. Crosthwaite
Will fold into previous patch on next revision, but made seperate for review of interdiff Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_axidma.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_axidma.c b/hw/xilinx_axidma.c index b82c02e..267b19b

[Qemu-devel] [RFC v0 4/8] object: create default canonical paths for orphans

2012-06-13 Thread Peter A. G. Crosthwaite
have bogus paths (apparently). Signed-off-by: Peter A. G. Crosthwaite --- qom/object.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qom/object.c b/qom/object.c index e6c3cfb..1eba795 100644 --- a/qom/object.c +++ b/qom/object.c @@ -983,6 +983,13 @@ gchar

[Qemu-devel] [RFC v0 2/8] xilinx: remove PROP_PTR properties

2012-06-13 Thread Peter A. G. Crosthwaite
From: Paolo Bonzini Signed-off-by: Paolo Bonzini --- hw/petalogix_ml605_mmu.c | 17 +++ hw/xilinx.h | 22 --- hw/xilinx_axidma.c | 39 +++--- hw/xilinx_axidma.h | 52

[Qemu-devel] [RFC v0 5/8] object: make interfaces concrete

2012-06-13 Thread Peter A. G. Crosthwaite
. Signed-off-by: Peter A. G. Crosthwaite --- qom/object.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qom/object.c b/qom/object.c index 1eba795..c3a7a47 100644 --- a/qom/object.c +++ b/qom/object.c @@ -191,7 +191,7 @@ static void type_class_interface_init(TypeImpl *ti

[Qemu-devel] [PATCH v1 0/4] Standard SD host controller model

2012-06-13 Thread Peter A. G. Crosthwaite
[Original cover by Igor] First patch introduces standard SD host controller model. This is accumulated version of my previous patch I sent a while ago and a recent SDHCI patch by Peter A. G. Crosthwaite. Second patch introduces Exynos4210-specific SDHCI built on top of standard SDHCI model

[Qemu-devel] [PATCH v1 2/4] exynos4210: Added SD host controller model

2012-06-13 Thread Peter A. G. Crosthwaite
From: Igor Mitsyanko Custom Exynos4210 SD/MMC host controller, based on SD association standard host controller ver. 2.00. Signed-off-by: Igor Mitsyanko --- changed from v3: rebased for new Makefile system fixed commit msg typo (Andreas review) hw/arm/Makefile.objs |1 + hw/exynos4210.c

[Qemu-devel] [PATCH v1 3/4] vl.c: allow for repeated -sd arguments

2012-06-13 Thread Peter A. G. Crosthwaite
Allows for repeating of -sd arugments in the same way as -pflash and -mtdblock. Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: fixed commit msg typo vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 204d85b..b6d624b 100644 --- a/vl.c

[Qemu-devel] [PATCH v1 4/4] xilinx_zynq: Added SD controllers

2012-06-13 Thread Peter A. G. Crosthwaite
The Xilinx Zynq device has two SDHCI controllers. Added to the machine model. Signed-off-by: Peter A. G. Crosthwaite --- changed from v3: fixed indentation tweaked commit msg hw/xilinx_zynq.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_zynq.c

[Qemu-devel] [PATCH v1 0/2] Xilinx Timer updates

2012-06-15 Thread Peter A. G. Crosthwaite
Patch 1 is trival, just deleted a redundant include that shouldn't be there. Patch 2 is a major bugfix for Microblaze platforms - the timer was deadlocking the system. Peter A. G. Crosthwaite (2): xilinx_timer: Removed include of qemu-timer xilinx_timer: Fixed deadlock issue

[Qemu-devel] [PATCH v1 1/2] xilinx_timer: Removed include of qemu-timer

2012-06-15 Thread Peter A. G. Crosthwaite
The Xilinx timer does not interact with the qemu_timer API, so dont include it. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_timer.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index 0683ce1..e8b7a59 100644 --- a/hw

[Qemu-devel] [PATCH v1 2/2] xilinx_timer: Fixed deadlock issue

2012-06-15 Thread Peter A. G. Crosthwaite
set_limit. Changed the call to set_count() to an equivalent call of set_limit() instead, which brings the workaround into play. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c

[Qemu-devel] [PATCH v1 0/3] QOMify AXI stream for Xilinx AXI ethernet/DMA

2012-06-16 Thread Peter A. G. Crosthwaite
. P2 is all the device-land stuff. Anthony Liguori (1): qom: reimplement Interfaces Peter A. G. Crosthwaite (2): xilinx_axi*: Re-implemented interconnect qom: Converged dynamic cast for interfaces & objs hw/Makefile.objs |1 + hw/petalogix_ml605_mmu.c | 24 +++-- hw/stre

[Qemu-devel] [PATCH v1 1/3] qom: reimplement Interfaces

2012-06-16 Thread Peter A. G. Crosthwaite
From: Anthony Liguori The current implementation of Interfaces is poorly designed. Each interface that an object implements end up being an object that's tracked by the implementing object. There's all sorts of gymnastics to deal with casting between these objects. By an interface shouldn't be

[Qemu-devel] [PATCH v1 3/3] qom: Converged dynamic cast for interfaces & objs

2012-06-16 Thread Peter A. G. Crosthwaite
(), when link are set, which pretty much makes linking to interfaces impossible. So either: 1: This patch 2: Explictly test objects/classes for interfacage in the link setting code 3: Ban linking to interfaces Signed-off-by: Peter A. G. Crosthwaite --- include/qemu/object.h | 20

[Qemu-devel] [PATCH v1 2/3] xilinx_axi*: Re-implemented interconnect

2012-06-16 Thread Peter A. G. Crosthwaite
Re-implemented the interconnect between the Xilinx AXI ethernet and DMA controllers. A QOM interface "stream" is created, for the two stream interfaces. As per Edgars request, this is designed to be more generic than AXI-stream, so in the future we may see more clients of this interface beyond AXI

[Qemu-devel] [PATCH v1 0/3] Xilinx-Zynq boot process patches

2012-04-01 Thread Peter A. G. Crosthwaite
zynq. Peter A. G. Crosthwaite (3): xilinx_zynq: added smp support arm_boot: parameterized intird and dtb locations xilinx_zynq: set initrd and dtb locations hw/arm-misc.h|8 ++ hw/arm_boot.c| 34 --- hw/xilinx_zynq.c | 66

[Qemu-devel] [PATCH v1 2/3] arm_boot: parameterized intird and dtb locations

2012-04-01 Thread Peter A. G. Crosthwaite
Added fields that allows a machine model to specify where the initrd and dtb are loaded. Leaving the fields 0 will use to old default values (previously hardcoded in arm_boot.c) Signed-off-by: Peter A. G. Crosthwaite --- hw/arm-misc.h |8 hw/arm_boot.c | 34

<    1   2   3   >