Changeset d922dab in rtems


Ignore:
Timestamp:
Nov 8, 2011, 10:13:32 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4c622e5
Parents:
d558bc49
Message:

2011-11-08 Sebastian Huber <sebastian.huber@…>

  • make/custom/mpc5566evb_spe.cfg, make/custom/mpc5674fevb_spe.cfg, startup/linkcmds.mpc5566evb_spe, startup/linkcmds.mpc5674fevb_spe, startup/reset.c: New files.
  • Makefile.am, preinstall.am: Reflect changes above.
  • startup/early-init.c: Added missing section attribute.
  • configure.ac, network/smsc9218i.c: New BSP options SMSC9218I_EDMA_RX_CHANNEL and SMSC9218I_EDMA_TX_CHANNEL. Enable reset at cleanup.
Location:
c/src/lib/libbsp/powerpc/mpc55xxevb
Files:
5 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog

    rd558bc49 rd922dab  
     12011-11-08      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * make/custom/mpc5566evb_spe.cfg, make/custom/mpc5674fevb_spe.cfg,
     4        startup/linkcmds.mpc5566evb_spe, startup/linkcmds.mpc5674fevb_spe,
     5        startup/reset.c: New files.
     6        * Makefile.am, preinstall.am: Reflect changes above.
     7        * startup/early-init.c: Added missing section attribute.
     8        * configure.ac, network/smsc9218i.c: New BSP options
     9        SMSC9218I_EDMA_RX_CHANNEL and SMSC9218I_EDMA_TX_CHANNEL.  Enable reset
     10        at cleanup.
     11
    1122011-08-31      Sebastian Huber <sebastian.huber@embedded-brains.de>
    213
  • c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am

    rd558bc49 rd922dab  
    2828dist_project_lib_DATA += startup/linkcmds.gwlcfm
    2929dist_project_lib_DATA += startup/linkcmds.mpc5566evb
     30dist_project_lib_DATA += startup/linkcmds.mpc5566evb_spe
    3031dist_project_lib_DATA += startup/linkcmds.mpc5674fevb
     32dist_project_lib_DATA += startup/linkcmds.mpc5674fevb_spe
    3133dist_project_lib_DATA += startup/linkcmds.phycore_mpc5554
    3234
     
    7173libbsp_a_SOURCES += startup/siu-pcr-config.c
    7274libbsp_a_SOURCES += startup/early-init.c
     75libbsp_a_SOURCES += startup/reset.c
    7376
    7477# clock
  • c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac

    rd558bc49 rd922dab  
    2525
    2626RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([gwlcfm],[])
    27 RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([mpc5566evb],[1])
    28 RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([mpc5674fevb],[1])
     27RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([mpc5566evb*],[1])
     28RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([mpc5674fevb*],[1])
    2929RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([*],[1])
    3030RTEMS_BSPOPTS_HELP_DATA_CACHE_ENABLED
    3131
    3232RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([gwlcfm],[])
    33 RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([mpc5566evb],[1])
    34 RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([mpc5674fevb],[1])
     33RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([mpc5566evb*],[1])
     34RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([mpc5674fevb*],[1])
    3535RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([*],[1])
    3636RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED
     37
     38RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[mpc5674fevb*],[255])
     39RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[mpc5566evb*],[127])
     40RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[*],[63])
     41RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_HANDLER_TABLE_SIZE],
     42[defines the maximum number of interrupt handlers])
    3743
    3844RTEMS_BSPOPTS_SET([MPC55XX_ESCI_CONSOLE_MINOR],[*],[0])
     
    4551
    4652RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_REF_CLOCK],[gwlcfm],[40000000])
    47 RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_REF_CLOCK],[mpc5674fevb],[40000000])
     53RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_REF_CLOCK],[mpc5674fevb*],[40000000])
    4854RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_REF_CLOCK],[*]     ,[8000000])
    4955RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_REF_CLOCK],
     
    5258
    5359RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_CLK_OUT],[gwlcfm],[66000000])
    54 RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_CLK_OUT],[mpc5674fevb],[264000000])
     60RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_CLK_OUT],[mpc5674fevb*],[264000000])
    5561RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_CLK_OUT],[*]     ,[128000000])
    5662RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_CLK_OUT],
     
    5864
    5965RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[gwlcfm],[10])
    60 RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[mpc5674fevb],[5])
     66RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[mpc5674fevb*],[5])
    6167RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_PREDIV],[*]     ,[1])
    6268RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_PREDIV],
     
    6470
    6571RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[gwlcfm],[99])
    66 RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[mpc5674fevb],[66])
     72RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[mpc5674fevb*],[66])
    6773RTEMS_BSPOPTS_SET([MPC55XX_FMPLL_MFD],[*]     ,[12])
    6874RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_MFD],
     
    8288[If defined the SMC91111 chip has the ethernet address loaded at reset.])
    8389
    84 RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[*],[(MPC55XX_EMIOS_CHANNEL_NUMBER-1)])
     90RTEMS_BSPOPTS_SET([SMSC9218I_EDMA_RX_CHANNEL],[*],[49])
     91RTEMS_BSPOPTS_HELP([SMSC9218I_EDMA_RX_CHANNEL],
     92[receive eDMA channel for SMSC9218I network interface])
     93
     94RTEMS_BSPOPTS_SET([SMSC9218I_EDMA_TX_CHANNEL],[*],[48])
     95RTEMS_BSPOPTS_HELP([SMSC9218I_EDMA_TX_CHANNEL],
     96[transmit eDMA channel for SMSC9218I network interface])
     97
     98RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5674fevb*],[31])
     99RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[*],[23])
    85100RTEMS_BSPOPTS_HELP([MPC55XX_CLOCK_EMIOS_CHANNEL],
    86 [Define to the eMIOS channel to use for the BSP clock.
    87  The default is the last channel.])
     101[selects the eMIOS channel for the RTEMS system tick (the default is the last channel)])
    88102
    89 RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5674fevb],[5674])
    90 RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5566evb],[5566])
     103RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5674fevb*],[5674])
     104RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[mpc5566evb*],[5566])
    91105RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[gwlcfm]    ,[5516])
    92106RTEMS_BSPOPTS_SET([MPC55XX_CHIP_TYPE],[*]         ,[5554])
     
    98112[if defined, builds in bootflags above the RCHW for setup in a debugger to avoid startup MMU setup])
    99113
    100 RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5674FEVB],[mpc5674fevb],[1])
     114RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5674FEVB],[mpc5674fevb*],[1])
    101115RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_MPC5674FEVB],[if defined, use custom settings for MPC5674FEVB board])
    102116
    103 RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5566EVB],[mpc5566evb],[1])
     117RTEMS_BSPOPTS_SET([MPC55XX_BOARD_MPC5566EVB],[mpc5566evb*],[1])
    104118RTEMS_BSPOPTS_HELP([MPC55XX_BOARD_MPC5566EVB],[if defined, use custom settings for MPC5566EVB board])
    105119
     
    115129RTEMS_BSPOPTS_HELP([RTEMS_BSP_I2C_EEPROM_DEVICE_PATH],[EEPROM device file path])
    116130
    117 RTEMS_BSPOPTS_SET([BOARD_PHYCORE_MPC5554],[phycore_mpc5554],[1])
    118 RTEMS_BSPOPTS_HELP([BOARD_PHYCORE_MPC5554],
    119 [If defined, use custom settings for the Phytec PhyCORE MPC5554 SOM])
    120 
    121131AC_CONFIG_FILES([Makefile
    122132include/bspopts.h])
    123133
    124 RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
     134RTEMS_BSP_CLEANUP_OPTIONS(0, 1)
    125135RTEMS_BSP_LINKCMDS
    126136
  • c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c

    rd558bc49 rd922dab  
    100100#define SMSC9218I_IRQ_CFG_GLOBAL_DISABLE SMSC9218I_IRQ_CFG_IRQ_TYPE
    101101
    102 #define SMSC9218I_EDMA_RX_CHANNEL 49
    103 
    104102#define SMSC9218I_EDMA_RX_TCD_CDF 0x10004
    105103
    106104#define SMSC9218I_EDMA_RX_TCD_BMF 0x10003
    107 
    108 #define SMSC9218I_EDMA_TX_CHANNEL 48
    109105
    110106#define SMSC9218I_TCD_BMF_LINK 0x10011
  • c/src/lib/libbsp/powerpc/mpc55xxevb/preinstall.am

    rd558bc49 rd922dab  
    6666PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.mpc5566evb
    6767
     68$(PROJECT_LIB)/linkcmds.mpc5566evb_spe: startup/linkcmds.mpc5566evb_spe $(PROJECT_LIB)/$(dirstamp)
     69        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.mpc5566evb_spe
     70PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.mpc5566evb_spe
     71
    6872$(PROJECT_LIB)/linkcmds.mpc5674fevb: startup/linkcmds.mpc5674fevb $(PROJECT_LIB)/$(dirstamp)
    6973        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.mpc5674fevb
    7074PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.mpc5674fevb
     75
     76$(PROJECT_LIB)/linkcmds.mpc5674fevb_spe: startup/linkcmds.mpc5674fevb_spe $(PROJECT_LIB)/$(dirstamp)
     77        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.mpc5674fevb_spe
     78PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.mpc5674fevb_spe
    7179
    7280$(PROJECT_LIB)/linkcmds.phycore_mpc5554: startup/linkcmds.phycore_mpc5554 $(PROJECT_LIB)/$(dirstamp)
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/early-init.c

    rd558bc49 rd922dab  
    3636#endif
    3737
    38 static void mpc55xx_siu_init(void)
     38static void BSP_START_TEXT_SECTION mpc55xx_siu_init(void)
    3939{
    4040  size_t i = 0;
Note: See TracChangeset for help on using the changeset viewer.