qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Add Apollon (OMAP24xx) board support


From: andrzej zaborowski
Subject: Re: [Qemu-devel] [PATCH] Add Apollon (OMAP24xx) board support
Date: Fri, 25 Jul 2008 11:13:13 +0200

2008/7/25 andrzej zaborowski <address@hidden>:
> 2008/7/25 Kyungmin Park <address@hidden>:
>>>> @@ -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




reply via email to

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