diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-12-20 15:58:05 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:17 +0200 |
commit | e67b2b8d0552068d5d2859c02ffb5c2e110056de (patch) | |
tree | 161f7d400a93c7d54569e8b34ceefa45fcaa0aff /c/src/lib/libbsp/sparc/shared/uart | |
parent | LEON2: added support for LEON2-GRLIB systems (diff) | |
download | rtems-e67b2b8d0552068d5d2859c02ffb5c2e110056de.tar.bz2 |
LEON: updated and added PCI peripherals for LEON BSPs
The CCHIP driver is replaced with the GR_701 driver. The
RASTA driver is replaced by the GR-RASTA-IO driver.
All drivers are now compatible with both LEON2 and LEON3,
drivers were initialized directly by the PCI-board drivers
are now initialized by the driver manager and therefore
does not require the double code created by including for
example grcan.c into grcan_rasta.c. The other drivers needs
to be updated to the driver manager framework however.
Added support for:
* GR-701 (only LEON2 before)
* GR-RASTA-IO (only LEON2 before)
* GR-RASTA-ADCDAC
* GR-RASTA-TMTC
* GR-RASTA-SPW-ROUTER
* GR-TMTC-1553
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/uart')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/uart/apbuart_pci.c | 44 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/uart/apbuart_rasta.c | 43 |
2 files changed, 0 insertions, 87 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart_pci.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart_pci.c deleted file mode 100644 index 9ea396786f..0000000000 --- a/c/src/lib/libbsp/sparc/shared/uart/apbuart_pci.c +++ /dev/null @@ -1,44 +0,0 @@ -#include <ambapp.h> -#include <apbuart_pci.h> - -#undef DEBUG - -/* Set registered device name */ -#define APBUART_DEVNAME "/dev/apbupci0" -#define APBUART_DEVNAME_NO(devstr,no) ((devstr)[12]='0'+(no)) - -/* Any non-static function will begin with */ -#define APBUART_PREFIX(name) apbuartpci##name - -/* do nothing, assume that the interrupt handler is called - * setup externally calling apbuartpci_interrupt_handler. - */ -#define APBUART_REG_INT(handler,irq,arg) \ - if ( apbuart_pci_int_reg ) \ - apbuart_pci_int_reg(handler,irq,arg); - -void (*apbuart_pci_int_reg)(void *handler, int irq, void *arg) = 0; - -void apbuartpci_interrupt_handler(int irq, void *arg); - -/* AMBA Bus is clocked using the PCI clock (33.3MHz) */ -#define SYS_FREQ_HZ 33333333 - -#include "apbuart.c" - -int apbuart_pci_register(struct ambapp_bus *bus) -{ - /* Setup configuration */ - - /* Register the driver */ - return APBUART_PREFIX(_register)(bus); -} - - -/* Call this from PCI interrupt handler - * irq = the irq number of the HW device local to that IRQMP controller - * - */ -void apbuartpci_interrupt_handler(int irq, void *arg){ - apbuart_interrupt(arg); -} diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart_rasta.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart_rasta.c deleted file mode 100644 index f6d561ec2e..0000000000 --- a/c/src/lib/libbsp/sparc/shared/uart/apbuart_rasta.c +++ /dev/null @@ -1,43 +0,0 @@ -#undef DEBUG - -#include <apbuart_rasta.h> - -/* Set registered device name */ -#define APBUART_DEVNAME "/dev/apburasta0" -#define APBUART_DEVNAME_NO(devstr,no) ((devstr)[14]='0'+(no)) - -/* Any non-static function will begin with */ -#define APBUART_PREFIX(name) apbuartrasta##name - -/* do nothing, assume that the interrupt handler is called - * setup externally calling apbuartrasta_interrupt_handler. - */ -#define APBUART_REG_INT(handler,irq,arg) \ - if ( apbuart_rasta_int_reg ) \ - apbuart_rasta_int_reg(handler,irq,arg); - -void (*apbuart_rasta_int_reg)(void *handler, int irq, void *arg) = 0; - -void apbuartrasta_interrupt_handler(int irq, void *arg); - -/* AMBA Bus is clocked using the RASTA internal clock (30MHz) */ -#define SYS_FREQ_HZ 30000000 - -#include "apbuart.c" - -int apbuart_rasta_register(struct ambapp_bus *bus) -{ - /* Setup configuration */ - - /* Register the driver */ - return APBUART_PREFIX(_register)(bus); -} - - -/* Call this from RASTA interrupt handler - * irq = the irq number of the HW device local to that IRQMP controller - * - */ -void apbuartrasta_interrupt_handler(int irq, void *arg){ - apbuart_interrupt(arg); -} |