Changeset 2c4d9874 in rtems


Ignore:
Timestamp:
Oct 5, 2009, 10:33:31 AM (10 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
b3e228e
Parents:
aa5ddd3
Message:

renamed lpc24xx BSPs, reorganized linkcmds

Location:
c/src/lib/libbsp/arm/lpc24xx
Files:
4 added
3 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/ChangeLog

    raa5ddd3 r2c4d9874  
     12009-10-04      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * startup/linkcmds.lpc2478, startup/linkcmds.lpc2478_ncs,
     4        startup/linkcmds.lpc2478_ncs_ram: Removed files.
     5        * startup/linkcmds.lpc24xx_ea, startup/linkcmds.lpc24xx_ncs_ram,
     6        startup/linkcmds.lpc24xx_ncs_rom_ext,
     7        startup/linkcmds.lpc24xx_ncs_rom_int: New files.
     8        * Makefile.am, README, configure.ac, preinstall.am, misc/io.c,
     9        startup/linkcmds: Changes throughout.
     10
    1112009-09-21      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    212
  • c/src/lib/libbsp/arm/lpc24xx/Makefile.am

    raa5ddd3 r2c4d9874  
    5757
    5858dist_project_lib_DATA += ../shared/startup/linkcmds.base \
    59         startup/linkcmds.lpc2478 \
    60         startup/linkcmds.lpc2478_ncs \
    61         startup/linkcmds.lpc2478_ncs_ram
     59        startup/linkcmds \
     60        startup/linkcmds.lpc24xx_ea \
     61        startup/linkcmds.lpc24xx_ncs_rom_int \
     62        startup/linkcmds.lpc24xx_ncs_rom_ext \
     63        startup/linkcmds.lpc24xx_ncs_ram
    6264
    6365###############################################################################
  • c/src/lib/libbsp/arm/lpc24xx/README

    raa5ddd3 r2c4d9874  
    22#  $Id$
    33#
    4 
    5 Note: A Binutils version with REGION_ALIAS feature is required to link the BSP.
    64
    75Development Board: QVGA Base Board from Embedded Artists
     
    1412        o Clock
    1513        o RTC
    16         o SSP (SPI mode): This driver is in active development.  Use with care.
     14        o SSP (SPI mode)
    1715        o Network
    1816        o I2C
     
    4240
    4341        Board:      NextGenNCS
    44         Processor:  NXP LPC2478
     42        Processor:  NXP LPC2478 or LPC2470
    4543        SDRAM:      8MByte, 16 bit wide
    4644        Ext. Flash: 1MByte, 16 bit wide
  • c/src/lib/libbsp/arm/lpc24xx/configure.ac

    raa5ddd3 r2c4d9874  
    33# @file
    44#
    5 # @ingroup mpc55xx_config
    6 #
    7 # @brief Configure script of LibBSP for the LPC247X boards.
     5# @brief Configure script of LibBSP for the LPC24XX boards.
    86#
    97
     
    3634RTEMS_BSPOPTS_HELP([LPC24XX_UART_BAUD],[baud for UARTs])
    3735
    38 RTEMS_BSPOPTS_SET([LPC24XX_HAS_UBOOT],[lpc2478],[1])
    39 RTEMS_BSPOPTS_SET([LPC24XX_HAS_UBOOT],[lpc2478_ncs_ram],[1])
    40 RTEMS_BSPOPTS_HELP([LPC24XX_HAS_UBOOT],[enable U-Boot startup])
    41 
    42 RTEMS_BSPOPTS_SET([LPC24XX_ETHERNET_RMII],[lpc2478_ncs],[1])
    43 RTEMS_BSPOPTS_SET([LPC24XX_ETHERNET_RMII],[lpc2478_ncs_ram],[1])
     36RTEMS_BSPOPTS_SET([LPC24XX_ETHERNET_RMII],[lpc24xx_ncs_*],[1])
    4437RTEMS_BSPOPTS_HELP([LPC24XX_ETHERNET_RMII],[enable RMII for Ethernet])
    4538
    46 RTEMS_BSPOPTS_SET([LPC24XX_EMC_MICRON],[lpc2478_ncs],[1])
    47 RTEMS_BSPOPTS_HELP([LPC24XX_EMC_MICRON],[use Micron configuration for EMC])
     39RTEMS_BSPOPTS_SET([LPC24XX_EMC_MICRON],[lpc24xx_ncs_rom_*],[1])
     40RTEMS_BSPOPTS_HELP([LPC24XX_EMC_MICRON],[enable Micron configuration for EMC])
     41
     42RTEMS_BSPOPTS_SET([LPC24XX_EMC_NUMONYX],[lpc24xx_ncs_rom_*],[1])
     43RTEMS_BSPOPTS_HELP([LPC24XX_EMC_NUMONYX],[enable Numonyx configuration for EMC])
     44
     45RTEMS_BSPOPTS_SET([LPC24XX_EMC_TEST],[*],[])
     46RTEMS_BSPOPTS_HELP([LPC24XX_EMC_TEST],[enable tests for EMC])
    4847
    4948RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_CONSOLE],[*],[0])
     
    5352RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_UART_1],[configuration for UART 1])
    5453
    55 RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_2],[*],[])
     54RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_2],[lpc24xx_ncs_*],[0])
    5655RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_UART_2],[configuration for UART 2])
    5756
    58 RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_3],[*],[])
     57RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_3],[lpc24xx_ncs_*],[0])
    5958RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_UART_3],[configuration for UART 3])
    6059
    61 RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_I2C_0],[lpc2478_ncs_ram],[0])
     60RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_I2C_0],[lpc24xx_ncs_*],[0])
    6261RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_I2C_0],[configuration for I2C 0])
    6362
    64 RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_I2C_1],[*],[])
     63RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_I2C_1],[lpc24xx_ncs_*],[1])
    6564RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_I2C_1],[configuration for I2C 1])
    6665
     
    6867RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_I2C_2],[configuration for I2C 2])
    6968
     69RTEMS_BSPOPTS_SET([BSP_START_RESET_VECTOR],[lpc24xx_ncs_rom_ext],[0x80000040])
     70RTEMS_BSPOPTS_HELP([BSP_START_RESET_VECTOR],[reset vector address for BSP start])
     71
    7072RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
    7173
  • c/src/lib/libbsp/arm/lpc24xx/misc/io.c

    raa5ddd3 r2c4d9874  
    6161  /* UART */
    6262  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 0, 0, 0, 2, 0, 3, LPC24XX_IO_ALTERNATE_0),
    63   LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 1, 0, 0, 15, 0, 16, LPC24XX_IO_ALTERNATE_1),
    64   LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 1, 1, 2, 0, 2, 1, LPC24XX_IO_ALTERNATE_2),
    65   LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 1, 2, 3, 16, 3, 17, LPC24XX_IO_ALTERNATE_1),
    66   LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 2, 0, 0, 10, 0, 11, LPC24XX_IO_ALTERNATE_1),
     63  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 1, 0, 0, 15, 0, 16, LPC24XX_IO_ALTERNATE_0),
     64  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 1, 1, 2, 0, 2, 1, LPC24XX_IO_ALTERNATE_1),
     65  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 1, 2, 3, 16, 3, 17, LPC24XX_IO_ALTERNATE_2),
     66  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 2, 0, 0, 10, 0, 11, LPC24XX_IO_ALTERNATE_0),
    6767  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 2, 1, 2, 8, 2, 9, LPC24XX_IO_ALTERNATE_1),
    6868  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 2, 2, 4, 22, 4, 23, LPC24XX_IO_ALTERNATE_1),
    69   LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 3, 0, 0, 0, 0, 1, LPC24XX_IO_ALTERNATE_2),
     69  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 3, 0, 0, 0, 0, 1, LPC24XX_IO_ALTERNATE_1),
    7070  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 3, 1, 0, 25, 0, 26, LPC24XX_IO_ALTERNATE_2),
    7171  LPC24XX_IO_ENTRY(LPC24XX_MODULE_UART, 3, 2, 4, 28, 4, 29, LPC24XX_IO_ALTERNATE_2),
  • c/src/lib/libbsp/arm/lpc24xx/preinstall.am

    raa5ddd3 r2c4d9874  
    126126PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.base
    127127
    128 $(PROJECT_LIB)/linkcmds.lpc2478: startup/linkcmds.lpc2478 $(PROJECT_LIB)/$(dirstamp)
    129         $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc2478
    130 PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc2478
     128$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
     129        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
     130PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
    131131
    132 $(PROJECT_LIB)/linkcmds.lpc2478_ncs: startup/linkcmds.lpc2478_ncs $(PROJECT_LIB)/$(dirstamp)
    133         $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc2478_ncs
    134 PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc2478_ncs
     132$(PROJECT_LIB)/linkcmds.lpc24xx_ea: startup/linkcmds.lpc24xx_ea $(PROJECT_LIB)/$(dirstamp)
     133        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ea
     134PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ea
    135135
    136 $(PROJECT_LIB)/linkcmds.lpc2478_ncs_ram: startup/linkcmds.lpc2478_ncs_ram $(PROJECT_LIB)/$(dirstamp)
    137         $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc2478_ncs_ram
    138 PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc2478_ncs_ram
     136$(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_int: startup/linkcmds.lpc24xx_ncs_rom_int $(PROJECT_LIB)/$(dirstamp)
     137        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_int
     138PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_int
    139139
     140$(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_ext: startup/linkcmds.lpc24xx_ncs_rom_ext $(PROJECT_LIB)/$(dirstamp)
     141        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_ext
     142PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_ext
     143
     144$(PROJECT_LIB)/linkcmds.lpc24xx_ncs_ram: startup/linkcmds.lpc24xx_ncs_ram $(PROJECT_LIB)/$(dirstamp)
     145        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_ram
     146PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_ram
     147
  • c/src/lib/libbsp/arm/lpc24xx/startup/linkcmds

    raa5ddd3 r2c4d9874  
    1 /**
    2  * @file
    3  *
    4  * LPC2478 (QVGA Base Board from Embedded Artists).
    5  */
    6 
    7 /*
    8  * WARNING: This is likely not what you want.  You need Binutils with the
    9  * REGION_ALIAS feature and the version in the comment below.  This is only to
    10  * provide linkable tests.
    11  */
    12 
    13 MEMORY {
    14         REGION_START (AIW) : ORIGIN = 0x100000, LENGTH = 0x100000
    15         REGION_VECTOR (AIW) : ORIGIN = 0x200000, LENGTH = 0x100000
    16         REGION_TEXT (AIW) : ORIGIN = 0x300000, LENGTH = 0x100000
    17         REGION_TEXT_LOAD (AIW) : ORIGIN = 0x400000, LENGTH = 0x100000
    18         REGION_RODATA (AIW) : ORIGIN = 0x500000, LENGTH = 0x100000
    19         REGION_RODATA_LOAD (AIW) : ORIGIN = 0x600000, LENGTH = 0x100000
    20         REGION_DATA (AIW) : ORIGIN = 0x700000, LENGTH = 0x100000
    21         REGION_DATA_LOAD (AIW) : ORIGIN = 0x800000, LENGTH = 0x100000
    22         REGION_FAST (AIW) : ORIGIN = 0x900000, LENGTH = 0x100000
    23         REGION_FAST_LOAD (AIW) : ORIGIN = 0xa00000, LENGTH = 0x100000
    24         REGION_BSS (AIW) : ORIGIN = 0xb00000, LENGTH = 0x100000
    25         REGION_WORK (AIW) : ORIGIN = 0xc00000, LENGTH = 0x100000
    26         REGION_STACK (AIW) : ORIGIN = 0xd00000, LENGTH = 0x100000
    27         NIRVANA : ORIGIN = 0, LENGTH = 0
    28 }
    29 
    30 /*
    31 
    321MEMORY {
    332        RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 64k
     
    4514REGION_ALIAS ("REGION_DATA_LOAD", RAM_EXT);
    4615REGION_ALIAS ("REGION_FAST", RAM_INT);
    47 REGION_ALIAS ("REGION_FAST_LOAD", RAM_INT);
     16REGION_ALIAS ("REGION_FAST_LOAD", RAM_EXT);
    4817REGION_ALIAS ("REGION_BSS", RAM_EXT);
    4918REGION_ALIAS ("REGION_WORK", RAM_EXT);
    5019REGION_ALIAS ("REGION_STACK", RAM_INT);
    5120
    52 */
    53 
    5421INCLUDE linkcmds.base
Note: See TracChangeset for help on using the changeset viewer.