>>>>> "Peter" == Peter Maydell <peter.mayd...@linaro.org> writes:

Peter> On 23 April 2012 00:31, Peter Chubb <peter.ch...@nicta.com.au>
Peter> wrote:
>> Board support for Kyoto Micro's KZM-ARM11-01, an evaluation board
>> built around the FreeScale i.MX31.

>> +    if (serial_hds[3]) { 
>> +         serial_mm_init(address_space_mem, KZM_FPGA, 0, 
>> +                        qdev_get_gpio_in(dev, 52), 
>> +                       14745600, serial_hds[3], 
>> +                       DEVICE_NATIVE_ENDIAN); 
>> +     } 
>> +    if (serial_hds[2]) { /* touchscreen */ 
>> +        serial_mm_init(address_space_mem, KZM_FPGA+0x10, 0, 
>> +                       qdev_get_gpio_in(dev, 52), 
>> +                       14745600, serial_hds[2], 
>> +                       DEVICE_NATIVE_ENDIAN); 
>> +    }

Peter> Are these two devices really on the same IRQ?

Yes.  A single interrupt line comes from the FPGA into the AVIC.
Inside the FPGA the interrupts for the UARTs, SD card and NAND flash
are connected to that single interrupt line.
The non-touchscreen FPGA UART isn't mentioned in the KZM manual, but
is available on the board as a debug port.

To avoid confusion I think I'll just get rid of it.


--
Dr Peter Chubb                                  peter.chubb AT nicta.com.au
http://www.ssrg.nicta.com.au          Software Systems Research Group/NICTA

Reply via email to