source: rtems/c/src/lib/libbsp/arm/tms570/configure.ac @ 8df196f7

Last change on this file since 8df196f7 was 991fdb33, checked in by Martin Galvan <martin.galvan@…>, on Feb 26, 2015 at 8:31:27 PM

ARM: Add BSP_START_NEEDS_REGISTER_INITIALIZATION

This patch adds the macro BSP_START_NEEDS_REGISTER_INITIALIZATION and
three hooks for BSP-specific register init code to arm/shared/start.S.
Said hooks are bsp_start_init_registers_core (intended for initializing
the ARM core registers), bsp_start_init_registers_banked_fiq (for the
FIQ mode banked registers) and bsp_start_init_registers_vfp (for the FPU
registers). BSP_START_NEEDS_REGISTER_INITIALIZATION would be defined in
a BSP's configure.ac (so that it appears in its bspopts.h).

This patch also adds the register init code required by the TMS570.
We've tested it with the tms570ls3137_hdk.cfg config and it works fine.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1##
2#
3# @file configure.ac
4#
5# @brief Configure script of LibBSP for the TMS570 board.
6#
7
8AC_PREREQ([2.69])
9AC_INIT([rtems-c-src-lib-libbsp-arm-tms570],[_RTEMS_VERSION],
10                                [https://devel.rtems.org/newticket])
11AC_CONFIG_SRCDIR([bsp_specs])
12RTEMS_TOP(../../../../../..)
13
14RTEMS_CANONICAL_TARGET_CPU
15AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
16RTEMS_BSP_CONFIGURE
17
18RTEMS_PROG_CC_FOR_TARGET
19RTEMS_CANONICALIZE_TOOLS
20RTEMS_PROG_CCAS
21
22RTEMS_CHECK_NETWORKING
23AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "no")
24
25RTEMS_BSPOPTS_SET([TMS570_SCI_BAUD_RATE],[*],[115200U])
26RTEMS_BSPOPTS_HELP([TMS570_SCI_BAUD_RATE],[baud for UARTs])
27
28RTEMS_BSPOPTS_SET([CONSOLE_USE_INTERRUPTS],[*],[1])
29RTEMS_BSPOPTS_HELP([CONSOLE_USE_INTERRUPTS],
30[The tms570 console driver can operate in either polled or interrupt mode.])
31
32RTEMS_BSPOPTS_SET([ARM_TMS570LS3137],[*],[0])
33RTEMS_BSPOPTS_HELP([ARM_TMS570LS3137],[target used for identify TMS570LS3137 board])
34
35RTEMS_BSPOPTS_SET([BSP_MINIMUM_TASK_STACK_SIZE],[*],[1024])
36RTEMS_BSPOPTS_HELP([BSP_MINIMUM_TASK_STACK_SIZE],[Suggested minimum task stack
37                        size in bytes])
38
39RTEMS_BSPOPTS_SET([BSP_START_NEEDS_REGISTER_INITIALIZATION],[*],[1])
40RTEMS_BSPOPTS_HELP([BSP_START_NEEDS_REGISTER_INITIALIZATION],
41                                        [The TMS570 needs to have the registers of its CPU initialized
42                                        to avoid CCMR4F errors])
43
44RTEMS_BSPOPTS_SET([TMS570_OSCILLATOR_MAIN],[*],[12000000U])
45RTEMS_BSPOPTS_HELP([TMS570_OSCILLATOR_MAIN],[main oscillator frequency in Hz])
46
47RTEMS_BSPOPTS_SET([TMS570_OSCILLATOR_RTC],[*],[32768U])
48RTEMS_BSPOPTS_HELP([TMS570_OSCILLATOR_RTC],[RTC oscillator frequency in Hz])
49
50RTEMS_BSPOPTS_SET([TMS570_CCLK],[*],[96000000U])
51RTEMS_BSPOPTS_HELP([TMS570_CCLK],[CPU clock in Hz])
52
53RTEMS_BSP_CLEANUP_OPTIONS(0, 1)
54RTEMS_BSP_LINKCMDS
55
56AC_CONFIG_FILES([Makefile])
57AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.