Mercurial > flash_v2
view packages/hal/powerpc/mbx/current/include/pkgconf/hal_powerpc_mbx.h @ 72:da3908c9cd10 ecos-sw-2000-02-17
Merge from eCos master repository on 2000-02-17-18:56:14-GMT
| author | jlarmour |
|---|---|
| date | Thu, 17 Feb 2000 19:38:13 +0000 |
| parents | c5536bad4c24 |
| children |
line wrap: on
line source
#ifndef CYGONCE_PKGCONF_HAL_POWERPC_MBX_H #define CYGONCE_PKGCONF_HAL_POWERPC_MBX_H //============================================================================= // // pkgconf/hal_powerpc_mbx.h // // HAL configuration file // //============================================================================= //####COPYRIGHTBEGIN#### // // ------------------------------------------- // The contents of this file are subject to the Red Hat eCos Public License // Version 1.1 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://www.redhat.com/ // // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations under // the License. // // The Original Code is eCos - Embedded Configurable Operating System, // released September 30, 1998. // // The Initial Developer of the Original Code is Red Hat. // Portions created by Red Hat are // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. // All Rights Reserved. // ------------------------------------------- // //####COPYRIGHTEND#### //============================================================================= //#####DESCRIPTIONBEGIN#### // // Author(s): hmt // Contributors: hmt // Date: 1999-06-08 // Purpose: To allow the user to edit HAL configuration options. // Description: // //####DESCRIPTIONEND#### // //============================================================================= /* --------------------------------------------------------------------- {{CFG_DATA cdl_package CYGPKG_HAL_POWERPC_MBX { display "Motorola MBX PowerPC evaluation board" type radio parent CYGPKG_HAL_POWERPC requires CYGPKG_HAL_QUICC requires CYGPKG_HAL_POWERPC_MPC8xx platform mbx description " The MBX HAL package provides the support needed to run eCos on a Motorola MBX board equipped with a PowerPC processor." } cdl_option CYGHWR_HAL_POWERPC_MBX_STARTUP { display "Startup type" parent CYGPKG_HAL_POWERPC_MBX #type count type enum legal_values ram rom startup description " When targetting the MBX board for RAM bootstrap it is expected that the image will be downloaded to eCos GDB stub boot ROMs using powerpc-eabi-gdb." } cdl_option CYGHWR_HAL_POWERPC_BOARD_SPEED { display "Development board clock speed (MHz)" parent CYGPKG_HAL_POWERPC_MBX #type count type enum legal_values 40 50 description " MBX Development Boards have various system clock speeds depending on the processor fitted. Select the clock speed appropriate for your board so that the system can set the serial baud rate correctly, amongst other things." # This is an enum because the system selects code en masse rather # than doing arithmetic with the value; making it a count and # setting it to 30, for example, would not work. } cdl_option CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH { display "Boot ROM is 32-bit Flash device" parent CYGPKG_HAL_POWERPC_MBX type boolean description " MBX Development Boards have a socketed 8-bit ROM (AM27F040, AM29F040 or similar) and a permanently soldered 32-bit flash device. Which is used for booting is link selectable (refer to the MBX Series documentation from Motorola). Enable this option when booting from the 32-bit flash so that the correct memory timing and access method is initialized. This consideration does apply to RAM start eCos applications as well as ROM start or stub ROMs." } }}CFG_DATA */ #define CYGHWR_HAL_POWERPC_MBX_STARTUP ram #define CYGHWR_HAL_POWERPC_BOARD_SPEED 50 // Normally, the 8-bit socketed ROM is used #undef CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH // Real-time clock/counter specifics // Period is busclock/16/100. #define CYGNUM_HAL_RTC_NUMERATOR 1000000000 #define CYGNUM_HAL_RTC_DENOMINATOR 100 #if 40 == CYGHWR_HAL_POWERPC_BOARD_SPEED # define CYGNUM_HAL_RTC_PERIOD 25000 #elif 50 == CYGHWR_HAL_POWERPC_BOARD_SPEED # define CYGNUM_HAL_RTC_PERIOD 31250 #else # error Bad Board speed defined: see CYGBLD_HAL_PLATFORM_H #endif // 33.3333MHz from FADS port: //#define CYGNUM_HAL_RTC_PERIOD 20833 /* -------------------------------------------------------------------*/ #endif /* CYGONCE_PKGCONF_HAL_POWERPC_MBX_H */ /* EOF hal_powerpc_mbx.h */
