Ignore:
Timestamp:
Nov 10, 2004, 11:51:17 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a84392d
Parents:
f9877d25
Message:

2004-11-10 Richard Campbell <richard.campbell@…>

  • Makefile.am, bootloader/misc.c, bootloader/pci.c, bootloader/pci.h, console/console.c, console/inch.c, console/reboot.c, console/uart.c, console/uart.h, irq/irq.c, irq/irq.h, irq/irq_init.c, motorola/motorola.c, motorola/motorola.h, openpic/openpic.c, openpic/openpic.h, pci/detect_raven_bridge.c, pci/pci.c, start/start.S, startup/bspstart.c, vectors/vectors_init.c, vme/vmeconfig.c: Add MVME2100 BSP and MPC8240 support. There was also a significant amount of spelling and whitespace cleanup.
  • tod/todcfg.c: New file.
Location:
c/src/lib/libbsp/powerpc/shared/motorola
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/motorola/motorola.c

    rf9877d25 re79a1947  
    44 *  by rtems to identify motorola boards.
    55 *
    6  *  CopyRight (C) 1999 valette@crf.canon.fr
     6 *  Copyright (C) 1999 valette@crf.canon.fr
    77 *
    88 *  The license and distribution terms for this file may be
     
    1313 */
    1414
     15#include <bsp.h>
    1516#include <bsp/motorola.h>
    1617#include <rtems/bspIo.h>
     
    1920
    2021/*
    21 ** Board-specific table that maps interrupt names to onboard pci
    22 ** peripherals as well as local pci busses.  This table is used at
     22** Board-specific table that maps interrupt names to onboard PCI
     23** peripherals as well as local PCI busses.  This table is used at
    2324** bspstart() to configure the interrupt name & pin for all devices that
    2425** do not have it already specified.  If the device is already
     
    106107               {3, {25,-1,-1,-1}},
    107108               {4, {26,-1,-1,-1}},
     109               NULL_PINMAP}},
     110
     111   NULL_INTMAP };
     112
     113static struct _int_map mvme2100_intmap[] = {
     114   {0, 0, 0, {{1, {16,-1,-1,-1}}, /* something shows up in slot 0 and OpenPIC */
     115                                  /* 0 is unused.  This hushes the init code. */
     116               NULL_PINMAP}},
     117
     118   {0, 13, 0, {{1, {23,24,25,26}},  /* PCI INT[A-D]/Universe Lint[0-3] */
     119               NULL_PINMAP}},
     120
     121   {0, 14, 0, {{1, {17,-1,-1,-1}},  /* onboard ethernet */
    108122               NULL_PINMAP}},
    109123
     
    163177  {0x1E0, 0xFE, "MVME 3600 with MVME761", NULL, NULL},
    164178  {0x1E0, 0xFF, "MVME 1600-001 or 1600-011", NULL, NULL},
    165   {0x000, 0x00, ""}
     179  {0x000, 0x00, ""},   /* end of probeable values for automatic scan */
     180  {0x000, 0x00, "MVME 2100", mvme2100_intmap, prep_pci_swizzle},
    166181};
    167182
    168183prep_t currentPrepType;
    169 motorolaBoard           currentBoard;
     184motorolaBoard currentBoard;
     185
    170186prep_t checkPrepBoardType(RESIDUAL *res)
    171187{
     
    189205}
    190206
    191 motorolaBoard   getMotorolaBoard()
    192 {
     207motorolaBoard getMotorolaBoard()
     208{
     209/*
     210 *  At least the MVME2100 does not have the CPU Type and Base Type Registers,
     211 *  so it cannot be probed.
     212 *
     213 *  NOTE: Every path must set currentBoard.
     214 */
     215#if defined(mvme2100)
     216  currentBoard = (motorolaBoard) MVME_2100;
     217#else
    193218  unsigned char  cpu_type;
    194219  unsigned char  base_mod;
     
    210235    if (mot_boards[entry].base_type != base_mod)
    211236      continue;
    212     else{
     237    else {
    213238      mot_entry = entry;
    214239      break;
     
    223248  }
    224249  currentBoard = (motorolaBoard) mot_entry;
     250#endif
    225251  return currentBoard;
    226252}
     
    235261{
    236262  if (board == MOTOROLA_UNKNOWN) return NULL;
     263  /* printk( "IntMap board %d 0x%08x\n", board, mot_boards[board].intmap ); */
    237264  return mot_boards[board].intmap;
    238265}
  • c/src/lib/libbsp/powerpc/shared/motorola/motorola.h

    rf9877d25 re79a1947  
    2323  PREP_Radstone = 1,
    2424  PREP_Motorola = 2
    25 }prep_t;
     25} prep_t;
    2626
    2727typedef enum {
     
    4646  MVME_3600_W_MVME761           = 18,
    4747  MVME_1600                     = 19,
     48  /* In the table, slot 20 is the marker for end of automatic probe and scan */
     49  MVME_2100                     = 21,
    4850  MOTOROLA_UNKNOWN              = 255
    4951} motorolaBoard;
     
    5355  HOST_BRIDGE_HAWK      = 1,
    5456  HOST_BRIDGE_UNKNOWN   = 255
    55 }motorolaHostBridge;
     57} motorolaHostBridge;
    5658
    5759#define MOTOROLA_CPUTYPE_REG    0x800
Note: See TracChangeset for help on using the changeset viewer.