source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/README.OTHERBOARDS @ 1ea5087

4.104.114.84.95
Last change on this file since 1ea5087 was ad9a21a, checked in by Joel Sherrill <joel.sherrill@…>, on 12/03/99 at 13:53:01

New file.

  • Property mode set to 100644
File size: 3.0 KB
Line 
1#
2#  $Id$
3#
4
5This BSP is designed to support multiple Motorola PowerPC boards.  The
6following extract from some email from Eric Valette should provide
7the basic information required to use this BSP on other models.
8
9
10Joel>      + I am sure there are other Motorola boards which this BSP should
11Joel>        support.  If you know of other models that should work, list
12Joel>        them off to me.  I will make them aliases and note them as
13Joel>        untested in the status.
14
15Extract of motorola.c :
16
17static const mot_info_t mot_boards[] = {
18  {0x300, 0x00, "MVME 2400"},
19  {0x010, 0x00, "Genesis"},
20  {0x020, 0x00, "Powerstack (Series E)"},
21  {0x040, 0x00, "Blackhawk (Powerstack)"},
22  {0x050, 0x00, "Omaha (PowerStack II Pro3000)"},
23  {0x060, 0x00, "Utah (Powerstack II Pro4000)"},
24  {0x0A0, 0x00, "Powerstack (Series EX)"},
25  {0x1E0, 0xE0, "Mesquite cPCI (MCP750)"},
26  {0x1E0, 0xE1, "Sitka cPCI (MCPN750)"},
27  {0x1E0, 0xE2, "Mesquite cPCI (MCP750) w/ HAC"},
28  {0x1E0, 0xF6, "MTX Plus"},
29  {0x1E0, 0xF7, "MTX wo/ Parallel Port"},
30  {0x1E0, 0xF8, "MTX w/ Parallel Port"},
31  {0x1E0, 0xF9, "MVME 2300"},
32  {0x1E0, 0xFA, "MVME 2300SC/2600"},
33  {0x1E0, 0xFB, "MVME 2600 with MVME712M"},
34  {0x1E0, 0xFC, "MVME 2600/2700 with MVME761"},
35  {0x1E0, 0xFD, "MVME 3600 with MVME712M"},
36  {0x1E0, 0xFE, "MVME 3600 with MVME761"},
37  {0x1E0, 0xFF, "MVME 1600-001 or 1600-011"},
38  {0x000, 0x00, ""}
39};
40
41In theory, each board starting with 0x1E0 should be really straighforward
42to port (604 proc or above and raven host bridge...).
43
44Joel> Then we just have to add README.BOARD_MODEL and TIMES.BOARD_MODEL
45
46I should also make a README to explain that some file containing
47switch statement should be completed (e.g libbsp/powerpc/shared/irq_init.c
48[NOTE: This is that README. :) ]
49
50       ------------------------------
51  if ( (currentBoard == MESQUITE) ) {
52    VIA_isa_bridge_interrupts_setup();
53    known_cpi_isa_bridge = 1;
54  }
55  if (!known_cpi_isa_bridge) {
56    printk("Please add code for PCI/ISA bridge init to libbsp/shared/irq/irq_init.c\n");
57    printk("If your card works correctly please add a test and set known_cpi_isa_bridge to true\n");
58  }
59       ------------------------------
60
61and libbsp/powerpc/mpc6xx/execeptions/raw_exception.c
62
63       -------------------------------
64
65int mpc604_vector_is_valid(rtems_vector vector)
66{
67  /*
68   * Please fill this for MVME2307
69   */
70  printk("Please complete libcpu/powerpc/XXX/raw_exception.c\n");
71  return 0;
72}
73
74int mpc60x_set_exception  (const rtems_raw_except_connect_data* except)
75{
76    unsigned int level;
77
78    if (current_ppc_cpu == PPC_750) {
79      if (!mpc750_vector_is_valid(except->exceptIndex)){
80        return 0;
81      }
82      goto exception_ok;
83    }
84    if (current_ppc_cpu == PPC_604) {
85      if (!mpc604_vector_is_valid(except->exceptIndex)){
86        return 0;
87      }
88      goto exception_ok;
89    }
90    printk("Please complete libcpu/powerpc/XXX/raw_exception.c\n");
91    return 0;
92    -----------------------------------
93
94NB : re readding the code I should have done a switch... TSSSS.A future patche
95     I think.
96
97
Note: See TracBrowser for help on using the repository browser.