Changeset f9877d25 in rtems


Ignore:
Timestamp:
Nov 10, 2004, 11:50:48 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e79a1947
Parents:
d868299
Message:

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

  • Makefile.am, configure.ac, bootloader/Makefile.am, include/bsp.h, wrapup/Makefile.am: Add MVME2100 BSP and MPC8240 support. There was also a significant amount of spelling and whitespace cleanup.
  • README.MVME2100: New file.
Location:
c/src/lib/libbsp/powerpc/motorola_powerpc
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog

    rd868299 rf9877d25  
     12004-11-10      Richard Campbell <richard.campbell@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, bootloader/Makefile.am, include/bsp.h,
     4        wrapup/Makefile.am: Add MVME2100 BSP and MPC8240 support. There was
     5        also a significant amount of spelling and whitespace cleanup.
     6        * README.MVME2100: New file.
     7
    182004-11-05      Joel Sherrill <joel@OARcorp.com>
    29
  • c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am

    rd868299 rf9877d25  
    2626include_HEADERS += ../../powerpc/shared/include/nvram.h
    2727include_HEADERS += ../../shared/include/coverhd.h
     28include_HEADERS += ../../shared/tod.h
    2829
    2930EXTRA_DIST = ../../powerpc/shared/start/start.S
     
    5758
    5859noinst_DATA += startup$(LIB_VARIANT).rel
     60
     61EXTRA_PROGRAMS += tod.rel
     62CLEANFILES += tod.rel
     63tod_rel_SOURCES = ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c
     64tod_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     65tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     66
     67EXTRA_PROGRAMS += tod_g.rel
     68CLEANFILES += tod_g.rel
     69tod_g_rel_SOURCES = $(tod_rel_SOURCES)
     70tod_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     71tod_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     72
     73noinst_DATA += tod$(LIB_VARIANT).rel
    5974
    6075EXTRA_PROGRAMS += pclock.rel
     
    230245all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
    231246
    232 EXTRA_DIST += BOOTING README.MVME2300 README.OTHERBOARDS README.dec21140
     247EXTRA_DIST += BOOTING README.mtx603e README.MVME2100 README.MVME2300 \
     248    README.OTHERBOARDS README.mcp750 README.MVME2307 README.dec21140
    233249EXTRA_DIST += times.mcp750 times.mvme2307
    234250
     
    276292PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
    277293
     294$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
     295        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
     296PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
     297
    278298$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
    279299        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
  • c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am

    rd868299 rf9877d25  
    3030# Remove references to EABI when compiling bootloader
    3131BOOTLOADER_CPU_FLAGS=$(subst -msdata=eabi,,$(subst -meabi,,$(CPU_CFLAGS)))
    32 AM_CPPFLAGS = -D__BOOT__ -DDEBUG
     32AM_CPPFLAGS = -D__BOOT__
    3333AM_CFLAGS = $(GCC_SPECS) -specs bsp_specs -qrtems -mrelocatable -msoft-float \
    3434    -mstrict-align -fno-builtin -Wall -mmultiple -mstring -O2 \
  • c/src/lib/libbsp/powerpc/motorola_powerpc/configure.ac

    rd868299 rf9877d25  
    3232 The BSP actually contains the call that enables this.])
    3333
     34RTEMS_BSPOPTS_SET([mvme2100],[mvme2100],[1])
     35RTEMS_BSPOPTS_SET([mvme2100],[*],[])
     36RTEMS_BSPOPTS_HELP([mvme2100],
     37[Defined for MVME2100 -- undefined for others])
     38
     39RTEMS_BSPOPTS_SET([mpc8240],[mvme2100],[1])
     40RTEMS_BSPOPTS_SET([mpc8240],[*],[])
     41RTEMS_BSPOPTS_HELP([mpc8240],
     42[Defined for boards with MPC8240 -- undefined for others])
     43
    3444## HACK: This should better be propagated through the BSP's bsp.h.
    3545## however, this BSP doesn't have one :(
  • c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h

    rd868299 rf9877d25  
    2727 */
    2828
     29#if !defined(mvme2100)
    2930#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
     31#endif
     32
    3033#define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
    3134
    32 /* fundamental addresses for this BSP (PREPxxx are from libcpu/io.h) */
    33 #define _IO_BASE                        PREP_ISA_IO_BASE
     35/* fundamental addresses for BSP (CHRPxxx and PREPxxx are from libcpu/io.h) */
     36#if defined(mvme2100)
     37#define _IO_BASE                CHRP_ISA_IO_BASE
     38#define _ISA_MEM_BASE           CHRP_ISA_MEM_BASE
     39/* address of our ram on the PCI bus   */
     40#define PCI_DRAM_OFFSET         CHRP_PCI_DRAM_OFFSET
     41#define PCI_MEM_BASE            0x80000000
     42#define PCI_MEM_BASE_ADJUSTMENT 0
     43
     44#else
     45#define _IO_BASE                PREP_ISA_IO_BASE
    3446#define _ISA_MEM_BASE           PREP_ISA_MEM_BASE
    3547/* address of our ram on the PCI bus   */
     
    3749/* offset of pci memory as seen from the CPU */
    3850#define PCI_MEM_BASE            PREP_ISA_MEM_BASE
     51#define PCI_MEM_BASE_ADJUSTMENT PREP_ISA_MEM_BASE
     52#endif
     53
    3954
    4055/*
    41  *  base address definitions for several devices
     56 *  Base address definitions for several devices
    4257 *
     58 *  MVME2100 is very similar but has fewer devices and uses on-CPU EPIC
     59 *  implementation of OpenPIC controller.  It also cannot be probed to
     60 *  find out what it is which is VERY different from other Motorola boards.
    4361 */
     62
     63#if defined(mvme2100)
     64#define BSP_UART_IOBASE_COM1 ((_IO_BASE)+0x01e10000)
     65/* #define BSP_UART_IOBASE_COM1     (0xffe10000) */
     66#define BSP_OPEN_PIC_BASE_OFFSET 0x40000
     67
     68#define MVME_HAS_DEC21140
     69#else
    4470#define BSP_UART_IOBASE_COM1 ((_IO_BASE)+0x3f8)
    4571#define BSP_UART_IOBASE_COM2 ((_IO_BASE)+0x2f8)
     72
    4673#define BSP_KBD_IOBASE       ((_IO_BASE)+0x60)
    4774#define BSP_VGA_IOBASE       ((_IO_BASE)+0x3c0)
     75
     76#if defined(mvme2300)
     77#define MVME_HAS_DEC21140
     78#endif
     79#endif
    4880
    4981#define BSP_CONSOLE_PORT        BSP_UART_COM1
     
    6193#define inport_word(port,value) (value = inw(port))
    6294#define inport_long(port,value) (value = inl(port))
     95
    6396/*
    6497 * Vital Board data Start using DATA RESIDUAL
    6598 */
     99
    66100/*
    67101 * Total memory using RESIDUAL DATA
  • c/src/lib/libbsp/powerpc/motorola_powerpc/wrapup/Makefile.am

    rd868299 rf9877d25  
    1313    ../pci$(LIB_VARIANT).rel ../residual$(LIB_VARIANT).rel \
    1414    ../vectors$(LIB_VARIANT).rel ../motorola$(LIB_VARIANT).rel \
    15     ../vme$(LIB_VARIANT).rel
     15    ../tod$(LIB_VARIANT).rel ../vme$(LIB_VARIANT).rel
    1616___libbsp_a_LIBADD += \
    1717    ../../../../libcpu/@RTEMS_CPU@/shared/cpuIdent$(LIB_VARIANT).rel \
Note: See TracChangeset for help on using the changeset viewer.