qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 0/5] Platform device support


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 0/5] Platform device support
Date: Fri, 20 Jun 2014 09:39:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 20/06/2014 08:43, Peter Crosthwaite ha scritto:
I think a big point of confusion here is you have picked a
not-even-qdevified device for conversion. Boards are still calling
serial_mm_init() directly due to lack of a proper device for Sysbus
serial.

Do you have another device that already QOMified (a MAC or something
perhaps?) that you can convert more minimally to demonstrate the
approach for existing sysbus devs?

Sysbusification of serial would then be a step towards platform-device serial.

Indeed, I would first start with patches that make serial_mm_init a sysbus wrapper. Then, with techniques similar to Peter's work, it should be possible to extend -device and do something like

   -device serial-mmio,memory.addr=0x1f000000,irq=gpio[5]

or something like that.

The only difference is whether you get the information from device tree or command line.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]