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