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/irq/irq.h

    r1b290ce7 rb094233  
    3333 */
    3434
     35/*
     36 * PCI IRQ handlers related definitions
     37 * CAUTION : BSP_PCI_IRQ_LOWEST_OFFSET should be equal to OPENPIC_VEC_SOURCE
     38 */
     39#define BSP_PCI_IRQ_NUMBER              (16)
     40#define BSP_PCI_IRQ_LOWEST_OFFSET       (0)
     41#define BSP_PCI_IRQ_MAX_OFFSET          (BSP_PCI_IRQ_LOWEST_OFFSET + BSP_PCI_IRQ_NUMBER - 1)
     42
    3543#define BSP_PROCESSOR_IRQ_NUMBER            (1)
    36 #define BSP_PROCESSOR_IRQ_LOWEST_OFFSET (0)
     44#define BSP_PROCESSOR_IRQ_LOWEST_OFFSET (BSP_PCI_IRQ_MAX_OFFSET)
    3745#define BSP_PROCESSOR_IRQ_MAX_OFFSET    (BSP_PROCESSOR_IRQ_LOWEST_OFFSET+BSP_PROCESSOR_IRQ_NUMBER-1)
     46
    3847
    3948  /*
     
    4150   */
    4251#define BSP_IRQ_NUMBER                  (BSP_PROCESSOR_IRQ_MAX_OFFSET + 1)
    43 #define BSP_LOWEST_OFFSET               (BSP_PROCESSOR_IRQ_LOWEST_OFFSET)
     52#define BSP_LOWEST_OFFSET               (BSP_PCI_IRQ_LOWEST_OFFSET)
    4453#define BSP_MAX_OFFSET                  (BSP_IRQ_NUMBER - 1)
    4554
Note: See TracChangeset for help on using the changeset viewer.