Ignore:
Timestamp:
Sep 11, 2009, 5:13:42 PM (11 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 5, master
Children:
507d382
Parents:
1b290ce7
Message:

2009-09-11 Till Straumann <strauman@…>

  • Makefile.am, preinstall.am, irq/no_pic.c (REMOVED), irq/irq.h, irq/irq_init.c: use openpic from 'shared' area instead of no_pic.
  • inlude/psim.h: use openpic from 'shared' area instead of no_pic. Added 'extern' declaration for (linker-script defined) RamBase? and RamSize? symbols. Let CPP macros expand to these symbols instead of static constants. Added register definitions for OpenPIC in the register area. Added register definitions for ethernet controller in the register area.
  • startup/linkcmds: Increased RamSize? to 16M. Increased 'RAM' memory region to 32M (there is really no disadvantage in making this large). Added comment explaining the inter-relation between RamSize?, the size of the memory region, the device-tree property "oea-memory-size" and the DBAT setting.
  • tools/psim-shared: Try to determine RamSize? from executable and set 'oea-memory-size' accordingly. May be overridden if 'RAM_SIZE' envvar is set. Added openpic to device-tree. Added ethernet controller to device-tree (commented because a PSIM patch is currently required to use this device).
  • startup/bspstart: Increase DBAT0 mapping to size of 32M.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/startup/linkcmds

    r1b290ce7 rb094233  
    1818
    1919RamBase = DEFINED(RamBase) ? RamBase : 0x0;
    20 RamSize = DEFINED(RamSize) ? RamSize : 8M;
     20/*
     21 * make sure device tree (property /openprom/options/oea-memory-size)
     22 * provides at least 'RamSize'.
     23 * Also, the BATs must at map at least 'RamSize' (currently, they
     24 * map 32M -- see startup/bspstart.c).
     25 * Furthermore, the RAM region must be large enough (there is no
     26 * disadvantage in making that one very large as long as it doesn't
     27 * overlap another memory area).
     28 *
     29 */
     30RamSize = DEFINED(RamSize) ? RamSize : 16M;
    2131
    2232MEMORY
    2333  {
    24         RAM       : ORIGIN = 0, LENGTH = 8M
     34        RAM       : ORIGIN = 0, LENGTH = 32M
    2535        PSIM_REGS : ORIGIN = 0x0c000000, LENGTH = 16M
    2636        VECTORS   : ORIGIN = 0xFFF00000, LENGTH = 0x20000
Note: See TracChangeset for help on using the changeset viewer.