Commit Graph

13326 Commits

Author SHA1 Message Date
Sebastian Huber
f97536dcd3 basdefs.h: Add and use RTEMS_UNUSED 2015-10-26 09:13:19 +01:00
Sebastian Huber
c52568dcdb basdefs.h: Add and use RTEMS_DEPRECATED 2015-10-26 09:13:19 +01:00
Sebastian Huber
143696acbd basedefs.h: Add and use RTEMS_NO_RETURN 2015-10-26 09:13:19 +01:00
Sudarshan Rajagopalan
5c337d7e37 Fixes GPIO APIs Naming Convention and Comments
Closes #2435.
2015-10-21 17:34:12 +02:00
Ben Gras
6f6e5d758f libbsp/Makefile.am: gpio.h as preinstalled header
Also regenerate preinstall.am. Closes #2434.
2015-10-21 16:57:05 +02:00
Joel Sherrill
473294c5a2 moxiesim/configure.ac: Fix typo
updates 2254.
2015-10-20 18:07:15 -05:00
Joel Sherrill
7b07ac27e3 h8sim-testsuite.tcfg: Add fsdosfsname01
closes #2432.
2015-10-20 16:37:18 -05:00
Sebastian Huber
c07481c7df bsp/leon3: Fix Termios context usage
Only the context of the console device was used and this is wrong in
case more than one APBUART device is available.
2015-10-20 11:29:57 +02:00
Sebastian Huber
e29f1f551c bsp/qoriq: Use U-Boot provided FDT 2015-10-19 09:51:28 +02:00
Sebastian Huber
0b0969efc3 bsp/qoriq: Simplify initialization 2015-10-19 09:51:28 +02:00
Sebastian Huber
36b9f66861 bsp/qoriq: Initialize FPU on secondary thread 2015-10-19 09:51:28 +02:00
Sebastian Huber
2f5e3c72b1 bsp/qoriq: Add missing isync after mtmsr 2015-10-15 10:45:20 +02:00
Sebastian Huber
27390a29a5 bsps/arm: Add missing translation table entry
See also bc82094679.
2015-10-14 07:46:23 +02:00
Sebastian Huber
cf8e03388b bsp/qoriq: Add nocache heap 2015-10-08 13:35:27 +02:00
Sebastian Huber
bc82094679 bsps: Add .nocacheheap section
This avoids consumption of a loadable address space for the nocache
heap.
2015-10-08 13:34:40 +02:00
Sebastian Huber
707ecbe4ec bsp/qoriq: Add BMan and QMan Portals 2015-10-07 13:53:15 +02:00
Sebastian Huber
01531fb6a7 bsp/qoriq: Initilize FPU 2015-10-07 13:38:59 +02:00
Sebastian Huber
55c8d19d7b bsp/qoriq: Move BUCSR initialization 2015-10-07 09:52:04 +02:00
Sebastian Huber
f91fbbf4b8 bsps/i386: Interrupt server support 2015-09-30 15:30:09 +02:00
Sebastian Huber
258ad71e96 SMP: Fix and optimize thread dispatching
According to the C11 and C++11 memory models only a read-modify-write
operation guarantees that we read the last value written in modification
order.  Avoid the sequential consistent thread fence and instead use the
inter-processor interrupt to set the thread dispatch necessary
indicator.
2015-09-28 13:56:57 +02:00
Gedare Bloom
5458bff929 bootstrap: regenerate preinstall.am 2015-09-25 16:36:52 -04:00
Andre Marques
7aca0fefce RaspberryPi: Added I2C and SPI bus support.
Further documentation can be found in

https://devel.rtems.org/wiki/GSoC/2015/RaspberryPi_peripherals_and_SD_card

and test data (including sample user applications, device drivers and wiring schemes) can be found in

https://github.com/asuol/RTEMS_rpi_testing
2015-09-25 16:36:52 -04:00
Andre Marques
f7ea9579ad Added GPIO API sources to rpi Makefile 2015-09-25 16:36:52 -04:00
Andre Marques
a57b72ded9 Removed GPIO API from the libbsp/shared Makefile. 2015-09-25 16:36:52 -04:00
Sebastian Huber
808230add9 Upgrade to 4.11.99.0 2015-09-11 08:24:18 +02:00
Marcos Diaz
bebfc4209b Beaglebone: fix missing clobber in inline assembly.
flush_data_cache uses R0 directly but doesn't list it as a clobbered
register. Compiling with -O3 made this code break, since the function
that calls flush_data_cache already uses r0.

closes #2416.
2015-09-10 13:21:41 -05:00
Joel Sherrill
cf2f3834a3 lpc23xx_tli800: Add mdosfs_fsscandir01 to tests to avoid. Does not link. 2015-09-10 11:03:43 -07:00
Sebastian Huber
fc5e52b938 bsps/arm: Fix function definition
Close #2385.
2015-09-04 13:50:28 +02:00
Martin Galvan
7def219b84 various .h files: Add missing C++ extern wrappers
Updates #2405.
2015-09-03 11:28:04 -05:00
Ketul Shah
151e53feab Beagle: GPIO support (for BBB)
GPIO Driver Development for BeagleBone Black based on the generic GPIO API
2015-08-18 17:05:55 +02:00
Andre Marques
b09a578e8a Closes ticket #2390, and also updates the RPI implementation.
makes rtems_gpio_bsp_get_value return uint32_t.  Motivation: simplify
beagle gpio implementation for common gpio apio.
2015-08-18 02:26:48 +02:00
Andre Marques
61e7c698a4 Raspberry Pi implementation for the RTEMS GPIO API.
Added support for the new RTEMS GPIO API functions.

