1 | ## |
---|
2 | # |
---|
3 | # @file |
---|
4 | # |
---|
5 | # @ingroup mpc55xx_config |
---|
6 | # |
---|
7 | # @brief Configure script of LibBSP for the MPC55xx evaluation boards. |
---|
8 | # |
---|
9 | |
---|
10 | AC_PREREQ(2.60) |
---|
11 | AC_INIT([rtems-c-src-lib-libbsp-powerpc-mpc55xxevb],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
12 | AC_CONFIG_SRCDIR([bsp_specs]) |
---|
13 | RTEMS_TOP(../../../../../..) |
---|
14 | |
---|
15 | RTEMS_CANONICAL_TARGET_CPU |
---|
16 | AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10]) |
---|
17 | RTEMS_BSP_CONFIGURE |
---|
18 | |
---|
19 | RTEMS_PROG_CC_FOR_TARGET |
---|
20 | RTEMS_CANONICALIZE_TOOLS |
---|
21 | RTEMS_PROG_CCAS |
---|
22 | |
---|
23 | RTEMS_CHECK_NETWORKING |
---|
24 | AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") |
---|
25 | |
---|
26 | RTEMS_BSPOPTS_SET([DATA_CACHE_ENABLE],[gwlcfm],[0]) |
---|
27 | RTEMS_BSPOPTS_SET([DATA_CACHE_ENABLE],[mpc5566evb],[1]) |
---|
28 | RTEMS_BSPOPTS_SET([DATA_CACHE_ENABLE],[*],[1]) |
---|
29 | RTEMS_BSPOPTS_HELP([DATA_CACHE_ENABLE], |
---|
30 | [If defined, the data cache will be enabled after address translation |
---|
31 | is turned on.]) |
---|
32 | |
---|
33 | RTEMS_BSPOPTS_SET([INSTRUCTION_CACHE_ENABLE],[gwlcfm],[0]) |
---|
34 | RTEMS_BSPOPTS_SET([INSTRUCTION_CACHE_ENABLE],[mpc5566evb],[1]) |
---|
35 | RTEMS_BSPOPTS_SET([INSTRUCTION_CACHE_ENABLE],[*],[1]) |
---|
36 | RTEMS_BSPOPTS_HELP([INSTRUCTION_CACHE_ENABLE], |
---|
37 | [If defined, the instruction cache will be enabled after address translation |
---|
38 | is turned on.]) |
---|
39 | |
---|
40 | RTEMS_BSPOPTS_SET([UARTS_USE_TERMIOS],[*],[0]) |
---|
41 | RTEMS_BSPOPTS_HELP([UARTS_USE_TERMIOS], |
---|
42 | [Define to 1 if you want termios support for every port. |
---|
43 | Termios support is independent of the choice of UART I/O mode.]) |
---|
44 | |
---|
45 | RTEMS_BSPOPTS_SET([CONSOLE_MINOR],[gwlcfm],[MPC55XX_ESCI_A_MINOR]) |
---|
46 | RTEMS_BSPOPTS_SET([CONSOLE_MINOR],[*] ,[MPC55XX_ESCI_A_MINOR]) |
---|
47 | RTEMS_BSPOPTS_HELP([CONSOLE_MINOR], |
---|
48 | [Must be defined to be one of MPC55XX_ESCI_A_MINOR or MPC55XX_ESCI_B_MINOR. Determines which |
---|
49 | device will be registered as /dev/console.]) |
---|
50 | |
---|
51 | RTEMS_BSPOPTS_SET([UARTS_IO_MODE],[gwlcfm],[1]) |
---|
52 | RTEMS_BSPOPTS_SET([UARTS_IO_MODE],[*] ,[0]) |
---|
53 | RTEMS_BSPOPTS_HELP([UARTS_IO_MODE], |
---|
54 | [Define to 1 if you want interrupt-driven I/O for the SCI ports.]) |
---|
55 | |
---|
56 | RTEMS_BSPOPTS_SET([PRINTK_MINOR],[gwlcfm],[MPC55XX_ESCI_A_MINOR]) |
---|
57 | RTEMS_BSPOPTS_SET([PRINTK_MINOR],[*] ,[MPC55XX_ESCI_B_MINOR]) |
---|
58 | RTEMS_BSPOPTS_HELP([PRINTK_MINOR], |
---|
59 | [Must be defined to be one of MPC55XX_ESCI_A_MINOR or MPC55XX_ESCI_B_MINOR. Determines which |
---|
60 | device is used for output by printk(). The printk port always uses polled |
---|
61 | I/O. Don't open the printk port from RTEMS unless also using polled I/O |
---|
62 | for the SCI ports.]) |
---|
63 | |
---|
64 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_REF_CLOCK],[gwlcfm],[40000000]) |
---|
65 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_REF_CLOCK],[*] ,[8000000]) |
---|
66 | RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_REF_CLOCK], |
---|
67 | [Must be defined to be the external reference clock (in Hz) |
---|
68 | for clock generation]) |
---|
69 | |
---|
70 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_CLK_OUT],[gwlcfm],[66000000]) |
---|
71 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_CLK_OUT],[*] ,[128000000]) |
---|
72 | RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_CLK_OUT], |
---|
73 | [Must be defined to be the PLL output clock (in Hz) for clock generation]) |
---|
74 | |
---|
75 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[gwlcfm],[10]) |
---|
76 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[*] ,[1]) |
---|
77 | RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_PREDIV], |
---|
78 | [Must be defined to be the PLL predivider factor for clock generation]) |
---|
79 | |
---|
80 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[gwlcfm],[99]) |
---|
81 | RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[*] ,[12]) |
---|
82 | RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_MFD], |
---|
83 | [Must be defined to be the PLL multiplication factor for clock generation]) |
---|
84 | |
---|
85 | RTEMS_BSPOPTS_SET([MPC55XX_EMIOS_PRESCALER],[gwlcfm],[66]) |
---|
86 | RTEMS_BSPOPTS_SET([MPC55XX_EMIOS_PRESCALER],[*] ,[1]) |
---|
87 | RTEMS_BSPOPTS_HELP([MPC55XX_EMIOS_PRESCALER], |
---|
88 | [Must be defined to set the EMIOS prescaler]) |
---|
89 | |
---|
90 | RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5566evb],[5566]) |
---|
91 | RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[gwlcfm] ,[5516]) |
---|
92 | RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[*] ,[5554]) |
---|
93 | RTEMS_BSPOPTS_HELP([MPC55XX_CHIP_TYPE], |
---|
94 | [specifies the chip type in use (e.g. 5554 for MPC5554)]) |
---|
95 | |
---|
96 | RTEMS_BSPOPTS_SET([BOARD_GWLCFM],[gwlcfm],[1]) |
---|
97 | RTEMS_BSPOPTS_HELP([BOARD_GWLCFM], |
---|
98 | [If defined, use custom settings of for the GW_LCFM board]) |
---|
99 | |
---|
100 | RTEMS_BSPOPTS_SET([RTEMS_BSP_I2C_EEPROM_DEVICE_NAME],[gwlcfm],['"eeprom"']) |
---|
101 | RTEMS_BSPOPTS_HELP([RTEMS_BSP_I2C_EEPROM_DEVICE_NAME],[EEPROM name for LibI2C]) |
---|
102 | RTEMS_BSPOPTS_SET([RTEMS_BSP_I2C_EEPROM_DEVICE_PATH],[gwlcfm],['"/dev/i2c1.eeprom"']) |
---|
103 | RTEMS_BSPOPTS_HELP([RTEMS_BSP_I2C_EEPROM_DEVICE_PATH],[EEPROM device file path]) |
---|
104 | |
---|
105 | AC_CONFIG_FILES([Makefile |
---|
106 | include/bspopts.h]) |
---|
107 | |
---|
108 | RTEMS_BSP_CLEANUP_OPTIONS(0, 0) |
---|
109 | RTEMS_BSP_LINKCMDS |
---|
110 | |
---|
111 | RTEMS_PPC_EXCEPTIONS |
---|
112 | |
---|
113 | AC_OUTPUT |
---|