Commit Graph

11542 Commits

Author SHA1 Message Date
Joel Sherrill
1a3cbfba52 s3c24xx shared: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:16:33 -05:00
Joel Sherrill
abb52ce597 pxa255 shared: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:16:20 -05:00
Joel Sherrill
bb9cf58d48 mc9328mxl shared: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:16:09 -05:00
Joel Sherrill
029ced28e2 lpc22xx shared: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:15:49 -05:00
Joel Sherrill
14010768ed at91rm9200 shared: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:15:34 -05:00
Joel Sherrill
b2d947820e lpc shared: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:15:17 -05:00
Joel Sherrill
556ac5a033 armv7m shared: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:15:03 -05:00
Joel Sherrill
b7a4a3824c nds: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:14:00 -05:00
Joel Sherrill
e1f81100a9 gba: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:13:59 -05:00
Joel Sherrill
7867bbddee edb7312: Clock driver clean up and ISR Handler Prototype Correction. 2012-04-19 13:13:59 -05:00
Joel Sherrill
46cbefd844 Clock Driver Shell - Correct PIC IRQ Prototype. 2012-04-19 13:13:59 -05:00
Daniel Hellstrom
e621bde574 LEON3: rename console/debugputs.c to printk_support.c 2012-04-19 13:34:28 -04:00
Daniel Hellstrom
5d48037f83 LEON3: added TX-wait-complete and CR on NL support for UART
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-19 13:28:06 -04:00
Daniel Hellstrom
605b4b649d LEON3: debugputs removed pointless isinit code, invoked only once
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-19 12:34:21 -04:00
Daniel Hellstrom
5903484a29 LEON3: debugputs added printk mem buffer when no UART present
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-19 12:34:21 -04:00
Daniel Hellstrom
62694fd68f LEON3: add console interrupt mode support
The comment in configure.ac is probably inherited from the LEON2
BSP. The LEON3 console driver implements a "flush" mechanism on
console_close() in order to solve the problem described with
sis/LEON2.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-19 12:34:21 -04:00
Daniel Hellstrom
07557c86fd LEON3: add console attributes such as parity and baudrate
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-19 12:34:20 -04:00
Daniel Hellstrom
6845f8005c LEON3: console, lower bus utilization waiting for UART TX ready
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-19 12:34:20 -04:00
Daniel Hellstrom
7a01a888a7 LEON: updated drivers to use new AMBAPP Layer
The drivers are updated to use the new AMBA layer, however the
backwards-compatibility interface (ambapp_old) is used.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-17 22:01:47 -04:00
Daniel Hellstrom
fc6f872d3f LEON3: Network initialization code updated to new AMBAPP layer
Updated SMC91111, GRETH and open_eth driver registration
code to use new AMBAPP Layer.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-17 22:01:47 -04:00
Daniel Hellstrom
ddf0d60758 LEON3: updated console driver for new AMBAPP layer
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-17 22:01:47 -04:00
Daniel Hellstrom
1f7cfbe351 LEON2: clock driver use new AMBAPP layer
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-17 22:01:46 -04:00
Daniel Hellstrom
9ea65119f4 LEON: updated AMBA PnP API
The old layer had some limitations/problems for multiple AHB
buses since the data structure containing all AMBA devices
were allocated before scanning.

The new layer create devices as they are found and memory is
allocated using malloc() or bsp_early_malloc() during booting.

The old 8 functions for finding a specific AHB-Slave or
APB-Slave device has been replaced with one function,
ambapp_for_each(), which iterates over all devices matching
the specified search options and calls a user provided
function. The new way lowers the footprint and makes searching
more flexible.

The frequency information is now supported, if the frequency
of one device is reported by the user.

More AHB-to-AHB bridges are supported.

The API has been split into several parts in order to lower the
footprint.

