Hi Frank,

Am Montag, 21. Juni 2010 11:00:06 schrieb Frank Mölendörp:
> my system has two seperated memory-area's. The first one lies in the
> area 0x10000000 to
> 0x10400000 (4 MB) and the other one lies in 0x20000000 to 0x20400000
> (also 4 MB).
> Is there a way to make it possible to use both RAM-area's?

This is from the file linux/arch/arm/mach-nds/arch.c.
This is a machine with an optional RAM extension:

regards
Wolfgang

static void __init
fixup_nds(struct machine_desc *desc, struct tag *tags,
              char **cmdline, struct meminfo *mi)
{
        mi->bank[0].start = CONFIG_DRAM_BASE;
        mi->bank[0].size  = CONFIG_DRAM_SIZE;
        mi->bank[0].node  = 0;
        mi->nr_banks = 1;
#ifdef CONFIG_NDS_ROM8BIT
        if (gba_activate_ram()) {
                mi->bank[1].start = gba_start;
                mi->bank[1].size  = gba_length;
                mi->bank[1].node  = 0;
                mi->nr_banks = 2;
        }
#endif
}

MACHINE_START(NDS, "Nintendo DS")
        /* Maintainer: Malcolm Parsons <pepsi...@blueyonder.co.uk> */
        .phys_ram       = CONFIG_DRAM_BASE,
        .phys_io        = 0x04000000,
        .init_irq       = nds_init_irq,
        .timer          = &nds_timer,
        .init_machine   = nds_machine_init,
        .fixup          = fixup_nds,
MACHINE_END

-- 
Wahre Worte sind nicht schön - Schöne Worte sind nicht wahr. (Laotse)
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to