See this article (http://www.simtec.co.uk/products/SWLINUX/files/
booting_article.html#d0e287) should give you an idea.

So for example, if you have 4 sdram banks, your bootloader should do
something like:-

=======================================
for (i = 0; i < target_info.nr_banks; i++)
        {
                tag->hdr.tag = ATAG_MEM;
                tag->hdr.size = tag_size(tag_mem32);
                tag->u.mem.start = target_info.bank[i].sdram_base;
                tag->u.mem.size =  target_info.bank[i].sdram_size;
                tag = tag_next(tag);
        }
===============================================

If the 3rd bank with 128MB memory and has the physical address region
you mentioned ( ie 0x81000000 -
0x81200000), then you should correct/modify
target_info.bank[3].sdram_size accordingly (i.e
target_info.bank[3].sdram_size = 126MB).

Now the kernel will not use that chunk of memory and you can use it
via ioremap().
Hope this helped.

Thanks,
KT

On Oct 11, 3:37 am, Madhu Chinakonda <madhu.chinako...@gmail.com>
wrote:
> Hi All,
>
> Is there a way I can reserve  physical memory region ie 0x81000000 -
> 0x81200000 which kernel
> should not use for other memory allocation while I can access the reserved
> mem by ioremap.
>
> Regards,
> Madhu

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to