The API also introduces the AMBAPP CORE concept, where one
ambapp_core can be created from one AHB Master, AHB Slave
and one APB Slave, at least one device is required for creating
a core.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-17 22:01:46 -04:00
Gedare Bloom
e99dbaa7cd no_cpu: replace no_cpu_isr with rtems_isr 2012-04-16 19:39:22 -04:00
Gedare Bloom
a114011d70 lm32: use shared setvec.c 2012-04-16 13:11:20 -04:00
Gedare Bloom
06d34af96f m68k: use shared setvec.c 2012-04-16 13:11:20 -04:00
Gedare Bloom
416f1efbd2 lm32: replace lm32_isr with rtems_isr 2012-04-16 13:11:20 -04:00
Gedare Bloom
1fec9e0357 m68k: replace m68k_isr with rtems_isr 2012-04-16 13:11:20 -04:00
Sebastian Huber
7be19f849c bsp/stm32f4: API changes 2012-04-15 21:47:43 +02:00
Sebastian Huber
228ece9127 bsp/stm32f4: Add IO and RCC 2012-04-12 22:48:56 +02:00
Daniel Hellstrom
7afcb2619b PR2052: LEON3: fix open_eth interrupt initialization bug
Fixed a bug where the vector number is used to clean and unmask
the IRQ at the IRQ controller, the irq number must be used.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-10 15:12:23 -04:00
Sebastian Huber
e230fb44a6 bsp/stm32f4: New BSP 2012-04-07 19:08:53 +02:00
Sebastian Huber
d8f05c837d bsps/arm: Add BSP_ARMV7M_SYSTICK_PRIORITY 2012-04-07 19:08:52 +02:00
Sebastian Huber
5ea637ed2e bsps/arm: Add BSP_ARMV7M_IRQ_PRIORITY_DEFAULT 2012-04-07 19:08:52 +02:00
Sebastian Huber
1aebb706b1 bsps: Update due to API changes 2012-04-07 19:08:51 +02:00
Daniel Hellstrom
7499b84f41 GRETH: use shared-irq service instead of BSP specific set_vec()
The ISR code is updated to use argument instead of global greth
structure, now that the greth private is available in the ISR.

The shared-irq routines will unmask the IRQ, so the forced LEON3
BSP unmask/clear IRQ is removed.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-06 11:38:31 -05:00
Daniel Hellstrom
0f04edd9cc SMC91111: updated to use shared IRQ service
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-06 11:38:25 -05:00
Joel Sherrill
c500cbc384 LEON3 - Fix spacing 2012-04-06 09:09:35 -05:00
Daniel Hellstrom
3722ff5a73 LEON3: added IRQAMP support 2012-04-06 09:03:40 -05:00
Daniel Hellstrom
684b54a986 LEON3: halt boot if IRQ controller not found
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-06 09:03:35 -05:00
Daniel Hellstrom
95518e59bd SPARC BSPs: implemented shared-irq using libbsp/shared layer
The implementation use IRQ number instead of vector number since
some IRQs does not have a unique vector, for example the extended
interrupts all enter the same trap vector entry.

Added support for the LEON3 extended interrupt controller when using
the shared IRQ layer.

ERC32 patches untested.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>

Regenerate
2012-04-06 08:17:58 -05:00
Daniel Hellstrom
e60e862c64 LEON3: console use register pointers instead of UART indexes
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-05 14:47:41 -05:00
Daniel Hellstrom
4b557617fd LEON3: cleanup console UART indexing handling
The UART indexing was rather a mess when MP was enabled. The changes
introduces two weak variables syscon_uart_index and debug_uart_index
so that the user can override the default system debug console (printk)
and system console UART (/dev/console).

The two weak variables is updated on boot to reflect the "real" UART
index.

MINOR    DEVICE-FS-NAME       UART
0        /dev/console         Default /dev/console_a, user selectable
1        /dev/console_a       APBUART[0]   (missing by default)
2        /dev/console_b       APBUART[1]
...

/dev/console_a is by default renamed /dev/console and assigned minor=0,
but user can select /dev/console_['a'+N] to be renamed to /dev/console
by setting syscon_uart_index=N.

On a MP system the console renamed to /dev/console is selected by CPU
index (LEON3_Cpu_Index). /dev/console_['a' + LEON3_Cpu_Index] is
renamed unless overrided. Resource sharing is performed by the user,
one should not open/access a console that another OS instance uses.

This patch also moves the initialization of the UART to the open()
call, note that before APBUART[0] was always enabled as debug uart
even on MP systems. The debug UART is initialized at boot time.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-04-05 14:33:48 -05:00
Jennifer Averett
a36d1b4358 Add MIPS/Malta BSP. 2012-04-04 12:21:15 -05:00
Jennifer Averett
0c0181dee2 PR 1993 - Convert MIPS to PIC IRQ model 2012-04-04 08:43:08 -05:00
Sebastian Huber
eb6362dccb bsp/mpc55xx: Add and use chip features
Add defines MPC55XX_HAS_SIU and MPC55XX_HAS_SIU_LITE.
2012-04-03 17:12:14 +02:00
Sebastian Huber
ba56882cd9 bsp/tqm8xx: Install header file <bsp/irq-info.h> 2012-04-02 14:08:42 +02:00
Sebastian Huber
270fa1e800 bsp/qemuppc: Install header file <bsp/irq-info.h> 2012-04-02 14:08:42 +02:00
Sebastian Huber
b0b32b8906 bsps: Fix for clock driver
Do not use the e300 core decrementer auto-reload feature.  We have to
use the normal decrementer handler since otherwise it is impossible to
pass test sptests/spnsext01.
2012-04-02 13:40:16 +02:00
Sebastian Huber
c988f180c7 bsp/gen83xx: Fix console driver configuration 2012-04-02 13:40:16 +02:00