Commit Graph

12216 Commits

Author SHA1 Message Date
Christian Mauderer
c918737ed3 bsp/stm32f4: Add a simple I2C-driver. 2013-10-24 16:29:18 +02:00
Christian Mauderer
bb3f3491b5 bsp/stm32f4: Bugfix for io-initialisation. 2013-10-24 16:29:13 +02:00
Christian Mauderer
c6f0efe297 bsp/stm32f4: Header for f10xxx EXTI. 2013-10-24 16:29:05 +02:00
Pavel Pisa
382f714a6e SPI SD-Card: setup valid CRC-7 for STOP_TRANSMISSION command.
STOP_TRANSMISSION command is used to finish READ_MULTIPLE_BLOCK
command and its format is regular command format.
It requires valid CRC-7 to have effect at least on
same cards types else it is ignored and attempt
to issue next READ or WRITE commands results in
illegal command condition (0x04) preceded by strange
(0x3f) for tested card.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-10-08 11:14:03 +02:00
Hesham AL-Matary
5ceefe18f0 Shared MMU initialization for ARM BSPs and RaspberryPi MMU support
Add support for MMU initialization for RaspberryPi. Introduce new shared
MMU configuration table that can be used by other BSPs that call the
arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache function.
Demonstrate the use of the generic table with RaspberryPi.
2013-10-03 08:55:33 -04:00
Hesham AL-Matary
0a9533fc2c Add a new necessary definition needed for raspberrypi MMU support
The new ARM_CP15_CTRL_XP is necessary to share ARMv6 and ARMv7
page-table formats and definitions.
It enables the extended page tables (introduced in ARMv6)
to be configured for the hardware page translation mechanism. This way
we can share ARMv6 and ARMv7 page tables entry formats.

