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] |
Hello everyone. I completely rewrote the port to the Freescale ColdFire architecture. The attached compressed file contains:
1. The ColdFire architecture HAL. 2. The MCF5272 variant HAL. 3. The M5272C3 platform HAL. 4. An interrupt driven serial driver for the MCF5272.
Unlike the original port, which considers the ColdFire as a special case of the M68k architecture, the new port creates a separate directory in the HAL tree for the ColdFire processors. The reason is I think ColdFire and M68k, although share a similar instruction set, are quite different in many other architectural aspects.
The original port to MCF5272 contained also a draft for an ethernet driver. I hadn't the time to rewrite that too, but I think it is easier to take as a starting point the PowerPC FEC driver (I discovered the two ethernet adapters are very similar).
Although I had only an MCF5272 at hands, I wrote the architecture HAL in the most general fashion I could figure, in order to make it easy to add new ColdFire variants.
The architecture HAL tree contains a subdirectory called "doc", which in turn contains a README file with some useful notes to understand and use the port.
When reviewing the port, please also consider the little patch I subimitted July 11, 2005 (the subject of the message was "Baud rate detection macro"). Adding that patch would enable the baud detection feature of the MCF5272 serial ports. To take advantage of that feature, you'll have also to enable lines 985 through 998 of the source code file "mcf5272_serial.c" containing the driver for the serial ports.
Enrico Piria (For replies sent also to this mailing list, please use the e-mail address I used to post this message.)
# -------------------------------------------------------------------------- # ColdFire packages package CYGPKG_HAL_COLDFIRE { alias { "ColdFire common HAL" hal_coldfire coldfire_hal coldfire_arch_hal } directory hal/coldfire/arch script hal_coldfire.cdl hardware description "The ColdFire architecture HAL package provides generic support for this processor architecture. It is also necessary to select a specific target platform HAL package." } package CYGPKG_HAL_COLDFIRE_MCF5272 { alias { "ColdFire MCF5272 processor variant HAL" hal_coldfire_mcf5272 coldfire_mcf5272_hal } directory hal/coldfire/mcf5272 script hal_coldfire_mcf5272.cdl hardware description "The ColdFire MCF5272 processor variant HAL package provides generic support for this processor architecture. It is also necessary to select a specific target platform HAL package." } package CYGPKG_HAL_COLDFIRE_M5272C3 { alias { "Freescale M5272C3 evaluation board platform HAL" hal_coldfire_m5272c3 coldfire_m5272c3_hal } directory hal/coldfire/m5272c3 script hal_coldfire_m5272c3.cdl hardware description "The Freescale M5272C3 evaluation board platform HAL package should be used when targeting the actual hardware for the Freescale M5272C3 evaluation board platform." } package CYGPKG_IO_SERIAL_COLDFIRE_MCF5272 { alias { "ColdFire MCF5272 serial device drivers" devs_serial_coldfire_mcf5272_serial_driver } hardware directory devs/serial/coldfire/mcf5272 script mcf5272_serial.cdl description "ColdFire MCF5272 serial device drivers." } # -------------------------------------------------------------------------- # ColdFire targets target coldfire_m5272c3 { alias { "Freescale M5272C3 evaluation board" } packages { CYGPKG_HAL_COLDFIRE CYGPKG_HAL_COLDFIRE_MCF5272 CYGPKG_HAL_COLDFIRE_M5272C3 CYGPKG_IO_SERIAL_COLDFIRE_MCF5272 } description "The M5272C3 target provides the packages needed to run eCos on the Freescale M5272C3 evaluation board." }
Attachment:
ecos-coldfire-2005-11-18.tar.gz
Description: GNU Zip compressed data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |