Commit Graph

13078 Commits

Author SHA1 Message Date
Joel Sherrill
3d05302955 csb337/.../bspreset.c: Eliminate warning for set not used variable 2014-09-04 09:07:56 -05:00
Joel Sherrill
be4992b193 raspberrypi: Use shared bspreset.c 2014-09-04 09:07:56 -05:00
Joel Sherrill
2617cd3e04 or1ksim/Makefile.am: Install shared tm27.h and regenerate preinstall.am 2014-09-02 10:57:18 -05:00
Daniel Cederman
fecaeca18b score: Define _CPU_Start_multitasking only for LEON SPARC, not SPARC in general
Rename _BSP_Start_multitasking to _LEON3_Start_multitasking to show that
it is LEON specific
2014-09-01 08:11:11 +02:00
Sebastian Huber
aacb7e6aff bsp/ngmp: Use -mcpu=leon3 GCC option
There is support for the LEON3 processor available in Binutils 2.24 and
the GCC 4.8 branch and GCC mainline.

GCC 4.8 branch:

http://gcc.gnu.org/viewcvs/gcc/branches/?view=log&pathrev=205331

GCC mainline:

http://gcc.gnu.org/viewcvs/gcc/trunk/?view=log&pathrev=202664

It is mandatory to use this option for SMP on LEON3 since it enables
usage of C11 atomic operations.  It makes it also possible to use an
inline function for _CPU_SMP_Get_current_processor() which avoids the
function call overhead in critical sections.
2014-09-01 08:00:35 +02:00
Chris Johns
59990cc975 Regenerate all preinstall.am files.
With this patch the preinstall.am files are in a set order and not
dependent on now perl implements a hash.
2014-08-29 12:48:01 +10:00
Joel Sherrill
b597c0d60c Regenerate all preinstall.am files.
Apparently, at some point automake output changed and these were
not updated.
2014-08-28 08:44:52 -05:00
Chris Johns
d04cb1242d arm: Add tests which fail to build with C++ enabled. 2014-08-28 14:34:10 +10:00
Chris Johns
5826a1b284 preinstall: Regenerated files differ from the repo. 2014-08-28 10:08:28 +10:00
Joel Sherrill
bfa2b8c39e virtex5/.../bsp.h: Add BSP_Convert_decrementer() macro required by MPC6xx timer driver 2014-08-27 12:50:36 -05:00
Joel Sherrill
6e60140daf nds/Makefile.am: Rework to avoid creating ltos of .rel files
This was necessary to enable all tests to link.
2014-08-27 11:00:12 -05:00
Joel Sherrill
7d3a345630 lpc40xx_ea_rom_int-testsuite.tcfg: New file 2014-08-27 10:20:12 -05:00
Chris Johns
614a0889b6 arm/lm3s3749: Add tests that do not fit.
You need --enable-c++ for the c++ tests.
2014-08-27 20:04:26 +10:00
Hesham ALMatary
2cd68a8bf6 Add or1ksim (sim.cfg) configuration file and edit README.
OpenRISC/or1ksim BSP: The new sim.cfg file configures or1ksim emulator with HW
capabilities that the current RTEMS/or1ksim BSP supports.

