From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvyck-0007bG-7T for qemu-devel@nongnu.org; Wed, 25 Dec 2013 19:16:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vvycf-0002qV-M3 for qemu-devel@nongnu.org; Wed, 25 Dec 2013 19:16:26 -0500 Received: from [222.73.24.84] (port=3885 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvycf-0002qI-AG for qemu-devel@nongnu.org; Wed, 25 Dec 2013 19:16:21 -0500 Message-ID: <52BB74E5.8010602@cn.fujitsu.com> Date: Thu, 26 Dec 2013 08:14:29 +0800 From: Li Guang MIME-Version: 1.0 References: <1387960503-11838-1-git-send-email-lig.fnst@cn.fujitsu.com> In-Reply-To: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed Subject: Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Peter Crosthwaite , QEMU Developers Peter Maydell wrote: > On 25 December 2013 08:35, liguang wrote: > >> sunxi-linux kernel parse config script >> to do hardware configurations >> >> Signed-off-by: liguang >> --- >> hw/arm/allwinner-a10.c | 18 ++++++++++++++++++ >> hw/arm/cubieboard.c | 2 ++ >> include/hw/arm/allwinner-a10.h | 5 +++++ >> pc-bios/aw-script.bin | Bin 0 -> 50188 bytes >> > What is this? You can't just stick a 50K binary into the > tree with no explanation, I'm afraid. > > it's the approach sunxi-linux kernel config hardware, the binary is actually a transformed text script, and context of script is like: [card0_boot_para] card_ctrl = 0 card_high_speed = 1 card_line = 4 sdc_d1 = port:PF00<2><1> sdc_d0 = port:PF01<2><1> sdc_clk = port:PF02<2><1> sdc_cmd = port:PF03<2><1> sdc_d3 = port:PF04<2><1> sdc_d2 = port:PF05<2><1> [card2_boot_para] card_ctrl = 2 card_high_speed = 1 card_line = 4 sdc_cmd = port:PC06<3><1> sdc_clk = port:PC07<3><1> sdc_d0 = port:PC08<3><1> sdc_d1 = port:PC09<3><1> sdc_d2 = port:PC10<3><1> sdc_d3 = port:PC11<3><1> [twi_para] twi_port = 0 twi_scl = port:PB00<2> twi_sda = port:PB01<2> [uart_para] uart_debug_port = 0 uart_debug_tx = port:PB22<2><1> uart_debug_rx = port:PB23<2><1> ....