From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KMJMV-0006py-QB for qemu-devel@nongnu.org; Fri, 25 Jul 2008 05:13:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KMJMR-0006oh-W4 for qemu-devel@nongnu.org; Fri, 25 Jul 2008 05:13:18 -0400 Received: from [199.232.76.173] (port=47474 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMJMR-0006oN-FD for qemu-devel@nongnu.org; Fri, 25 Jul 2008 05:13:15 -0400 Received: from an-out-0708.google.com ([209.85.132.242]:18061) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KMJMR-0005dc-4S for qemu-devel@nongnu.org; Fri, 25 Jul 2008 05:13:15 -0400 Received: by an-out-0708.google.com with SMTP id d18so1275214and.130 for ; Fri, 25 Jul 2008 02:13:14 -0700 (PDT) Message-ID: Date: Fri, 25 Jul 2008 11:13:13 +0200 From: "andrzej zaborowski" Subject: Re: [Qemu-devel] [PATCH] Add Apollon (OMAP24xx) board support In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080724230053.GA20704@july> <9c9fda240807250054o7db36912u3f3d11d0a580a91c@mail.gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 2008/7/25 andrzej zaborowski : > 2008/7/25 Kyungmin Park : >>>> @@ -3875,7 +3926,11 @@ static uint32_t omap_sdrc_read(void *opaque, target_phys_addr_t addr) >>>> case 0x68: /* SDRC_DLLB_CTRL */ >>>> case 0x6c: /* SDRC_DLLB_STATUS */ >>>> case 0x70: /* SDRC_POWER */ >>>> + return 0x00; >>>> + >>>> case 0x80: /* SDRC_MCFG_0 */ >>>> + return 0x4000; >>>> + >>> >>> This should be made writable (default value is 0) and the bootloader >>> or the board file (hw/nseries.c) needs to write the correct value >>> there. >> >> Agreed, apollon and omap2420h4 read this value at bootloader, Yes it's >> meanless in qemu. >> it's seted at initial bootloader, but it's not in qemu. If sdrc has >> array value, we can read it > > I mean something like > > uint32_t mcfg0 = (boot_info.ram_size / 0x200000) << 8; /* RAMSIZE */ > > cpu_physical_memory_write(0x68009080, /* SDRC_MCFG_0 */ > (void *) &mcfg0, sizeof(mcfg0)); Actually it's set to half the ram size in SDRC_MCFG_0 and other half in SDRC_MCFG_1 because there are two chips. Nokia bootloader writes the following values: 0x01702019 in 0x68009080 and 0x01702019 in 0x680090b0 Cheers