README: HOWTO run the or1ksim simulator.
2014-08-26 15:32:44 -05:00
Sebastian Huber
76386c1047 bsp/altera-cyclone-v: Add DMA support hwlib files 2014-08-26 17:10:18 +02:00
Sebastian Huber
9907ddeb5a bsp/altera-cyclone-v: Update to hwlib 13.1
This version is distributed with SoC EDS 14.0.0.200.
2014-08-26 17:10:18 +02:00
Joel Sherrill
8f1bdcb9ad or1k/Makefile.am: libbsp_a_CPPFLAGS was defined twice 2014-08-25 17:07:12 -05:00
Joel Sherrill
3d99c17deb gensh4: Improve ROM vs RAM startup configuration 2014-08-25 17:00:49 -05:00
Joel Sherrill
bf1f876483 gensh4/bsp_specs: Account for big/little endian 2014-08-25 17:00:48 -05:00
Joel Sherrill
e75907d58e simsh4-testsuite.tcfg: new file 2014-08-25 17:00:48 -05:00
Joel Sherrill
d26cded81b simsh2e-testsuite.tcfg: new file 2014-08-25 17:00:48 -05:00
Joel Sherrill
a4d355b426 shsim/bsp_specs: Account for big/little endian 2014-08-25 17:00:48 -05:00
Hesham ALMatary
baa3c91ecb or1ksim BSP: Include cache manager stubs, and re-generate preinstall.am files. 2014-08-25 11:13:55 -05:00
Hesham ALMatary
9d92a43ff7 Rename or1k_or1ksim BSP to or1ksim 2014-08-25 11:13:14 -05:00
Hesham ALMatary
eeea9e30a2 libcpu: Add new entry for or1k cpu and include cache manager stubs. 2014-08-25 11:12:20 -05:00
Sebastian Huber
4b104834eb bsp/mpc55xx: Fix comment 2014-08-25 13:40:20 +02:00
Sebastian Huber
f3237a3c3b bsp/mpc55xx: Add defines for MPC5668 2014-08-25 09:30:53 +02:00
Sebastian Huber
0a31483901 bsp/mpc55xx: Limit flash support to MPC55[56]X 2014-08-25 09:11:05 +02:00
Daniel Cederman
e7a42a0cfb score: Add missing define to cache manager 2014-08-25 08:52:05 +02:00
Pavel Pisa
d13ce7553b bsp/tms570: implemented and tested initialization of Cortex-R performance counters.
The code is written as BSP specific now but it should work for all
Cortex-A and R based CPUs and can be moved to ARM generic place in future.

StackOverflow suggested sequences of writes to the registers required
to start counters is used.

http://stackoverflow.com/questions/3247373/how-to-measure-program-execution-time-in-arm-cortex-a8-processor
2014-08-22 10:24:53 -05:00
Daniel Cederman
ddbc3f8d83 score: Add SMP support to the cache manager
Adds functions that allows the user to specify which cores that should
perform the cache operation. SMP messages are sent to all the specified
cores and the caller waits until all cores have acknowledged that they
have flushed their cache. If CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING is
defined the instruction cache invalidation function will perform the
operation on all cores using the previous method.
2014-08-22 13:10:59 +02:00
Daniel Cederman
62f373fb57 bsp/sparc: Flush only instruction cache
The flush instruction on LEON flushes both the data and the instruction
cache. Flushing of just the instruction cache can be done by setting
the "flush instruction cache" bit in the cache control register.
2014-08-22 13:10:59 +02:00
Daniel Cederman
54f3476e24 bsp/sparc: Flush icache before first time enabling interrupts
A secondary processor might miss changes done to the trap table
if the instruction cache is not flushed. Once interrupts are enabled
any other required cache flushes can be ordered via the cache
manager.
2014-08-22 13:10:59 +02:00
Christian Mauderer
d5f5432967 libchip/dwmac: Make PHY address user configurable
This patch allows the user to configure the PHY address for the DWMAC
driver by giving a pointer to a dwmac_user_cfg structure to network
stack via rtems_bsdnet_ifconfig::drv_ctrl.
2014-08-22 11:48:27 +02:00
Pavel Pisa
66f1ca64c8 bsp/tms570: disable huge memory demanding tests for internal RAM build variant.
BSP completes build with tests and debug enabled for all three variants now

  tms570ls3137_hdk
  tms570ls3137_hdk_intram
  tms570ls3137_hdk_sdram

Even that all enabled tests builds for internal RAM variant, many
of them are expected to fail on hardware because whole tests
including code, data and runtime work area demands has to fit
into 256 kB of RAM.
2014-08-21 10:56:13 -05:00
Pavel Pisa
46265063e3 bsp/tms570: implemented support functions to satisfy complete tests build requirements.
This patch enables to build all RTEMS tests for tms570ls3137_hdk_sdram
BSP variant in in default build. Debug build with --enable-rtems-debug set
has succeed for samples subset of tests as well.
2014-08-21 09:07:29 -05:00
Peter Dufault
dc661c87e1 mpc55xx/misc/flash_support.c: Properly flush cache when writing.
Also cleanup:
    * Remove un-needed interrupt disables.
    * Address errata "e989: FLASH: Disable Prefetch during programming and erase"
    * Use RTEMS_ARRAY_SIZE() macro instead of own macro.