Other Fault Status Register Definitions can be useful for debugging or
excpetion handlers.
2013-10-03 08:51:29 -04:00
Joel Sherrill
ba2e98e643 libbsp/sparc/.../gnatcommon.c: Formatting 2013-09-30 12:08:38 -05:00
Joel Sherrill
d349636b2a leon2/.../ckinit.c: Change get nanoseconds handler to static 2013-09-30 12:08:13 -05:00
Joel Sherrill
a15650dad5 mips/shared/.../clockdrv.c: Change get nanoseconds handler to static 2013-09-30 12:07:35 -05:00
Joel Sherrill
2dfdecd91c uC5282/.../clock.c: Change get nanoseconds handler to static 2013-09-30 12:07:07 -05:00
Joel Sherrill
38905d70d8 leon3/bsppredriver.c: Add include file to warning 2013-09-23 08:28:48 -05:00
Joel Sherrill
4fab260dd1 libcpu/sparc/.../access_le.c: Add include file to fix warning 2013-09-23 08:24:32 -05:00
Joel Sherrill
876af7a1a0 leon3/.../ckinit.c: Change get nanoseconds handler to static 2013-09-23 08:16:55 -05:00
Joel Sherrill
d2c5bff7dc leon3/.../ckinit.c: Fix missing prototype warnings 2013-09-22 10:51:36 -05:00
Joel Sherrill
68670555c9 libbsp/shared/bspinit.c: Fix missing prototype warnings 2013-09-22 10:51:19 -05:00
Joel Sherrill
4650678bb4 leon3/.../bspstart.c: Fix missing prototype warnings 2013-09-22 10:38:31 -05:00
Joel Sherrill
f07b0e6563 sparc/.../grcan.c: Switch to using RTEMS_COMPILER_UNUSED_ATTRIBUTE 2013-09-22 09:41:49 -05:00
Joel Sherrill
c8707a316b leon3/console.c: Fix misisng prototype issues 2013-09-21 16:25:06 -05:00
Joel Sherrill
34b57d61be sparc/.../grcan.c: Fix multiple warnings 2013-09-21 16:10:17 -05:00
Joel Sherrill
e9da278c05 sparc/.../ambapp.h: Add ambapp_get_number_apbslv_devices() prototype 2013-09-21 16:09:48 -05:00
Joel Sherrill
ac19578efa sparc/.../occan.c: Fix missing prototype warning 2013-09-21 15:56:28 -05:00
Joel Sherrill
110cc8cb38 sparc/.../ambapp.h: Add ambapp_get_number_ahbslv_devices() prototype 2013-09-21 15:55:40 -05:00
Joel Sherrill
946c3918f0 sparc/../occan.c: Fix set but unused variable warning 2013-09-21 15:48:45 -05:00
Joel Sherrill
df74da01b7 sparc irq-shared.c: Fix unused variable warning 2013-09-21 15:38:48 -05:00
Christian Mauderer
1485a58ce3 bsp/stm32f4: Add STM32F10XXX support. 2013-09-19 13:18:04 +02:00
Joel Sherrill
564860fb59 leon3/include/bsp.h: Fix spacing 2013-09-16 14:32:36 -05:00
Joel Sherrill
3d477da051 m68k/shared/start.S: Fix spacing 2013-09-16 14:32:22 -05:00
Joel Sherrill
f73089760c pc386/console/conscfg.c: Fix spacing 2013-09-16 14:31:52 -05:00
Joel Sherrill
38d94f565d raspberrypi.cfg: Remove CVS Id 2013-09-16 14:31:28 -05:00
Ric Claus
a44917e789 bsps/arm: Fix exception entries 2013-09-16 10:54:51 +02:00
Sebastian Huber
f55215a837 bsps: Fix cache manager support 2013-09-10 08:51:06 +02:00
Sebastian Huber
d157a4fd4d bsps/arm: Fix ARM CP15 opcode for get functions 2013-09-05 09:37:17 +02:00
Karel Gardas
0c47440c6a bsp/lm4f120: new BSP to support TI LM4F120 XL LaunchPad board 2013-09-02 09:06:20 +02:00
Sebastian Huber
1215fd4d94 sapi: SMP support for chains
Add ISR lock to chain control for proper SMP protection.  Replace
rtems_chain_extract() with rtems_chain_explicit_extract() and
rtems_chain_insert() with rtems_chain_explicit_insert() on SMP
configurations.  Use rtems_chain_explicit_extract() and
rtems_chain_explicit_insert() to provide SMP support.
2013-08-30 11:16:28 +02:00
Sebastian Huber
d56f76ac93 bsps: Fix header includes 2013-08-27 10:48:16 +02:00
Joel Sherrill
3109857c88 bsps: Add and use CLOCK_DRIVER_ISRS_PER_TICK_VALUE
pc386 set CLOCK_DRIVER_ISRS_PER_TICK to a
string rather than a numeric value. Add
CLOCK_DRIVER_ISRS_PER_TICK_VALUE and
other clean up on the clock driver.
2013-08-26 16:16:38 -04:00
Ric Claus
2bd440ed58 bsp/xilinx-zynq: Add cache support 2013-08-26 09:53:06 +02:00
Ric Claus
c9b66f5ed3 bsps/arm: Add more CP15 cache functions 2013-08-22 14:20:47 +02:00
Pavel Pisa
2a2f559957 bsp/csb336: Memory map update and jump to start at image start provided.
CSB336 i.MX1/i.MXS memory map organization

 - SDRAM starts at address 0x08000000 but 2 MB are reserved
   for boot-block/loader (or other use) before RTEMS image
   origin/load address (that is kept from previous setup)

 - Caching of 30 MB of SDRAM used for RTEMS (start at 0x08200000)
   is changed to writeback mode which provides higher throughput.

 - The first 1 MB of RTEMS dedicated SDRAM is remapped to address 0
   to provide area for ARM CPU exceptions table.

 - Internal registers and rest of the Flash (above 1 MB) are mapped
   one to one. Registers region is extended to 2 MB to cover
   eSRAM found on i.MX1 chip variant.

 - The first two megabytes of SDRAM unused by RTEMS are mapped
   with attributes to allow specific purposes.

   - the first MB (at address 0x08000000) is nocached to allow
     directly set some values read by booot-block after warm reset

   - the second MB (at address 0x08100000) is set for write-through
     caching.  That allows to use memory for LCD frame-buffer without
     need to flush cache after each redraw.