Test cases can be found in https://github.com/asuol/RTEMS_rpi_testing/tree/master/GPIO
2015-08-06 10:53:46 -04:00
Andre Marques
87f8b01f58 RTEMS GPIO API definition and implementation.
Changes relative to the previous patch set:

- Moved GPIO pin interrupts to rtems chains, instead of a local linked list;
- Restructured the pin tracking structure, separating the interrupt information for each pin meaning that a pin without any interrupt enabled only requires 8 bytes, while keeping interrupt information (handling information, handler chain control, ...) requires 24 additional bytes (total of 32 bytes per pin with interrupts enabled);
-  Added support for 'parallel' pin function assignment, allowing the function assignment to be set for multiple pins in a single GPIO hardware call. If a BSP does not support this feature it becomes a sequence of individual calls per pin. Also added support for GPIO pin groupings, allowing to write and read byte data to a series of pins which behave as a single entity;
- Added bank tracking structure to maintain the bank lock and bank level interrupt information (threaded/normal handling, interrupt counter);
- Changed GPIO settings to BSP defined constants, reducing dynamic memory allocation;
- Switched interrupt tasks for a rtems interrupt server, with the possibility of using normal interrupts (user handlers being called within ISR context).
2015-08-06 10:53:37 -04:00
Joel Sherrill
d138a22b54 ada-tests/support/init.c: Fix compile errors and warnings
closes #2379.
2015-08-02 08:31:09 -07:00
Sebastian Huber
d0733bb871 bsps/arm: Do not use __ARM_ARCH_7A__
This would lead to link-time errors in case less specialized compiler
machine options are used, e.g. to run the GCC test suite.
2015-07-31 09:58:48 +02:00
Sebastian Huber
579f16efd7 bsps/arm: Update due to API changes 2015-07-21 09:29:56 +02:00
Premysl Houdek
b2c252b5ca bsp/tms570 Use bitfields instead of hard-coded values
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-07-20 20:45:40 +10:00
Premysl Houdek
d6c67ad526 bsp/tms570: skipped 32bit field definitions and corrected single bit fields
there is no need to define access macros for field covering
whole registers. In addition, BSP_FLD32 does not work right
for field 32bit length.

Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-07-20 20:45:26 +10:00
Sebastian Huber
e5a79e54d9 bsp/mpc83xx: Update due to header guard change
Close #2373.
2015-07-17 07:59:35 +02:00
Joel Sherrill
7e14385b46 sh/shared/startup/bspstart.c: Add include of percpu.h 2015-07-16 11:15:52 -07:00
Premysl Houdek
069560a5f9 bsp/tms570: source changes reflecting new headers.
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-07-16 11:15:52 -07:00
Pavel Pisa
602e395b4d bsp/tms570: fix get time resolution after infrastructure change to timecounter.
The update fixes breakage of TMS570 support after Alexander Krutwig
switch of RTEMS time read to timecounter mechanism

bsps: Convert clock drivers to use a timecounter

Mechanism to specify odd (non 1 Mhz) time base update frequencies
implemented after objections of  Martin Galvan.

Code is adjusted to convert RTEMS configuration parameter
microseconds_per_tick to such odd base if
TMS570_PREFERRED_TC_FREQUENCY is specified appropriately.

Signed-off-by: Premysl Houdek <kom541000@gmail.com>
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2015-07-16 09:31:09 -07:00
Premysl Houdek
bea49c9477 bsp/tms570: New/generated header files for TMS570 SoC peripherals registers.
The header files are generated by script make_header.py.
Current script's version can be found at:

https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python

Registers offsets and fields have been extracted from reference manual.

Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-07-16 09:31:09 -07:00
Joel Sherrill
4784214a6a remaining bsp.h: Fix by hand to LIBBSP_@CPU@_@BSP_FAMILY@_BSP_H
These files were left after running the script in the previous patch.
2015-07-16 08:43:51 -07:00
Joel Sherrill
9cff822a26 Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guard
This was done by the following script run from libbsp:

find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do
  echo $b
  cpu=`echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]' `
  bsp=`echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]' `
  g="LIBBSP_${cpu}_${bsp}_BSP_H"
  # echo $g
  sed -e "s/ifndef _BSP_H/ifndef ${g}/" \
      -e "s/define _BSP_H/define ${g}/" \
  -i $b

done
2015-07-16 08:40:05 -07:00
Sebastian Huber
93f5adb644 powerpc: Do not use the ATB for e500 multilib
The e500v1 has no support for the ATB.

Update #2369.
2015-07-15 10:52:40 +02:00
Sebastian Huber
c2596dfbd0 bsps/powerpc: Fix small-data area issue
Update #2369.
2015-07-09 10:00:26 +02:00
Sebastian Huber
b171982439 bsps/powerpc: Provide debug and trace symbols 2015-07-08 10:07:59 +02:00
Sebastian Huber
3e02a472ba bsp/qoriq: Enable branch prediction for T series 2015-07-08 10:07:59 +02:00
Sebastian Huber
994d7e12b5 bsp/qoriq: Use -O2 for T series 2015-07-08 10:07:59 +02:00