This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

remove old mcf5272c3 platform HAL


The old mcf5272c3 platform HAL has been replaced with eCosCentric's
m5272c3 platform HAL.

Bart

Index: ChangeLog
===================================================================
RCS file: ChangeLog
diff -N ChangeLog
--- ChangeLog	22 Apr 2004 12:55:09 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,34 +0,0 @@
-//===========================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//===========================================================================
Index: cdl/hal_m68k_mcf52xx_mcf5272_mcf5272c3.cdl
===================================================================
RCS file: cdl/hal_m68k_mcf52xx_mcf5272_mcf5272c3.cdl
diff -N cdl/hal_m68k_mcf52xx_mcf5272_mcf5272c3.cdl
--- cdl/hal_m68k_mcf52xx_mcf5272_mcf5272c3.cdl	24 Jul 2003 20:24:02 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,270 +0,0 @@
-# ====================================================================
-#
-#      hal_m68k_mcf52xx_mcf5272_mcf5272c3.cdl
-#
-#      Motorola mcf5272c3 evaluation board HAL package configuration data
-#
-# ====================================================================
-#####ECOSGPLCOPYRIGHTBEGIN####
-## -------------------------------------------
-## This file is part of eCos, the Embedded Configurable Operating System.
-## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-##
-## eCos is free software; you can redistribute it and/or modify it under
-## the terms of the GNU General Public License as published by the Free
-## Software Foundation; either version 2 or (at your option) any later version.
-##
-## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-## WARRANTY; without even the implied warranty of MERCHANTABILITY or
-## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-## for more details.
-##
-## You should have received a copy of the GNU General Public License along
-## with eCos; if not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-##
-## As a special exception, if other files instantiate templates or use macros
-## or inline functions from this file, or you compile this file and link it
-## with other works to produce a work based on this file, this file does not
-## by itself cause the resulting work to be covered by the GNU General Public
-## License. However the source code for this file must still be made available
-## in accordance with section (3) of the GNU General Public License.
-##
-## This exception does not invalidate any other reasons why a work based on
-## this file might be covered by the GNU General Public License.
-##
-## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-## at http://sources.redhat.com/ecos/ecos-license/
-## -------------------------------------------
-#####ECOSGPLCOPYRIGHTEND####
-# ====================================================================
-
-cdl_package CYGPKG_HAL_M68K_MCF52xx_MCF5272_MCF5272C3 {
-    display         "Motorola mcf5272c3 evaluation board"
-    parent          CYGPKG_HAL_M68K_MCF52xx_MCF5272
-    define_header   hal_m68k_mcf52xx_mcf5272_mcf5272c3.h
-    include_dir     cyg/hal
-
-    description   "The  Motorola  mcf5272c3  evaluation  board  platform   HAL
-                package should be used when targeting the actual hardware  for
-                the Motorola mcf5272c3 evaluation board platform."
-
-    define_proc {
-        puts $::cdl_header "#include <pkgconf/hal_m68k_mcf52xx_mcf5272.h>"
-    }
-
-    compile     plf_startup.c hal_diag.c
-
-#    implements      CYGINT_HAL_DEBUG_GDB_STUBS
-#    implements      CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
-
-    define_proc {
-        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   <pkgconf/hal_m68k.h>"
-        puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H <pkgconf/hal_m68k_mcf52xx_mcf5272.h>"
-        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_m68k_mcf52xx_mcf5272_mcf5272c3.h>"
-    }
-
-    cdl_component CYG_HAL_STARTUP {
-        display         "Startup type"
-        flavor          data
-        legal_values    {"RAM" "ROM"}
-        default_value   {"RAM"}
-	    no_define
-	    define -file system.h CYG_HAL_STARTUP
-
-        description   "When targeting the Motorola mcf5272c3 evaluation  board
-                    it is expected that the image will be downloaded into  RAM
-                    via the Motorola dBUG monitor."
-
-    }
-
-    cdl_option CYGHWR_HAL_SYSTEM_CLOCK_MHZ {
-       display          "System clock speed in MHz"
-       flavor data
-       legal_values     66
-       default_value    66
-
-       description    "This  option  identifies  the  system  clock  that  the
-                    processor uses.  This value is used to set clock  dividers
-                    for some devices."
-
-    }
-
-    cdl_option CYGHWR_HAL_M68K_MCF52xx_MCF5272_MCF5272C3_DIAG_BAUD {
-       display          "Diagnostic Serial Port Baud Rate"
-       flavor data
-       legal_values     9600 19200 38400 115200
-       default_value    9600
-
-       description    "This  option  selects  the  baud  rate  used  for   the
-                    diagnostic port.  Note: this should match the value chosen
-                    for the GDB port if  the diagnostic and  GDB port are  the
-                    same."
-
-    }
-
-    cdl_option CYGHWR_HAL_M68K_MCF52xx_MCF5272_MCF5272C3_GDB_BAUD {
-       display          "GDB Serial Port Baud Rate"
-       flavor data
-       legal_values     9600 19200 38400 115200
-       default_value    9600
-
-       description    "This option controls  the baud  rate used  for the  GDB
-                    connection."
-
-    }
-
-    # Real-time clock/counter specifics
-    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
-        display       "Real-time clock constants."
-        flavor        none
-
-        description   "Set the periodic timer  on  the  mcf5272  to  1  ms  or
-                    1000000 ns."
-
-        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
-            display       "Real-time clock numerator"
-            flavor        data
-            default_value 1000000000
-        }
-        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
-            display       "Real-time clock denominator"
-            flavor        data
-            default_value 1000
-        }
-        cdl_option CYGNUM_HAL_RTC_PERIOD {
-            display       "Real-time clock period"
-            flavor        data
-            default_value 1000000
-        }
-    }
-
-    cdl_component CYGBLD_GLOBAL_OPTIONS {
-        display "Global build options"
-        flavor  none
-        parent  CYGPKG_NONE
-
-        description   "Global build  options including  control over  compiler
-                    flags, linker flags and choice of toolchain."
-
-        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
-            display "Global command prefix"
-            flavor  data
-            no_define
-            default_value { "m68k-elf" }
-
-            description       "This option specifies  the command prefix  used
-                            when invoking the build tools."
-
-        }
-
-        cdl_option CYGBLD_GLOBAL_CFLAGS {
-            display "Global compiler flags"
-            flavor  data
-            no_define
-            default_value { "-m5200 -malign-int -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-thunks=3 -finit-priority -fomit-frame-pointer" }
-            description       "This option controls the global compiler  flags
-                            which are used to compile all packages by default.
-                            Individual  packages  may  define  options   which
-                            override these global flags."
-
-        }
-
-        cdl_option CYGBLD_GLOBAL_LDFLAGS {
-            display "Global linker flags"
-            flavor  data
-            no_define
-            default_value { "-m5200 -g -nostdlib -Wl,--gc-sections -Wl,-static" }
-
-            description       "This option controls  the global linker  flags.
-                            Individual  packages  may  define  options   which
-                            override these global flags."
-
-        }
-
-        cdl_option CYGBLD_BUILD_GDB_STUBS {
-            display "Build GDB stub ROM image"
-            default_value 0
-            requires { CYG_HAL_STARTUP == "ROM" }
-            requires CYGSEM_HAL_ROM_MONITOR
-            requires CYGBLD_BUILD_COMMON_GDB_STUBS
-            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
-            requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
-            requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
-            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
-            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
-            no_define
-
-            description       "This option enables the  building  of  the  GDB
-                            stubs for the  board.   The  common  HAL  controls
-                            takes care of most of  the build process, but  the
-                            final conversion from ELF image to binary data  is
-                            handled by the  platform CDL, allowing  relocation
-                            of the data if necessary."
-
-            make -priority 320 {
-                <PREFIX>/bin/gdb_module.srec : <PREFIX>/bin/gdb_module.img
-                $(OBJCOPY) -O srec $< $@
-            }
-        }
-    }
-
-    cdl_component CYGHWR_MEMORY_LAYOUT {
-        display "Memory layout"
-        flavor data
-        no_define
-        calculated { CYG_HAL_STARTUP == "RAM" ? "m68k_mcf52xx_mcf5272_mcf5272c3_ram" : \
-	                                        "m68k_mcf52xx_mcf5272_mcf5272c3_rom" }
-
-        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
-            display "Memory layout linker script fragment"
-            flavor data
-            no_define
-            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
-            calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.ldi>" : \
-                                                    "<pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_rom.ldi>" }
-        }
-
-        cdl_option CYGHWR_MEMORY_LAYOUT_H {
-            display "Memory layout header file"
-            flavor data
-            no_define
-            define -file system.h CYGHWR_MEMORY_LAYOUT_H
-            calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.h>" : \
-                                                    "<pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_rom.h>" }
-        }
-    }
-
-    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
-        display       "Work with a ROM monitor"
-        flavor        booldata
-        legal_values  { "GDB_stubs" }
-        default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
-        requires      { CYG_HAL_STARTUP == "RAM" }
-        parent        CYGPKG_HAL_ROM_MONITOR
-
-        description       "Support  can  be  enabled  for  boot  ROMs  or  ROM
-                        monitors  which  contain  GDB  stubs.   This   support
-                        changes various eCos semantics such as the encoding of
-                        diagnostic output,  and  the  overriding  of  hardware
-                        interrupt vectors."
-
-    }
-
-    cdl_option CYGSEM_HAL_ROM_MONITOR {
-        display       "Behave as a ROM monitor"
-        flavor        bool
-        default_value 0
-        parent        CYGPKG_HAL_ROM_MONITOR
-        requires      { CYG_HAL_STARTUP == "ROM" }
-
-        description       "Enable this option if this program is to be used as
-                        a ROM monitor, i.e.  applications will be loaded  into
-                        RAM on the  board, and  this ROM  monitor may  process
-                        exceptions   or   interrupts   generated   from    the
-                        application.  This enables features such as  utilizing
-                        a  separate  interrupt   stack  when  exceptions   are
-                        generated."
-
-    }
-}
Index: include/hal_memmap.h
===================================================================
RCS file: include/hal_memmap.h
diff -N include/hal_memmap.h
--- include/hal_memmap.h	29 May 2002 18:28:16 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,66 +0,0 @@
-#ifndef HAL_MEMMAP_H
-#define HAL_MEMMAP_H
-//==========================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//==========================================================================
-
-#include <cyg/infra/cyg_type.h>
-
-//      WARNING: DO NOT CHANGE THE TYPES OF THESE LABELS.  THE LINKER  DEFINES
-// THESE AND WE WANT TO USE THE VARIABLES NOT THE VARIABLES THEMSELVES.
-
-#define SECTION_DEC(_name_) \
-    externC unsigned char __ ## _name_ ## _start[]; \
-    externC unsigned char __ ## _name_ ## _end[]; \
-    externC unsigned char __ ## _name_ ## _size[];
-
-SECTION_DEC(rom)
-SECTION_DEC(ram)
-SECTION_DEC(bss)
-SECTION_DEC(sbss)
-SECTION_DEC(ram_data)
-SECTION_DEC(rom_data)
-SECTION_DEC(heap1)
-SECTION_DEC(uninvar)
-SECTION_DEC(romvec)
-SECTION_DEC(ramvec)
-
-/*****************************************************************************
-On-chip registers, System Integration Module (SIM)
-*****************************************************************************/
-
-#define MCF5272_MBAR (0x10000000)
-
-#endif /* HAL_MEMMAP_H */
-
Index: include/plf_intr.h
===================================================================
RCS file: include/plf_intr.h
diff -N include/plf_intr.h
--- include/plf_intr.h	29 May 2002 18:28:16 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,109 +0,0 @@
-#ifndef CYGONCE_HAL_PLF_INTR_H
-#define CYGONCE_HAL_PLF_INTR_H
-
-//==========================================================================
-//
-//      plf_intr.h
-//
-//      Platform specific interrupt and clock support
-//
-//
-//==========================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//==========================================================================
-
-#include <pkgconf/hal.h>
-#include <cyg/infra/cyg_type.h>
-
-//--------------------------------------------------------------------------
-// Interrupt vectors.
-
-/*      The vector used by the Real time clock                              */
-
-#define CYGNUM_HAL_INTERRUPT_RTC (CYGNUM_HAL_VECTOR_TMR4)
-
-//---------------------------------------------------------------------------
-// Clock control
-
-/*      The mcf5272 has 4 timers 0-3.  Define the timer number that we want */
-/* to use for the OS's clock.                                               */
-
-#define CYGNUM_HAL_RTC_TIMER_NUM (3)
-
-/*      Set the timer to generate 1 ms or 1000000 ns period interrupts.     */
-
-#define HAL_M68K_MCF52xx_MCF5272_CLOCK_NS 1000000
-#if CYGNUM_HAL_RTC_PERIOD != HAL_M68K_MCF52xx_MCF5272_CLOCK_NS
-#warning Unexpected clock period for this board!!!
-#endif
-
-/*      Initialize the timer to generate an interrupt every 1 ms.  Use  the */
-/* system clock divided by 16 as  the source.  Using 11*3 as the  prescaler */
-/* gives a 8 us counter.  When this counter reaches 125 (1 ms) generate  an */
-/* interrupt.                                                               */
-
-#define HAL_CLOCK_INITIALIZE(_period_)                                      \
-CYG_MACRO_START                                                             \
-MCF5272_SIM->timer[CYGNUM_HAL_RTC_TIMER_NUM].tmr = 0x0000;                  \
-MCF5272_SIM->timer[CYGNUM_HAL_RTC_TIMER_NUM].trr = 125-1;                   \
-MCF5272_SIM->timer[CYGNUM_HAL_RTC_TIMER_NUM].tcn = 0;                       \
-MCF5272_SIM->timer[CYGNUM_HAL_RTC_TIMER_NUM].ter = 0x0003;                  \
-MCF5272_SIM->timer[CYGNUM_HAL_RTC_TIMER_NUM].tmr =                          \
-    (((3*11)-1) << MCF5272_TIMER_TMR_PS_BIT) |                              \
-    (0 << MCF5272_TIMER_TMR_CE_BIT) |                                       \
-    (0 << MCF5272_TIMER_TMR_OM_BIT) |                                       \
-    (1 << MCF5272_TIMER_TMR_ORI_BIT) |                                      \
-    (1 << MCF5272_TIMER_TMR_FRR_BIT) |                                      \
-    (2 << MCF5272_TIMER_TMR_CLK_BIT) |                                      \
-    (1 << MCF5272_TIMER_TMR_RST_BIT);                                       \
-CYG_MACRO_END
-
-/*      We must clear the bit in the timer event register before we can get */
-/* another interrupt.                                                       */
-
-#define HAL_CLOCK_RESET( _vector_, _period_ )                               \
-CYG_MACRO_START                                                             \
-MCF5272_SIM->timer[CYGNUM_HAL_RTC_TIMER_NUM].ter = 0x0002;                  \
-CYG_MACRO_END
-
-/*      Read the current counter from the timer.                            */
-
-#define HAL_CLOCK_READ( _pvalue_ )                                          \
-CYG_MACRO_START                                                             \
-*(_pvalue_) = MCF5272_SIM->timer[CYGNUM_HAL_RTC_TIMER_NUM].tcn;             \
-CYG_MACRO_END
-
-//---------------------------------------------------------------------------
-#endif // ifndef CYGONCE_HAL_PLF_INTR_H
-
Index: include/plf_startup.h
===================================================================
RCS file: include/plf_startup.h
diff -N include/plf_startup.h
--- include/plf_startup.h	29 May 2002 18:28:16 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,55 +0,0 @@
-#ifndef _PLF_STARTUP_H
-#define _PLF_STARTUP_H
-//==========================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//==========================================================================
-
-#include <cyg/infra/cyg_type.h>
-
-//      The following label specifies whether the HAL should enable or disable
-// the data transfer acknowledge output pin on the mcf5272 device.
-
-#define HAL_MCF5272_ENABLE_DATA_TA (false)
-
-//      Platform-specific reset vector initialization routine
-
-externC void plf_reset(void);
-
-//      Initialize the cache and access  control  registers  for  the  current
-// platform.
-
-void plf_init_cache_acr(void);
-
-#endif // _PLF_STARTUP_H
-
Index: include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.h
===================================================================
RCS file: include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.h
diff -N include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.h
--- include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.h	29 May 2002 18:28:16 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,50 +0,0 @@
-#ifndef _MLT_M68K_RAM_H
-#define _MLT_M68K_RAM_H
-//==========================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//==========================================================================
-
-// eCos memory layout
-
-#ifndef __ASSEMBLER__
-
-#include <cyg/hal/hal_memmap.h>
-
-#endif
-
-#define CYGMEM_SECTION_heap1 (__heap1_start)
-#define CYGMEM_SECTION_heap1_SIZE ((size_t)(__heap1_size))
-
-#endif // _MLT_M68K_RAM_H
-
Index: include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.ldi
===================================================================
RCS file: include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.ldi
diff -N include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.ldi
--- include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272c3_ram.ldi	29 May 2002 18:28:16 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,80 +0,0 @@
-//===========================================================================
-//
-// RAM startup linker control script
-//
-//===========================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//===========================================================================
-
-MEMORY
-{
-    rom (rx)        : ORIGIN = 0x00020000, LENGTH = 0x001E0000
-    ram (wx)        : ORIGIN = 0x00200000, LENGTH = 0x00200000
-}
-
-SECTIONS
-{
-    SECTIONS_BEGIN
-
-    GENERIC_SECTION             (rom, rom, 0x00020000 (NOLOAD), LMA_EQ_VMA, 0x001E0000)
-    GENERIC_SECTION             (ram, ram, 0x00200000 (NOLOAD), LMA_EQ_VMA, 0x00200000)
-
-    GENERIC_SECTION             (romvec, rom, __rom_start, LMA_EQ_VMA, 0x400)
-    SECTION_text                (rom, ALIGN (0x4), FOLLOWING (.romvec))
-    SECTION_fini                (rom, ALIGN (0x4), FOLLOWING (.text))
-    SECTION_rodata1             (rom, ALIGN (0x4), FOLLOWING (.fini))
-    SECTION_rodata              (rom, ALIGN (0x4), FOLLOWING (.rodata1))
-    SECTION_fixup               (rom, ALIGN (0x4), FOLLOWING (.rodata))
-
-    //   WARNING: If you change the order of these sections, be sure to change
-    // the location of the data section.
-
-    SECTION_gcc_except_table    (rom, ALIGN (0x4), FOLLOWING (.fixup))
-    __rom_data_addr = ABSOLUTE(.);
-
-    GENERIC_SECTION             (ramvec, ram, __ram_start (NOLOAD), LMA_EQ_VMA, 0x400)
-    SECTION_data                (ram, ALIGN (0x4), FOLLOWING (.gcc_except_table), __rom_data_addr)
-    SECTION_sbss                (ram, ALIGN (0x4) (NOLOAD), LMA_EQ_VMA)
-    SECTION_bss                 (ram, ALIGN (0x4) (NOLOAD), LMA_EQ_VMA)
-    SECTION_uninvar             (ram, ALIGN (0x4) (NOLOAD), LMA_EQ_VMA)
-
-    // Allocate a heap section.
-
-    SECTION_heap1               (ram, ALIGN (0x4), LMA_EQ_VMA, 0x20000)
-    // The build tool looks for this "CYG_LABEL_DEFN..." string.
-    CYG_LABEL_DEFN(__heap1) = ABSOLUTE (__heap1_start);
-
-    SECTIONS_END
-}
-
Index: src/hal_diag.c
===================================================================
RCS file: src/hal_diag.c
diff -N src/hal_diag.c
--- src/hal_diag.c	29 May 2002 18:28:16 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,149 +0,0 @@
-//=============================================================================
-//
-//      hal_diag.c
-//
-//      HAL diagnostic output code
-//
-//=============================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//=============================================================================
-
-#include <pkgconf/hal.h>
-
-#include <cyg/hal/hal_diag.h>           // our header.
-
-#if defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS)
-#include <cyg/hal/hal_stub.h>           // hal_output_gdb_string
-#endif
-
-#include <cyg/infra/cyg_type.h>         // base types, externC
-#include <cyg/hal/hal_io.h>             // IO macros
-#include <cyg/hal/hal_intr.h>           // Interrupt macros
-
-#include <cyg/hal/hal_arch.h>
-
-#define CYG_KERNEL_DIAG_SERIAL
-
-//-----------------------------------------------------------------------------
-// Serial diag functions.
-#ifdef CYG_KERNEL_DIAG_SERIAL
-
-// Include the serial driver.
-
-void hal_diag_init(void)
-{
-    CYG_WORD16 clk_div;
-
-    /*   We must first enable the UART output pins from the general-purpose */
-    /* I/O module.                                                          */
-
-    /*   Enable the UART0 pins in the port B control register.              */
-
-    MCF5272_SIM->gpio.pbcnt = ((MCF5272_SIM->gpio.pbcnt &
-                                ~(MCF5272_GPIO_PBCNT_URT0_MSK)) |
-                               (MCF5272_GPIO_PBCNT_URT0_EN));
-
-    /*   Before we do anything else,  make sure  we have  enabled CTS  (our */
-    /* RTS) in case the  device  we  are  using  relies  on  hardware  flow */
-    /* control.  Note that this step is  our only attempt at hardware  flow */
-    /* control.                                                             */
-
-    MCF5272_SIM->uart[0].uop1 = 1;
-
-	/* Initialize UART0 */
-	
-	/* Reset Transmitter */
-    MCF5272_SIM->uart[0].ucr = MCF5272_UART_UCR_RTX;
-
-	/* Reset Receiver */
-    MCF5272_SIM->uart[0].ucr = MCF5272_UART_UCR_RRX;
-
-	/* Reset Mode Register */
-    MCF5272_SIM->uart[0].ucr = MCF5272_UART_UCR_RMR;
-
-    MCF5272_SIM->uart[0].ucr = MCF5272_UART_UCR_RES;
-    MCF5272_SIM->uart[0].ucr = MCF5272_UART_UCR_RBC;
-
-    /*   Mode register 1 sets the UART to  8 data bits with no parity,  and */
-    /* mode register 2  forces 1 stop  bit.  Reading or  write to the  mode */
-    /* register switches it from umr1 to umr2.  To set it to umr1, we  must */
-    /* write a reset mode register command to the command register.         */
-
-    MCF5272_SIM->uart[0].umr = MCF5272_UART_UMR_8BNP;
-    MCF5272_SIM->uart[0].umr = MCF5272_UART_UMR_1S;
-
-    /*   Select a prescaled (by 1/32) CLKIN for the clock source.           */
-
-    MCF5272_SIM->uart[0].usr_ucsr = MCF5272_UART_UCSR_CLKIN;
-
-    /*   Calculate baud settings                                            */
-    clk_div = (CYG_WORD16)
-              ((CYGHWR_HAL_SYSTEM_CLOCK_MHZ*1000000)/
-               (CYGHWR_HAL_M68K_MCF52xx_MCF5272_MCF5272C3_DIAG_BAUD * 32));
-    MCF5272_SIM->uart[0].udu = clk_div >> 8;
-    MCF5272_SIM->uart[0].udl = clk_div & 0x00ff;
-
-    /*   Enable the transmitter and receiver.                               */
-    MCF5272_SIM->uart[0].ucr = MCF5272_UART_UCR_TXRXEN;
-
-}
-
-void hal_diag_write_char(cyg_int8 ch)
-{
-
-    /* Loop until the transmit data holding register is empty. */
-    while (!(MCF5272_SIM->uart[0].usr_ucsr & MCF5272_UART_USR_TXRDY));
-
-    /* Write the character to the transmit status register. */
-    MCF5272_SIM->uart[0].urb_utb = ch;
-
-    /*   Loop until the transmit data  FIFO  and  the  shift  register  are */
-    /* empty.                                                               */
-
-    while ((MCF5272_SIM->uart[0].utf & MCF5272_UART_UTF_TXB) ||
-           (!(MCF5272_SIM->uart[0].usr_ucsr & MCF5272_UART_USR_TXEMP)));
-
-}
-
-cyg_int8 hal_diag_read_char(void)
-{
-
-    return 0;
-}
-
-#endif // ifdef CYG_KERNEL_DIAG_SERIAL
-
-//-----------------------------------------------------------------------------
-// End of hal_diag.c
-
Index: src/plf_startup.c
===================================================================
RCS file: src/plf_startup.c
diff -N src/plf_startup.c
--- src/plf_startup.c	29 May 2002 18:28:16 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,95 +0,0 @@
-//==========================================================================
-//####ECOSGPLCOPYRIGHTBEGIN####
-// -------------------------------------------
-// This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-//
-// eCos is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License as published by the Free
-// Software Foundation; either version 2 or (at your option) any later version.
-//
-// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
-// WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-// for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with eCos; if not, write to the Free Software Foundation, Inc.,
-// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-//
-// As a special exception, if other files instantiate templates or use macros
-// or inline functions from this file, or you compile this file and link it
-// with other works to produce a work based on this file, this file does not
-// by itself cause the resulting work to be covered by the GNU General Public
-// License. However the source code for this file must still be made available
-// in accordance with section (3) of the GNU General Public License.
-//
-// This exception does not invalidate any other reasons why a work based on
-// this file might be covered by the GNU General Public License.
-//
-// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license/
-// -------------------------------------------
-//####ECOSGPLCOPYRIGHTEND####
-//==========================================================================
-
-#include <cyg/infra/cyg_type.h>
-#include <pkgconf/hal.h>
-#include <cyg/hal/hal_startup.h>
-#include <cyg/hal/hal_memmap.h>
-#include <cyg/hal/hal_arch.h>
-
-/*****************************************************************************
-plf_init_cache_acr -- Initialize the cache and access control registers
-
-     The var_init_cache_acr routine already invalidated the cache and ACRs.
-This routine only needs to enable the ACRs that it will use.
-
-INPUT:
-
-OUTPUT:
-
-RETURN VALUE:
-
-     None
-
-*****************************************************************************/
-void plf_init_cache_acr(void)
-{
-
-    // Enable the instruction cache with the following options:
-    // Enable CPUSHL invalidation.
-    // No freeze.
-    // Invalidate all cache lines (flush).
-    // No external arbiter control.
-    // Disable non-cacheable instruction bursting.
-    // Default memory is cacheable.
-    // Enable buffered writes.
-    // Read and write access permitted by default.
-    // Instruction fetch size is cache line.
-
-    mcf52xx_wr_cacr((CYG_WORD32)0x81000102);
-
-    //   Leave the access control registers disabled by default.
-
-}
-
-/*****************************************************************************
-plf_reset -- Platform-specific reset vector initialization routine
-
-     This routine must be called with interrupts disabled.
-
-INPUT:
-
-OUTPUT:
-
-RETURN VALUE:
-
-     None
-
-*****************************************************************************/
-void plf_reset(void)
-{
-
-}
-


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]