Jump to start provided at address 0x08200000 allows
to load application image even as plain binary file
and start it by jump to image start address.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-08-14 16:25:58 +02:00
Karel Gardas
526f895efe bsp/lm3s69xx: add macros for UART CTS/RTS pin configuration 2013-08-14 16:25:55 +02:00
Sebastian Huber
d473dc0b22 bsps: Fix clock driver defines 2013-08-14 13:27:34 +02:00
Chris Johns
b7f2060973 bsp: Fix CLOCK_DRIVER_USE_FAST_IDLE and CLOCK_DRIVER_ISRS_PER_TICK.
Use the value rather than being defined. This allows inverted
logic to be used.
2013-08-14 11:53:28 +10:00
Sebastian Huber
c32c80ea04 bsps/arm: Use proper default priority for GIC
Some GIC implementations do not have the complete range of priorities.
The upper bits are RAZ/WI in this case.
2013-08-13 14:48:26 +02:00
Sebastian Huber
4e3b7e26a2 bsps/i386: SMP and per-CPU thread dispatch disable
Interrupt support for SMP and the per-CPU thread dispatch disable level.
2013-08-09 23:02:45 +02:00
Sebastian Huber
55b1aee441 bsps/i386: Revert most SMP related changes
The commit partially restores the _ISR_Handler code to the original
version in commit b8fc2de1ce.  A list of
reverted changes follows.

commit c236082873
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Tue Jul 30 15:54:53 2013 +0200

    smp: Provide cache optimized Per_CPU_Control

    Delete _Per_CPU_Information_p.

This commit was completely reverted.

commit 39e51758c8
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Fri Jun 14 14:00:38 2013 +0200

    smp: Add and use _CPU_SMP_Get_current_processor()

    Add and use _SMP_Get_current_processor() and
    rtems_smp_get_current_processor().

    Delete bsp_smp_interrupt_cpu().

    Change type of current processor index from int to uint32_t to match
    _SMP_Processor_count type.

This commit was completely reverted.

commit e94aa61b68
Author: Till Straumann <strauman@slac.stanford.edu>
Date:   Fri Aug 5 00:15:50 2011 +0000

    2011-08-04	Till Straumann <strauman@slac.stanford.edu>

    	* shared/irq/irq_asm.S: BUGFIX (introduced by SMP changes
    	which moved code around, apparently): *must* store i8259
    	mask to frame *before* switching to IRQ stack. The code
    	retrieves the mask after switching back to original stack.
    	Also, the IRQ stack has no reserved space for the mask;
    	storing it there could overwrite memory!

This commit was completely reverted.

commit 01f2692e33
Author: Jennifer Averett <Jennifer.Averett@OARcorp.com>
Date:   Mon Aug 1 13:41:50 2011 +0000

    2011-08-01	Jennifer Averett <Jennifer.Averett@OARcorp.com>

    	PR 1802
    	* shared/irq/irq_asm.S, shared/irq/irq_init.c, shared/smp/smp-imps.c,
    	shared/smp/smp-imps.h: Add SMP support for i386.
    	* shared/smp/getcpuid.c: New file.

The parts modifying the code of _ISR_Handler were reverted.

