comparison packages/hal/arm/lpc2xxx/olpcl2294/current/cdl/hal_arm_lpc2xxx_olpcl2294.cdl @ 3140:098660d4164c

* cdl/hal_arm_lpc2xxx_olpcl2294.cdl: Add support for LPC-L2294-8M board: new CDL component CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_VARIANT with CDL option CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_RAMSIZE. * include/hal_platform_setup.h: Add support for LPC-L2294-8M board. * include/pkgconf/mlt_arm_lpc2xxx_olpcl2294_{rom,ram}.{h,ldi}: Define RAM size with new CDL option.
author sergeig
date Tue, 08 Nov 2011 16:47:45 +0000
parents 3940c09dd3fe
children 638187db5595
comparison
equal deleted inserted replaced
3139:005373cca888 3140:098660d4164c
1 # ==================================================================== 1 # ====================================================================
2 # 2 #
3 # hal_arm_lpc2xxx_olpcl2294.cdl 3 # hal_arm_lpc2xxx_olpcl2294.cdl
4 # 4 #
5 # ARM LPC2XXX OLPCL2294 development board package configuration 5 # ARM LPC2XXX OLPCL2294 development board package configuration
6 # data 6 # data, for both 1MB and 8MB of external RAM
7 # 7 #
8 # ==================================================================== 8 # ====================================================================
9 ## ####ECOSGPLCOPYRIGHTBEGIN#### 9 ## ####ECOSGPLCOPYRIGHTBEGIN####
10 ## ------------------------------------------- 10 ## -------------------------------------------
11 ## This file is part of eCos, the Embedded Configurable Operating System. 11 ## This file is part of eCos, the Embedded Configurable Operating System.
47 #####DESCRIPTIONEND#### 47 #####DESCRIPTIONEND####
48 # 48 #
49 # ==================================================================== 49 # ====================================================================
50 50
51 cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCL2294 { 51 cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCL2294 {
52 display "Olimex LPC-L2294-1MB development board HAL" 52 display "Olimex LPC-L2294 development board HAL"
53 parent CYGPKG_HAL_ARM_LPC2XXX 53 parent CYGPKG_HAL_ARM_LPC2XXX
54 define_header hal_arm_lpc2xxx_olpcl2294.h 54 define_header hal_arm_lpc2xxx_olpcl2294.h
55 include_dir cyg/hal 55 include_dir cyg/hal
56 hardware 56 hardware
57 description " 57 description "
58 The OLPCL2294 HAL package provides the support needed to run 58 The OLPCL2294 HAL package provides the support needed to run
59 eCos on Olimex LPC-L2294-1MB development board." 59 eCos on Olimex LPC-L2294-1MB or LPC-L2294-8MB development board."
60 60
61 compile olpcl2294_misc.c 61 compile olpcl2294_misc.c
62 62
63 requires { CYGHWR_HAL_ARM_LPC2XXX == "LPC2294" } 63 requires { CYGHWR_HAL_ARM_LPC2XXX == "LPC2294" }
64 64
67 puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H <pkgconf/hal_arm_lpc2xxx.h>" 67 puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H <pkgconf/hal_arm_lpc2xxx.h>"
68 puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_arm_lpc2xxx_olpcl2294.h>" 68 puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_arm_lpc2xxx_olpcl2294.h>"
69 puts $::cdl_header "#define HAL_PLATFORM_CPU \"ARM7TDMI-S\"" 69 puts $::cdl_header "#define HAL_PLATFORM_CPU \"ARM7TDMI-S\""
70 puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Olimex LPC-L2294 development board\"" 70 puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Olimex LPC-L2294 development board\""
71 puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\"" 71 puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\""
72 }
73
74 cdl_component CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_VARIANT {
75 display "OLPCL2294 variant used"
76 flavor data
77 default_value { "OLPCL2294_1M" }
78 legal_values { "OLPCL2294_1M" "OLPCL2294_8M" }
79 define -file system.h CYGHWR_OLIMEX_BOARD
80 description "Choose the OLIMEX LPC-L2294 board variant"
81
82 cdl_option CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_RAMSIZE {
83 display "External RAM size"
84 flavor data
85 calculated { is_substr(CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_VARIANT, "1M") ?
86 0x100000 : 0x800000 }
87 description "The installed RAM size depends on the board variant"
88 }
72 } 89 }
73 90
74 cdl_component CYG_HAL_STARTUP { 91 cdl_component CYG_HAL_STARTUP {
75 display "Startup type" 92 display "Startup type"
76 flavor data 93 flavor data