qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 12/17] lm32: support for creating device tree


From: Michael Walle
Subject: Re: [Qemu-devel] [PATCH 12/17] lm32: support for creating device tree
Date: Fri, 11 Feb 2011 23:40:21 +0100
User-agent: KMail/1.13.5 (Linux/2.6.32-5-686-bigmem; KDE/4.4.5; i686; ; )

Am Freitag 11 Februar 2011, 21:52:17 schrieb Blue Swirl:
> > +static inline void hwsetup_add_uart(struct hwsetup *hw,
> > +        const char *name, uint32_t base, uint32_t irq)
> > +{
> > +    hwsetup_add_u32(hw, 56); /* size */
> > +    hwsetup_add_tag(hw, HWSETUP_TAG_UART);
> > +    hwsetup_add_str(hw, name);
> > +    hwsetup_add_u32(hw, base);
> > +    hwsetup_add_u32(hw, 115200); /* baudrate */
> > +    hwsetup_add_u8(hw, 8); /* databits */
> > +    hwsetup_add_u8(hw, 1); /* stopbits */
> > +    hwsetup_add_u8(hw, 1); /* use_interrupt */
> > +    hwsetup_add_u8(hw, 1); /* block_on_transmit */
> > +    hwsetup_add_u8(hw, 1); /* block_on_receive */
> > +    hwsetup_add_u8(hw, 4); /* rx_buffer_size */
> > +    hwsetup_add_u8(hw, 4); /* tx_buffer_size */
> > +    hwsetup_add_u8(hw, irq);
> > +}
> 
> Overall, this seems to replicate fw_cfg functions, does it match real
> HW or is this just for QEMU?

It is some kind of (proprietary) device tree for the linux port done by 
Theobroma Systems. Maybe i should drop support for it and concentrate only on 
the non-linux BSP and on the milkymist platform...

-- 
Michael



reply via email to

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