commit 66729db311
Author: Joel Sherrill <joel.sherrill@OARcorp.com>
Date:   Wed Mar 16 20:05:17 2011 +0000

    2011-03-16	Jennifer Averett <jennifer.averett@OARcorp.com>

    	PR 1729/cpukit
    	* shared/irq/irq_asm.S: Add next step in SMP support. This adds an
    	allocated array of the Per_CPU structures to support multiple cpus vs
    	a single instance of the structure which is still used if SMP support
    	is disabled. Configuration support is also added to explicitly enable
    	or disable SMP. But SMP can only be enabled for the CPUs which will
    	support it initially -- SPARC and i386. With the stub BSP support, a
    	BSP can be run as a single core SMP system from an RTEMS data
    	structure standpoint.

This commit was completely reverted.
2013-08-09 23:02:45 +02:00
Sebastian Huber
f8ad6c6f7f sparc: Make _CPU_ISR_Dispatch_disable per-CPU
This variable must be available for each processor in the system.
2013-08-09 23:02:45 +02:00
Sebastian Huber
88f6c4fc5a sparc: Move _CPU_Context_switch(), etc.
Move the _CPU_Context_switch(), _CPU_Context_restore() and
_CPU_Context_switch_to_first_task_smp() code since the method to obtain
the processor index is BSP specific.
2013-08-09 23:02:44 +02:00
Sebastian Huber
8b077ca0e4 bsps/sparc: SMP and per-CPU thread dispatch disable
Interrupt support for SMP and per-CPU thread dispatch disable level.
2013-08-09 23:02:44 +02:00
Sebastian Huber
849bb7a332 bsps/sparc: Revert most SMP related changes
As a side-effect the PR2082 is fixed with this and later changes.

The commit restores the _ISR_Handler code to the original version in
"cpukit/score/sparc/cpu_asm.S" in commit
6d42b4c60a.  A list of reverted changes
follows.

commit c236082873
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Tue Jul 30 15:54:53 2013 +0200

    smp: Provide cache optimized Per_CPU_Control

    Delete _Per_CPU_Information_p.

This commit was completely reverted.

commit e517714b7c
Author: Jennifer Averett <jennifer.averett@oarcorp.com>
Date:   Tue Feb 26 12:31:23 2013 -0600

    sparc: Remove dead code that was leftover from SMP development.

This commit was completely reverted.

commit 47a61aa16f
Author: Joel Sherrill <joel.sherrill@OARcorp.com>
Date:   Fri Oct 7 14:35:03 2011 +0000

    2011-10-07	Daniel Hellstrom <daniel@gaisler.com>

    	PR 1933/cpukit
    	* shared/irq_asm.S: From code inspection I have found the following
    	issues (most SMP), and some improvements in irq_asm.S. I would need a
    	long test with interrupts to verify the interrupt handler better,
    	however I can not see that these patches hurt. Please see comment per
    	hunk below, One should go through the file to indent delay-slots
    	correctly, I have fixed some in the patch areas. An extra space is
    	added in front of delay slots to indicate a delay slot.

This commit was completely reverted.

commit 0bd3f7e5d1
Author: Jennifer Averett <Jennifer.Averett@OARcorp.com>
Date:   Thu Jul 28 17:33:07 2011 +0000

    2011-07-28	Jennifer Averett <Jennifer.Averett@OARcorp.com>

    	PR 1801
    	* shared/irq_asm.S: Modifications to synch the sparc with the smp
    	working tree.

This commit was completely reverted.

commit 5d69cd33e9
Author: Joel Sherrill <joel.sherrill@OARcorp.com>
Date:   Wed Mar 16 20:05:30 2011 +0000

    2011-03-16	Jennifer Averett <jennifer.averett@OARcorp.com>

    	PR 1729/cpukit
    	* shared/irq_asm.S: New file.

The parts modifying the original code of _ISR_Handler were reverted.
Only the content move remains.
2013-08-09 23:02:44 +02:00
Sebastian Huber
c6c998b000 bsps/powerpc: Per-CPU thread dispatch disable
Interrupt support for per-CPU thread dispatch disable level.
2013-08-09 23:02:43 +02:00