source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac @ 37dc047

Last change on this file since 37dc047 was 37dc047, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 21, 2018 at 8:00:43 AM

bsps: Remove AC_CONFIG_SRCDIR()

This AC_CONFIG_SRCDIR() is just a sanity check in this insane build
system. Since all content of
c/src/lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@ is bound to be moved it
makes no sense to keep it.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 9.5 KB
Line 
1##
2#
3# @file
4#
5# @ingroup mpc55xx_config
6#
7# @brief Configure script of LibBSP for the MPC55xx evaluation boards.
8#
9
10AC_PREREQ([2.69])
11AC_INIT([rtems-c-src-lib-libbsp-powerpc-mpc55xxevb],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
12RTEMS_TOP(../../../../../..)
13RTEMS_SOURCE_TOP
14RTEMS_BUILD_TOP
15RTEMS_BSP_LINKCMDS
16
17RTEMS_CANONICAL_TARGET_CPU
18AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
19RTEMS_BSP_CONFIGURE
20
21
22
23RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([gwlcfm],[])
24RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([mpc5643l*],[])
25RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([*],[1])
26RTEMS_BSPOPTS_HELP_DATA_CACHE_ENABLED
27
28RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([gwlcfm],[])
29RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([*],[1])
30RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED
31
32RTEMS_BSPOPTS_SET([BSP_DATA_CACHE_USE_WRITE_THROUGH],[mpc5674f_ecu508*],[1])
33RTEMS_BSPOPTS_SET([BSP_DATA_CACHE_USE_WRITE_THROUGH],[*],[])
34RTEMS_BSPOPTS_HELP([BSP_DATA_CACHE_USE_WRITE_THROUGH],
35[use write-through for data cache])
36
37RTEMS_BSPOPTS_SET([PPC_EXC_CONFIG_USE_FIXED_HANDLER],[*],[1])
38RTEMS_BSPOPTS_HELP([PPC_EXC_CONFIG_USE_FIXED_HANDLER],
39[use fixed high-level exception handler])
40
41RTEMS_BSPOPTS_SET([PPC_EXC_CONFIG_BOOKE_ONLY],[*],[1])
42RTEMS_BSPOPTS_HELP([PPC_EXC_CONFIG_BOOKE_ONLY],
43[only support Book E exception types])
44
45RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[mpc5643l*],[127])
46RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[mpc5566*],[127])
47RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[mpc5674f*],[255])
48RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[*],[63])
49RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_HANDLER_TABLE_SIZE],
50[defines the maximum number of interrupt handlers])
51
52RTEMS_BSPOPTS_SET([MPC55XX_CONSOLE_MINOR],[mpc5674f_ecu508*],[2])
53RTEMS_BSPOPTS_SET([MPC55XX_CONSOLE_MINOR],[*],[0])
54RTEMS_BSPOPTS_HELP([MPC55XX_CONSOLE_MINOR],
55[determines which serial device will be registered as /dev/console])
56
57RTEMS_BSPOPTS_SET([BSP_DEFAULT_BAUD_RATE],[*],[115200])
58RTEMS_BSPOPTS_HELP([BSP_DEFAULT_BAUD_RATE],
59[default console baud])
60
61RTEMS_BSPOPTS_SET([MPC55XX_ESCI_USE_INTERRUPTS],[*],[1])
62RTEMS_BSPOPTS_HELP([MPC55XX_ESCI_USE_INTERRUPTS],
63[define to zero or one to disable or enable interrupts for the eSCI devices])
64
65RTEMS_BSPOPTS_SET([MPC55XX_REFERENCE_CLOCK],[gwlcfm],[40000000])
66RTEMS_BSPOPTS_SET([MPC55XX_REFERENCE_CLOCK],[mpc5643l_evb*],[40000000])
67RTEMS_BSPOPTS_SET([MPC55XX_REFERENCE_CLOCK],[mpc5668g*],[25000000])
68RTEMS_BSPOPTS_SET([MPC55XX_REFERENCE_CLOCK],[mpc5674f*],[40000000])
69RTEMS_BSPOPTS_SET([MPC55XX_REFERENCE_CLOCK],[*],[8000000])
70RTEMS_BSPOPTS_HELP([MPC55XX_REFERENCE_CLOCK],
71[Must be defined to be the external reference clock (in Hz)
72 for clock generation])
73
74RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK],[gwlcfm],[66000000])
75RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK],[mpc5668g*],[116000000])
76RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK],[mpc5674f*],[264000000])
77RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK],[*]     ,[128000000])
78RTEMS_BSPOPTS_HELP([MPC55XX_SYSTEM_CLOCK],
79[The system clock frequency in Hz.])
80
81RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[gwlcfm],[10])
82RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[mpc5668g*],[6])
83RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[mpc5674f*],[5])
84RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[*]     ,[1])
85RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_PREDIV],
86[Must be defined to be the PLL predivider factor for clock generation])
87
88RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[gwlcfm],[99])
89RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[mpc5668g*],[111])
90RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[mpc5674f*],[66])
91RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[*]     ,[12])
92RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_MFD],
93[Must be defined to be the PLL multiplication factor for clock generation])
94
95RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_ESYNCR1_CLKCFG],[mpc5674f_rsm6],[6])
96RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_ESYNCR1_CLKCFG],[*],[7])
97RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_ESYNCR1_CLKCFG],
98[the FMPLL ESYNCR1[CLKCFG] value])
99
100RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK_DIVIDER],[mpc5674f*],[2])
101RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK_DIVIDER],[*],[1])
102RTEMS_BSPOPTS_HELP([MPC55XX_SYSTEM_CLOCK_DIVIDER],
103[system clock divider])
104
105RTEMS_BSPOPTS_SET([MPC55XX_EMIOS_PRESCALER],[gwlcfm],[66])
106RTEMS_BSPOPTS_SET([MPC55XX_EMIOS_PRESCALER],[mpc5643l*],[])
107RTEMS_BSPOPTS_SET([MPC55XX_EMIOS_PRESCALER],[*]     ,[1])
108RTEMS_BSPOPTS_HELP([MPC55XX_EMIOS_PRESCALER],
109[Must be defined to set the EMIOS prescaler])
110
111RTEMS_BSPOPTS_SET([MPC55XX_NULL_POINTER_PROTECTION],[mpc5566*],[1])
112RTEMS_BSPOPTS_SET([MPC55XX_NULL_POINTER_PROTECTION],[mpc5674f*],[1])
113RTEMS_BSPOPTS_SET([MPC55XX_NULL_POINTER_PROTECTION],[*],[])
114RTEMS_BSPOPTS_HELP([MPC55XX_NULL_POINTER_PROTECTION],
115[enable NULL pointer protection])
116
117RTEMS_BSPOPTS_SET([HAS_SMC91111],[phycore_mpc5554],[1])
118RTEMS_BSPOPTS_HELP([HAS_SMC91111],
119[If defined the board has the SMC91111 networking chip.])
120
121RTEMS_BSPOPTS_SET([SMC91111_ENADDR_IS_SETUP],[phycore_mpc5554],[1])
122RTEMS_BSPOPTS_HELP([SMC91111_ENADDR_IS_SETUP],
123[If defined the SMC91111 chip has the ethernet address loaded at reset.])
124
125RTEMS_BSPOPTS_SET([SMSC9218I_EDMA_RX_CHANNEL],[*],[49])
126RTEMS_BSPOPTS_HELP([SMSC9218I_EDMA_RX_CHANNEL],
127[receive eDMA channel for SMSC9218I network interface])
128
129RTEMS_BSPOPTS_SET([SMSC9218I_EDMA_TX_CHANNEL],[*],[48])
130RTEMS_BSPOPTS_HELP([SMSC9218I_EDMA_TX_CHANNEL],
131[transmit eDMA channel for SMSC9218I network interface])
132
133RTEMS_BSPOPTS_SET([SMSC9218I_BIG_ENDIAN_SUPPORT],[mpc5674f_ecu508*],[1])
134RTEMS_BSPOPTS_HELP([SMSC9218I_BIG_ENDIAN_SUPPORT],
135[enable big endian support for SMSC9218I network interface])
136
137RTEMS_BSPOPTS_SET([SMSC9218I_ENABLE_LED_OUTPUTS],[mpc5674f_ecu508*],[1])
138RTEMS_BSPOPTS_HELP([SMSC9218I_ENABLE_LED_OUTPUTS],
139[enable LED outputs for SMSC9218I network interface])
140
141RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[mpc5674f_ecu508*],[433])
142RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[mpc5566*],[186])
143RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[*],[])
144RTEMS_BSPOPTS_HELP([SMSC9218I_RESET_PIN],
145[reset pin for SMSC9218I network interface])
146
147RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[mpc5674f_ecu508*],[450])
148RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[mpc5566*],[193])
149RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[*],[])
150RTEMS_BSPOPTS_HELP([SMSC9218I_IRQ_PIN],
151[IRQ pin for SMSC9218I network interface])
152
153RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5643l*],[])
154RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5668g*],[])
155RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5674f*],[31])
156RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[*],[23])
157RTEMS_BSPOPTS_HELP([MPC55XX_CLOCK_EMIOS_CHANNEL],
158[selects the eMIOS channel for the RTEMS system tick (the default is the last channel)])
159
160RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_PIT_CHANNEL],[mpc5643l*],[3])
161RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_PIT_CHANNEL],[mpc5668g*],[8])
162RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_PIT_CHANNEL],[*],[])
163RTEMS_BSPOPTS_HELP([MPC55XX_CLOCK_PIT_CHANNEL],
164[selects the PIT channel for the RTEMS system tick (the default is the last channel)])
165
166RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[gwlcfm],[5516])
167RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5566*],[5566])
168RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5643l*],[5643])
169RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5668g*],[5668])
170RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5674f*],[5674])
171RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[*],[5554])
172RTEMS_BSPOPTS_HELP([MPC55XX_CHIP_TYPE],
173[specifies the chip type in use (e.g. 5554 for MPC5554)])
174
175RTEMS_BSPOPTS_SET([MPC55XX_CHIP_FAMILY],[*],[(MPC55XX_CHIP_TYPE / 10)])
176RTEMS_BSPOPTS_HELP([MPC55XX_CHIP_FAMILY],
177[specifies the chip family in use (e.g. 555 for MPC5554)])
178
179RTEMS_BSPOPTS_SET([MPC55XX_EARLY_STACK_SIZE],[*],[1024])
180RTEMS_BSPOPTS_HELP([MPC55XX_EARLY_STACK_SIZE],
181[size of the early initialization stack in bytes])
182
183RTEMS_BSPOPTS_SET([MPC55XX_BOOTFLAGS],[*],[])
184RTEMS_BSPOPTS_HELP([MPC55XX_BOOTFLAGS],
185[if defined, builds in bootflags above the RCHW for setup in a debugger to avoid startup MMU setup])
186
187RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5674FEVB],[mpc5674fevb*],[1])
188RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_MPC5674FEVB],[if defined, use custom settings for MPC5674FEVB board])
189
190RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5566EVB],[mpc5566evb*],[1])
191RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_MPC5566EVB],[if defined, use custom settings for MPC5566EVB board])
192
193RTEMS_BSPOPTS_SET([MPC55XX_BOARD_GWLCFM],[gwlcfm],[1])
194RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_GWLCFM],[if defined, use custom settings for GWLCFM board])
195
196RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5674F_ECU508],[mpc5674f_ecu508*],[1])
197RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_MPC5674F_ECU508],[if defined, use custom settings for ECU508 board])
198
199RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5674F_RSM6],[mpc5674f_rsm6],[1])
200RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_MPC5674F_RSM6],[if defined, use custom settings for RSM6 board])
201
202RTEMS_BSPOPTS_SET([MPC55XX_BOARD_PHYCORE_MPC5554],[phycore_mpc5554],[1])
203RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_PHYCORE_MPC5554],[if defined, use custom settings for phyCORE MPC5554 board])
204
205RTEMS_BSPOPTS_SET([RTEMS_BSP_I2C_EEPROM_DEVICE_NAME],[gwlcfm],['"eeprom"'])
206RTEMS_BSPOPTS_HELP([RTEMS_BSP_I2C_EEPROM_DEVICE_NAME],[EEPROM name for LibI2C])
207RTEMS_BSPOPTS_SET([RTEMS_BSP_I2C_EEPROM_DEVICE_PATH],[gwlcfm],['"/dev/i2c1.eeprom"'])
208RTEMS_BSPOPTS_HELP([RTEMS_BSP_I2C_EEPROM_DEVICE_PATH],[EEPROM device file path])
209
210RTEMS_BSPOPTS_SET([MPC55XX_NEEDS_LOW_LEVEL_INIT],[mpc5674f_*app],[])
211RTEMS_BSPOPTS_SET([MPC55XX_NEEDS_LOW_LEVEL_INIT],[*],[1])
212RTEMS_BSPOPTS_HELP([MPC55XX_NEEDS_LOW_LEVEL_INIT],[if defined, do low level initialization])
213
214RTEMS_BSPOPTS_SET([MPC55XX_ENABLE_START_PROLOGUE],[mpc5674f_rsm6],[1])
215RTEMS_BSPOPTS_HELP([MPC55XX_ENABLE_START_PROLOGUE],[if defined, enable start prologue])
216
217AC_CONFIG_FILES([Makefile])
218
219RTEMS_BSP_CLEANUP_OPTIONS
220
221RTEMS_PPC_EXCEPTIONS
222
223AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.