2014-08-20 17:08:23 -05:00
Joel Sherrill
2ed97d94da libbsp/arm/acinclude.m4: Regenerate for tms570 2014-08-20 14:53:18 -05:00
Hesham ALMatary
fd5701587f Add new (first) OpenRISC BSP called or1ksim.
This BSP is intended to run on or1ksim (the main OpenRISC emulator).
Fixed version according to Joel comments from the mailing list.
2014-08-20 14:46:15 -05:00
Premysl Houdek
4407ee675c BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137)
Included variants:
  tms570ls3137_hdk_intram - place code and data into internal SRAM
  tms570ls3137_hdk_sdram - place code into external SDRAM and data to SRAM
  tms570ls3137_hdk - variant prepared for stand-alone RTEMS aplication
                      stored and running directly from flash. Not working yet.

Chip initialization code not included in BSP.
External startup generated by TI's HalCoGen was used	for
testing and debugging.

More information about TMS570 BSP can be found at
  http://www.rtems.org/wiki/index.php/Tms570

Patch version 2
  - most of the formatting suggestion applied.
  - BSP converted to use clock shell
  - console driver "set attributes" tested. Baudrate change working
Patch version 3
  - more formatting changes.
  - removed leftover defines and test functions
Todo:
  refactor header files (name register fields)
2014-08-20 13:44:23 -04:00
Pavel Pisa
0a66c1266f lpc24xx/lpc17xx: lpc24xx_pin_set_function() keep LPC4088 W type pin in digital mode for non-analog function.
The problem wit incorrect switching of pins into analog mode manifestes
on LPC4088 based board.

LPC4088 implements pin P1.17 (ENET_MDIO) as new W type (digital pin
with analog option). The pin was listed as D category on LPC1788
which does not have analog mode control bit. If analog option is
not explicitly switched off on LPC4088 then the pin does not work
as digital pin.

Code tested on LPC1788 and no problems has been observed even that
manual specifies the IOCON_ADMODE field as reserved and should
be written as zero. But even RTEMS lpc24xx_gpio_config sets this
bit unconditionally.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2014-08-20 13:42:26 +02:00
Sebastian Huber
6cdc090ff0 bsp/lpc24xx: Add LPC40XX variants 2014-08-12 19:08:37 +02:00
Sebastian Huber
8ae373235b arm: Add support for FPv4-SP floating point unit
This floating point unit is available in Cortex-M4 processors and
defined by ARMv7-M.  This adds basic support for other VFP-D16 variants.
2014-08-12 19:08:19 +02:00
Christian Mauderer
81329f9ecf bsp/altera-cyclone-v: Add RTC driver. 2014-08-11 08:01:26 +02:00
Christian Mauderer
3f9cd87d76 bsp/altera-cyclone-v: Add a simple I2C driver. 2014-08-11 08:01:26 +02:00
Christian Mauderer
1642d27e4c bsp/altera-cyclone-v: Add socal from hwlib.
Some of the headers from the hwlib need the files from the socal subdirectory.
2014-08-11 08:01:26 +02:00
Joel Sherrill
742402b5e0 m68k/gen68360/include/tm27.h: Correct comment 2014-07-16 15:45:59 -05:00
Joel Sherrill
6e868d8724 Add More Testsuite Configuration Files and Update Existing Ones
The first pass at building these was without networking enabled.
This pass addresses that plus accounts for some new BSPs which
needed testsuite.tcfg files and BSPs which could not link tests
which had been added since the first pass.
2014-07-16 15:45:59 -05:00
Chris Johns
6832a5606a Common ARM A8 code. 2014-07-16 14:17:25 +10:00
Ben Gras
7e60b7d125 uart-output-char.h: extra offset definition.
All,

This patch is submitted as its values are used in my to-be-submitted
beagle bsp.
2014-07-15 10:03:32 -05:00