Received: from [140.186.70.92] (port=54800 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Po1f7-0003uK-GG for qemu-devel@nongnu.org; Fri, 11 Feb 2011 17:40:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Po1f6-0006MB-BG for qemu-devel@nongnu.org; Fri, 11 Feb 2011 17:40:25 -0500 Received: from mail.serverraum.org ([78.47.150.89]:58917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Po1f6-0006M6-20 for qemu-devel@nongnu.org; Fri, 11 Feb 2011 17:40:24 -0500 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 References: <1297379530-23487-1-git-send-email-michael@walle.cc> <1297379530-23487-13-git-send-email-michael@walle.cc> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201102112340.21684.michael@walle.cc> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: "Edgar E. Iglesias" , Richard Henderson , qemu-devel@nongnu.org, Alexander Graf 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