Changeset 3bb4122 in rtems


Ignore:
Timestamp:
Feb 23, 2015, 12:02:39 PM (4 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
30594a9
Parents:
fe1aa9c0
git-author:
Daniel Hellstrom <daniel@…> (02/23/15 12:02:39)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:17)
Message:

LEON: added new drivers to the LEON2/LEON3 BSPs

Most drivers use the Driver Manager for device probing, they
work on AMBA-over-PCI systems if PCI is big-endian.

New APIs:

  • GPIO Library, interfaced to GRGPIO
  • GENIRQ, Generic interrupt service implementation helper

New GRLIB Drivers:

  • ACTEL 1553 RT, user interface is similar to 1553 BRM driver
  • GR1553 (1553 BC, RT and BM core)
  • AHBSTAT (AHB error status core)
  • GRADCDAC (Core interfacing to ADC/DAC hardware)
  • GRGPIO (GPIO port accessed from GPIO Library)
  • MCTRL (Memory controller settings configuration)
  • GRETH (10/100/1000 Ethernet driver using Driver manager)
  • GRPWM (Pulse Width Modulation core)
  • SPICTRL (SPI master interface)
  • GRSPW_ROUTER (SpaceWire? Router AMBA configuration interface)
  • GRCTM (SpaceCraft? on-board Time Management core)
  • SPWCUC (Time distribution over SpaceWire?)
  • GRTC (SpaceCraft? up-link Tele core)
  • GRTM (SpaceCraft? down-link Tele Metry core)

GR712RC ASIC specific interfaces:

  • GRASCS
  • CANMUX (select between OCCAN and SATCAN)
  • SATCAN
  • SLINK
Location:
c/src/lib/libbsp/sparc
Files:
47 added
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/Makefile.am

    rfe1aa9c0 r3bb4122  
    1313EXTRA_DIST += shared/irq/irq-shared.c
    1414EXTRA_DIST += shared/irq/bsp_isr_handler.c
     15EXTRA_DIST += shared/irq/genirq.c
     16EXTRA_DIST += shared/include/genirq.h
    1517
    1618# AMBA Plug&Play bus
     19EXTRA_DIST += shared/include/ahbstat.h
    1720EXTRA_DIST += shared/include/ambapp.h
    1821EXTRA_DIST += shared/include/ambapp_ids.h
    1922EXTRA_DIST += shared/include/grlib.h
     23EXTRA_DIST += shared/amba/ahbstat.c
    2024EXTRA_DIST += shared/amba/ambapp.c
    2125EXTRA_DIST += shared/amba/ambapp_alloc.c
     
    5963EXTRA_DIST += shared/include/debug_defs.h
    6064
    61 # SpaceWire (GRSPW)
     65# SpaceWire
    6266EXTRA_DIST += shared/spw/grspw.c
     67EXTRA_DIST += shared/spw/grspw_router.c
    6368EXTRA_DIST += shared/include/grspw.h
     69EXTRA_DIST += shared/include/grspw_router.h
    6470
    6571# UART
     
    7682EXTRA_DIST += shared/include/grcan.h
    7783
     84# MEM
     85EXTRA_DIST += shared/mem/mctrl.c
     86
    7887# MIL-STD-B1553 (Core1553BRM)
    7988EXTRA_DIST += shared/1553/b1553brm.c
     89EXTRA_DIST += shared/1553/b1553rt.c
    8090EXTRA_DIST += shared/include/b1553brm.h
     91EXTRA_DIST += shared/include/b1553rt.h
     92
     93# MIL-STD-B1553 (GR1553B)
     94EXTRA_DIST += shared/1553/gr1553b.c
     95EXTRA_DIST += shared/1553/gr1553bc.c
     96EXTRA_DIST += shared/1553/gr1553bm.c
     97EXTRA_DIST += shared/1553/gr1553rt.c
     98EXTRA_DIST += shared/include/gr1553b.h
     99EXTRA_DIST += shared/include/gr1553bc.h
     100EXTRA_DIST += shared/include/gr1553bc_list.h
     101EXTRA_DIST += shared/include/gr1553bm.h
     102EXTRA_DIST += shared/include/gr1553rt.h
    81103
    82104# I2C-master (I2CMST)
    83105EXTRA_DIST += shared/i2c/i2cmst.c
    84106EXTRA_DIST += shared/include/i2cmst.h
     107
     108# SPI
     109EXTRA_DIST += shared/spi/spictrl.c
     110EXTRA_DIST += shared/include/spictrl.h
     111
     112# TIME
     113EXTRA_DIST += shared/time/spwcuc.c
     114EXTRA_DIST += shared/time/grctm.c
     115EXTRA_DIST += shared/include/spwcuc.h
     116EXTRA_DIST += shared/include/grctm.h
     117
     118# GPIO
     119EXTRA_DIST += shared/gpio/grgpio.c
     120EXTRA_DIST += shared/gpio/gpiolib.c
     121EXTRA_DIST += shared/include/grgpio.h
     122EXTRA_DIST += shared/include/gpiolib.h
     123
     124# PWM
     125EXTRA_DIST += shared/pwm/grpwm.c
     126EXTRA_DIST += shared/include/grpwm.h
     127
     128# ADC and DAC
     129EXTRA_DIST += shared/analog/gradcdac.c
     130EXTRA_DIST += shared/include/gradcdac.h
     131
     132# GRETH
     133EXTRA_DIST += shared/net/greth.c
     134EXTRA_DIST += shared/include/greth.h
    85135
    86136# Network configuration
     
    97147EXTRA_DIST += shared/include/drvmgr/ambapp_bus.h
    98148EXTRA_DIST += shared/include/drvmgr/leon2_amba_bus.h
     149# GR712
     150EXTRA_DIST += shared/ascs/grascs.c
     151EXTRA_DIST += shared/include/grascs.h
     152EXTRA_DIST += shared/can/satcan.c
     153EXTRA_DIST += shared/include/satcan.h
     154EXTRA_DIST += shared/slink/grslink.c
     155EXTRA_DIST += shared/include/grslink.h
     156
     157# TMTC
     158EXTRA_DIST += shared/tmtc/grtc.c
     159EXTRA_DIST += shared/include/grtc.h
     160EXTRA_DIST += shared/tmtc/grtm.c
     161EXTRA_DIST += shared/include/grtm.h
    99162
    100163include $(top_srcdir)/../../../automake/subdirs.am
  • c/src/lib/libbsp/sparc/leon2/Makefile.am

    rfe1aa9c0 r3bb4122  
    5959libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
    6060# IRQ
     61include_HEADERS += ../../sparc/shared/include/genirq.h
     62libbsp_a_SOURCES += ../../sparc/shared/irq/genirq.c
    6163include_bsp_HEADERS += \
    6264    ../../shared/include/irq-generic.h \
     
    7779include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
    7880include_HEADERS += ../../sparc/shared/include/grlib.h
     81include_HEADERS += ../../sparc/shared/include/ahbstat.h
    7982libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
    8083libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
     
    8790libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
    8891libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
     92libbsp_a_SOURCES += ../../sparc/shared/amba/ahbstat.c
    8993
    9094# Clock Driver and Timer Library
     
    115119# B1553BRM
    116120include_HEADERS += ../../sparc/shared/include/b1553brm.h
     121include_HEADERS += ../../sparc/shared/include/b1553rt.h
    117122libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c
     123libbsp_a_SOURCES += ../../sparc/shared/1553/b1553rt.c
     124
     125# GR1553B
     126include_HEADERS += ../../sparc/shared/include/gr1553b.h
     127include_HEADERS += ../../sparc/shared/include/gr1553bc.h
     128include_HEADERS += ../../sparc/shared/include/gr1553bc_list.h
     129include_HEADERS += ../../sparc/shared/include/gr1553bm.h
     130include_HEADERS += ../../sparc/shared/include/gr1553rt.h
     131libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553b.c
     132libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bc.c
     133libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bm.c
     134libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553rt.c
    118135
    119136# CAN
     
    125142# SpaceWire
    126143include_HEADERS += ../../sparc/shared/include/grspw.h
     144include_HEADERS += ../../sparc/shared/include/grspw_router.h
    127145libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c
     146libbsp_a_SOURCES += ../../sparc/shared/spw/grspw_router.c
    128147
    129148# UART (RAW)
     
    135154libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
    136155
     156# SPI
     157include_HEADERS += ../../sparc/shared/include/spictrl.h
     158libbsp_a_SOURCES += ../../sparc/shared/spi/spictrl.c
     159
     160# TIME
     161include_HEADERS += ../../sparc/shared/include/spwcuc.h
     162include_HEADERS += ../../sparc/shared/include/grctm.h
     163libbsp_a_SOURCES += ../../sparc/shared/time/spwcuc.c
     164libbsp_a_SOURCES += ../../sparc/shared/time/grctm.c
     165
     166# GPIO
     167include_HEADERS += ../../sparc/shared/include/grgpio.h
     168include_HEADERS += ../../sparc/shared/include/gpiolib.h
     169libbsp_a_SOURCES += ../../sparc/shared/gpio/grgpio.c
     170libbsp_a_SOURCES += ../../sparc/shared/gpio/gpiolib.c
     171
     172# PWM
     173include_HEADERS += ../../sparc/shared/include/grpwm.h
     174libbsp_a_SOURCES += ../../sparc/shared/pwm/grpwm.c
     175
     176# ADC and DAC
     177include_HEADERS += ../../sparc/shared/include/gradcdac.h
     178libbsp_a_SOURCES += ../../sparc/shared/analog/gradcdac.c
     179
     180# Memory controllers
     181libbsp_a_SOURCES += ../../sparc/shared/mem/mctrl.c
     182
    137183# timer
    138184libbsp_a_SOURCES += timer/timer.c
     185
     186# TM/TC
     187include_HEADERS += ../../sparc/shared/include/grtc.h
     188include_HEADERS += ../../sparc/shared/include/grtm.h
     189libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtc.c
     190libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtm.c
    139191
    140192# Driver Manager
     
    167219endif
    168220
     221if HAS_NETWORKING
     222noinst_PROGRAMS += leon_greth.rel
     223leon_greth_rel_SOURCES = ../../sparc/shared/net/greth.c
     224include_HEADERS += ../../sparc/shared/include/greth.h
     225leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
     226leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
     227leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     228
    169229# BSP Network configuration
    170230include_HEADERS += ../../sparc/shared/include/network_interface_add.h
     
    179239
    180240if HAS_NETWORKING
     241libbsp_a_LIBADD += leon_greth.rel
    181242libbsp_a_LIBADD += leon_open_eth.rel
    182243libbsp_a_LIBADD += leon_smc91111.rel
  • c/src/lib/libbsp/sparc/leon2/include/bsp.h

    rfe1aa9c0 r3bb4122  
    228228#define AMBAPPBUS_INFO_AVAIL          /* AMBAPP Bus driver */
    229229#define GPTIMER_INFO_AVAIL            /* GPTIMER Timer driver */
     230#define GRETH_INFO_AVAIL              /* GRETH Ethernet driver */
    230231
    231232#ifdef __cplusplus
  • c/src/lib/libbsp/sparc/leon2/preinstall.am

    rfe1aa9c0 r3bb4122  
    8282PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/gnatcommon.h
    8383
     84$(PROJECT_INCLUDE)/genirq.h: ../../sparc/shared/include/genirq.h $(PROJECT_INCLUDE)/$(dirstamp)
     85        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/genirq.h
     86PREINSTALL_FILES += $(PROJECT_INCLUDE)/genirq.h
     87
    8488$(PROJECT_INCLUDE)/bsp/irq-generic.h: ../../shared/include/irq-generic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    8589        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-generic.h
     
    106110PREINSTALL_FILES += $(PROJECT_INCLUDE)/grlib.h
    107111
     112$(PROJECT_INCLUDE)/ahbstat.h: ../../sparc/shared/include/ahbstat.h $(PROJECT_INCLUDE)/$(dirstamp)
     113        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ahbstat.h
     114PREINSTALL_FILES += $(PROJECT_INCLUDE)/ahbstat.h
     115
    108116$(PROJECT_INCLUDE)/tlib.h: ../../sparc/shared/include/tlib.h $(PROJECT_INCLUDE)/$(dirstamp)
    109117        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tlib.h
     
    134142PREINSTALL_FILES += $(PROJECT_INCLUDE)/b1553brm.h
    135143
     144$(PROJECT_INCLUDE)/b1553rt.h: ../../sparc/shared/include/b1553rt.h $(PROJECT_INCLUDE)/$(dirstamp)
     145        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/b1553rt.h
     146PREINSTALL_FILES += $(PROJECT_INCLUDE)/b1553rt.h
     147
     148$(PROJECT_INCLUDE)/gr1553b.h: ../../sparc/shared/include/gr1553b.h $(PROJECT_INCLUDE)/$(dirstamp)
     149        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553b.h
     150PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553b.h
     151
     152$(PROJECT_INCLUDE)/gr1553bc.h: ../../sparc/shared/include/gr1553bc.h $(PROJECT_INCLUDE)/$(dirstamp)
     153        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553bc.h
     154PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553bc.h
     155
     156$(PROJECT_INCLUDE)/gr1553bc_list.h: ../../sparc/shared/include/gr1553bc_list.h $(PROJECT_INCLUDE)/$(dirstamp)
     157        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553bc_list.h
     158PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553bc_list.h
     159
     160$(PROJECT_INCLUDE)/gr1553bm.h: ../../sparc/shared/include/gr1553bm.h $(PROJECT_INCLUDE)/$(dirstamp)
     161        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553bm.h
     162PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553bm.h
     163
     164$(PROJECT_INCLUDE)/gr1553rt.h: ../../sparc/shared/include/gr1553rt.h $(PROJECT_INCLUDE)/$(dirstamp)
     165        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553rt.h
     166PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553rt.h
     167
    136168$(PROJECT_INCLUDE)/occan.h: ../../sparc/shared/include/occan.h $(PROJECT_INCLUDE)/$(dirstamp)
    137169        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/occan.h
     
    146178PREINSTALL_FILES += $(PROJECT_INCLUDE)/grspw.h
    147179
     180$(PROJECT_INCLUDE)/grspw_router.h: ../../sparc/shared/include/grspw_router.h $(PROJECT_INCLUDE)/$(dirstamp)
     181        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grspw_router.h
     182PREINSTALL_FILES += $(PROJECT_INCLUDE)/grspw_router.h
     183
    148184$(PROJECT_INCLUDE)/apbuart.h: ../../sparc/shared/include/apbuart.h $(PROJECT_INCLUDE)/$(dirstamp)
    149185        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/apbuart.h
     
    153189        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i2cmst.h
    154190PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2cmst.h
     191
     192$(PROJECT_INCLUDE)/spictrl.h: ../../sparc/shared/include/spictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
     193        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/spictrl.h
     194PREINSTALL_FILES += $(PROJECT_INCLUDE)/spictrl.h
     195
     196$(PROJECT_INCLUDE)/spwcuc.h: ../../sparc/shared/include/spwcuc.h $(PROJECT_INCLUDE)/$(dirstamp)
     197        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/spwcuc.h
     198PREINSTALL_FILES += $(PROJECT_INCLUDE)/spwcuc.h
     199
     200$(PROJECT_INCLUDE)/grctm.h: ../../sparc/shared/include/grctm.h $(PROJECT_INCLUDE)/$(dirstamp)
     201        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grctm.h
     202PREINSTALL_FILES += $(PROJECT_INCLUDE)/grctm.h
     203
     204$(PROJECT_INCLUDE)/grgpio.h: ../../sparc/shared/include/grgpio.h $(PROJECT_INCLUDE)/$(dirstamp)
     205        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grgpio.h
     206PREINSTALL_FILES += $(PROJECT_INCLUDE)/grgpio.h
     207
     208$(PROJECT_INCLUDE)/gpiolib.h: ../../sparc/shared/include/gpiolib.h $(PROJECT_INCLUDE)/$(dirstamp)
     209        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gpiolib.h
     210PREINSTALL_FILES += $(PROJECT_INCLUDE)/gpiolib.h
     211
     212$(PROJECT_INCLUDE)/grpwm.h: ../../sparc/shared/include/grpwm.h $(PROJECT_INCLUDE)/$(dirstamp)
     213        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grpwm.h
     214PREINSTALL_FILES += $(PROJECT_INCLUDE)/grpwm.h
     215
     216$(PROJECT_INCLUDE)/gradcdac.h: ../../sparc/shared/include/gradcdac.h $(PROJECT_INCLUDE)/$(dirstamp)
     217        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gradcdac.h
     218PREINSTALL_FILES += $(PROJECT_INCLUDE)/gradcdac.h
     219
     220$(PROJECT_INCLUDE)/grtc.h: ../../sparc/shared/include/grtc.h $(PROJECT_INCLUDE)/$(dirstamp)
     221        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grtc.h
     222PREINSTALL_FILES += $(PROJECT_INCLUDE)/grtc.h
     223
     224$(PROJECT_INCLUDE)/grtm.h: ../../sparc/shared/include/grtm.h $(PROJECT_INCLUDE)/$(dirstamp)
     225        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grtm.h
     226PREINSTALL_FILES += $(PROJECT_INCLUDE)/grtm.h
    155227
    156228$(PROJECT_INCLUDE)/drvmgr/$(dirstamp):
     
    167239PREINSTALL_FILES += $(PROJECT_INCLUDE)/drvmgr/leon2_amba_bus.h
    168240
     241if HAS_NETWORKING
     242$(PROJECT_INCLUDE)/greth.h: ../../sparc/shared/include/greth.h $(PROJECT_INCLUDE)/$(dirstamp)
     243        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/greth.h
     244PREINSTALL_FILES += $(PROJECT_INCLUDE)/greth.h
     245
    169246$(PROJECT_INCLUDE)/network_interface_add.h: ../../sparc/shared/include/network_interface_add.h $(PROJECT_INCLUDE)/$(dirstamp)
    170247        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/network_interface_add.h
  • c/src/lib/libbsp/sparc/leon3/Makefile.am

    rfe1aa9c0 r3bb4122  
    5656include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
    5757include_HEADERS += ../../sparc/shared/include/grlib.h
     58include_HEADERS += ../../sparc/shared/include/ahbstat.h
    5859libbsp_a_SOURCES += amba/amba.c
    5960libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
     
    6768libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
    6869libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
     70libbsp_a_SOURCES += ../../sparc/shared/amba/ahbstat.c
    6971
    7072# Clock Driver and Timer Library
     
    8789
    8890# IRQ
     91include_HEADERS += ../../sparc/shared/include/genirq.h
    8992include_bsp_HEADERS += \
    9093    ../../shared/include/irq-generic.h \
     
    9396libbsp_a_SOURCES += \
    9497    startup/eirq.c \
     98    ../../sparc/shared/irq/genirq.c  \
    9599    ../../sparc/shared/irq/irq-shared.c \
    96100    ../../sparc/shared/irq/bsp_isr_handler.c \
     
    125129# B1553BRM
    126130include_HEADERS += ../../sparc/shared/include/b1553brm.h
     131include_HEADERS += ../../sparc/shared/include/b1553rt.h
    127132libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c
     133libbsp_a_SOURCES += ../../sparc/shared/1553/b1553rt.c
     134
     135# GR1553B
     136include_HEADERS += ../../sparc/shared/include/gr1553b.h
     137include_HEADERS += ../../sparc/shared/include/gr1553bc.h
     138include_HEADERS += ../../sparc/shared/include/gr1553bc_list.h
     139include_HEADERS += ../../sparc/shared/include/gr1553bm.h
     140include_HEADERS += ../../sparc/shared/include/gr1553rt.h
     141libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553b.c
     142libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bc.c
     143libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bm.c
     144libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553rt.c
    128145
    129146# CAN
     
    135152# SpaceWire
    136153include_HEADERS += ../../sparc/shared/include/grspw.h
     154include_HEADERS += ../../sparc/shared/include/grspw_router.h
    137155libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c
     156libbsp_a_SOURCES += ../../sparc/shared/spw/grspw_router.c
    138157
    139158# UART
     
    147166libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
    148167
     168# SPI
     169include_HEADERS += ../../sparc/shared/include/spictrl.h
     170libbsp_a_SOURCES += ../../sparc/shared/spi/spictrl.c
     171
     172# TIME
     173include_HEADERS += ../../sparc/shared/include/spwcuc.h
     174include_HEADERS += ../../sparc/shared/include/grctm.h
     175libbsp_a_SOURCES += ../../sparc/shared/time/spwcuc.c
     176libbsp_a_SOURCES += ../../sparc/shared/time/grctm.c
     177
     178# GPIO
     179include_HEADERS += ../../sparc/shared/include/grgpio.h
     180include_HEADERS += ../../sparc/shared/include/gpiolib.h
     181libbsp_a_SOURCES += ../../sparc/shared/gpio/grgpio.c
     182libbsp_a_SOURCES += ../../sparc/shared/gpio/gpiolib.c
     183
     184# PWM
     185include_HEADERS += ../../sparc/shared/include/grpwm.h
     186libbsp_a_SOURCES += ../../sparc/shared/pwm/grpwm.c
     187
     188# ADC and DAC
     189include_HEADERS += ../../sparc/shared/include/gradcdac.h
     190libbsp_a_SOURCES += ../../sparc/shared/analog/gradcdac.c
     191
     192# Memory controllers
     193libbsp_a_SOURCES += ../../sparc/shared/mem/mctrl.c
     194
    149195# timer
    150196libbsp_a_SOURCES += timer/timer.c
     
    156202libbsp_a_SOURCES += include/cache_.h
    157203libbsp_a_CPPFLAGS = -I$(srcdir)/include
     204
     205# GR712
     206include_HEADERS += ../../sparc/shared/include/grascs.h
     207include_HEADERS += ../../sparc/shared/include/satcan.h
     208include_HEADERS += ../../sparc/shared/include/canmux.h
     209include_HEADERS += ../../sparc/shared/include/grslink.h
     210libbsp_a_SOURCES += ../../sparc/shared/ascs/grascs.c
     211libbsp_a_SOURCES += ../../sparc/shared/can/satcan.c
     212libbsp_a_SOURCES += ../../sparc/shared/can/canmux.c
     213libbsp_a_SOURCES += ../../sparc/shared/slink/grslink.c
     214
     215# TM/TC
     216include_HEADERS += ../../sparc/shared/include/grtc.h
     217include_HEADERS += ../../sparc/shared/include/grtm.h
     218libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtc.c
     219libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtm.c
    158220
    159221# Driver Manager
     
    186248if HAS_NETWORKING
    187249noinst_PROGRAMS += leon_greth.rel
    188 leon_greth_rel_SOURCES = leon_greth/leon_greth.c
     250libbsp_a_SOURCES += leon_greth/leon_greth.c
     251leon_greth_rel_SOURCES = ../../sparc/shared/net/greth.c
     252include_HEADERS += ../../sparc/shared/include/greth.h
    189253leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
    190254leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
  • c/src/lib/libbsp/sparc/leon3/include/bsp.h

    rfe1aa9c0 r3bb4122  
    258258#define APBUART_INFO_AVAIL            /* APBUART Console driver */
    259259#define GPTIMER_INFO_AVAIL            /* GPTIMER Timer driver */
     260#define GRETH_INFO_AVAIL              /* GRETH Ethernet driver */
    260261
    261262#ifdef __cplusplus
  • c/src/lib/libbsp/sparc/leon3/preinstall.am

    rfe1aa9c0 r3bb4122  
    106106PREINSTALL_FILES += $(PROJECT_INCLUDE)/grlib.h
    107107
     108$(PROJECT_INCLUDE)/ahbstat.h: ../../sparc/shared/include/ahbstat.h $(PROJECT_INCLUDE)/$(dirstamp)
     109        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ahbstat.h
     110PREINSTALL_FILES += $(PROJECT_INCLUDE)/ahbstat.h
     111
    108112$(PROJECT_INCLUDE)/tlib.h: ../../sparc/shared/include/tlib.h $(PROJECT_INCLUDE)/$(dirstamp)
    109113        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tlib.h
     
    114118PREINSTALL_FILES += $(PROJECT_INCLUDE)/cons.h
    115119
     120$(PROJECT_INCLUDE)/genirq.h: ../../sparc/shared/include/genirq.h $(PROJECT_INCLUDE)/$(dirstamp)
     121        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/genirq.h
     122PREINSTALL_FILES += $(PROJECT_INCLUDE)/genirq.h
     123
    116124$(PROJECT_INCLUDE)/bsp/irq-generic.h: ../../shared/include/irq-generic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    117125        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-generic.h
     
    154162PREINSTALL_FILES += $(PROJECT_INCLUDE)/b1553brm.h
    155163
     164$(PROJECT_INCLUDE)/b1553rt.h: ../../sparc/shared/include/b1553rt.h $(PROJECT_INCLUDE)/$(dirstamp)
     165        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/b1553rt.h
     166PREINSTALL_FILES += $(PROJECT_INCLUDE)/b1553rt.h
     167
     168$(PROJECT_INCLUDE)/gr1553b.h: ../../sparc/shared/include/gr1553b.h $(PROJECT_INCLUDE)/$(dirstamp)
     169        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553b.h
     170PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553b.h
     171
     172$(PROJECT_INCLUDE)/gr1553bc.h: ../../sparc/shared/include/gr1553bc.h $(PROJECT_INCLUDE)/$(dirstamp)
     173        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553bc.h
     174PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553bc.h
     175
     176$(PROJECT_INCLUDE)/gr1553bc_list.h: ../../sparc/shared/include/gr1553bc_list.h $(PROJECT_INCLUDE)/$(dirstamp)
     177        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553bc_list.h
     178PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553bc_list.h
     179
     180$(PROJECT_INCLUDE)/gr1553bm.h: ../../sparc/shared/include/gr1553bm.h $(PROJECT_INCLUDE)/$(dirstamp)
     181        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553bm.h
     182PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553bm.h
     183
     184$(PROJECT_INCLUDE)/gr1553rt.h: ../../sparc/shared/include/gr1553rt.h $(PROJECT_INCLUDE)/$(dirstamp)
     185        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr1553rt.h
     186PREINSTALL_FILES += $(PROJECT_INCLUDE)/gr1553rt.h
     187
    156188$(PROJECT_INCLUDE)/occan.h: ../../sparc/shared/include/occan.h $(PROJECT_INCLUDE)/$(dirstamp)
    157189        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/occan.h
     
    166198PREINSTALL_FILES += $(PROJECT_INCLUDE)/grspw.h
    167199
     200$(PROJECT_INCLUDE)/grspw_router.h: ../../sparc/shared/include/grspw_router.h $(PROJECT_INCLUDE)/$(dirstamp)
     201        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grspw_router.h
     202PREINSTALL_FILES += $(PROJECT_INCLUDE)/grspw_router.h
     203
    168204$(PROJECT_INCLUDE)/apbuart.h: ../../sparc/shared/include/apbuart.h $(PROJECT_INCLUDE)/$(dirstamp)
    169205        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/apbuart.h
     
    178214PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2cmst.h
    179215
     216$(PROJECT_INCLUDE)/spictrl.h: ../../sparc/shared/include/spictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
     217        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/spictrl.h
     218PREINSTALL_FILES += $(PROJECT_INCLUDE)/spictrl.h
     219
     220$(PROJECT_INCLUDE)/spwcuc.h: ../../sparc/shared/include/spwcuc.h $(PROJECT_INCLUDE)/$(dirstamp)
     221        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/spwcuc.h
     222PREINSTALL_FILES += $(PROJECT_INCLUDE)/spwcuc.h
     223
     224$(PROJECT_INCLUDE)/grctm.h: ../../sparc/shared/include/grctm.h $(PROJECT_INCLUDE)/$(dirstamp)
     225        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grctm.h
     226PREINSTALL_FILES += $(PROJECT_INCLUDE)/grctm.h
     227
     228$(PROJECT_INCLUDE)/grgpio.h: ../../sparc/shared/include/grgpio.h $(PROJECT_INCLUDE)/$(dirstamp)
     229        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grgpio.h
     230PREINSTALL_FILES += $(PROJECT_INCLUDE)/grgpio.h
     231
     232$(PROJECT_INCLUDE)/gpiolib.h: ../../sparc/shared/include/gpiolib.h $(PROJECT_INCLUDE)/$(dirstamp)
     233        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gpiolib.h
     234PREINSTALL_FILES += $(PROJECT_INCLUDE)/gpiolib.h
     235
     236$(PROJECT_INCLUDE)/grpwm.h: ../../sparc/shared/include/grpwm.h $(PROJECT_INCLUDE)/$(dirstamp)
     237        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grpwm.h
     238PREINSTALL_FILES += $(PROJECT_INCLUDE)/grpwm.h
     239
     240$(PROJECT_INCLUDE)/gradcdac.h: ../../sparc/shared/include/gradcdac.h $(PROJECT_INCLUDE)/$(dirstamp)
     241        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gradcdac.h
     242PREINSTALL_FILES += $(PROJECT_INCLUDE)/gradcdac.h
     243
    180244$(PROJECT_INCLUDE)/watchdog.h: include/watchdog.h $(PROJECT_INCLUDE)/$(dirstamp)
    181245        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/watchdog.h
    182246PREINSTALL_FILES += $(PROJECT_INCLUDE)/watchdog.h
     247
     248$(PROJECT_INCLUDE)/grascs.h: ../../sparc/shared/include/grascs.h $(PROJECT_INCLUDE)/$(dirstamp)
     249        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grascs.h
     250PREINSTALL_FILES += $(PROJECT_INCLUDE)/grascs.h
     251
     252$(PROJECT_INCLUDE)/satcan.h: ../../sparc/shared/include/satcan.h $(PROJECT_INCLUDE)/$(dirstamp)
     253        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/satcan.h
     254PREINSTALL_FILES += $(PROJECT_INCLUDE)/satcan.h
     255
     256$(PROJECT_INCLUDE)/canmux.h: ../../sparc/shared/include/canmux.h $(PROJECT_INCLUDE)/$(dirstamp)
     257        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/canmux.h
     258PREINSTALL_FILES += $(PROJECT_INCLUDE)/canmux.h
     259
     260$(PROJECT_INCLUDE)/grslink.h: ../../sparc/shared/include/grslink.h $(PROJECT_INCLUDE)/$(dirstamp)
     261        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grslink.h
     262PREINSTALL_FILES += $(PROJECT_INCLUDE)/grslink.h
     263
     264$(PROJECT_INCLUDE)/grtc.h: ../../sparc/shared/include/grtc.h $(PROJECT_INCLUDE)/$(dirstamp)
     265        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grtc.h
     266PREINSTALL_FILES += $(PROJECT_INCLUDE)/grtc.h
     267
     268$(PROJECT_INCLUDE)/grtm.h: ../../sparc/shared/include/grtm.h $(PROJECT_INCLUDE)/$(dirstamp)
     269        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grtm.h
     270PREINSTALL_FILES += $(PROJECT_INCLUDE)/grtm.h
    183271
    184272$(PROJECT_INCLUDE)/drvmgr/$(dirstamp):
     
    195283PREINSTALL_FILES += $(PROJECT_INCLUDE)/drvmgr/ambapp_bus.h
    196284
     285if HAS_NETWORKING
     286$(PROJECT_INCLUDE)/greth.h: ../../sparc/shared/include/greth.h $(PROJECT_INCLUDE)/$(dirstamp)
     287        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/greth.h
     288PREINSTALL_FILES += $(PROJECT_INCLUDE)/greth.h
     289endif
    197290if HAS_NETWORKING
    198291$(PROJECT_INCLUDE)/network_interface_add.h: ../../sparc/shared/include/network_interface_add.h $(PROJECT_INCLUDE)/$(dirstamp)
  • c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus.h

    rfe1aa9c0 r3bb4122  
    22 *
    33 *  COPYRIGHT (c) 2008.
    4  *  Cobham Gaisler AB
     4 *  Cobham Gaisler AB.
    55 *
    66 *  This is the general part of the different AMBA Plug & Play
     
    2929
    3030/*** Gaisler Hardware Device Driver IDs ***/
    31 #define DRIVER_AMBAPP_GAISLER_APBUART_ID       DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_APBUART)
    32 #define DRIVER_AMBAPP_GAISLER_GPTIMER_ID       DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GPTIMER)
     31#define DRIVER_AMBAPP_GAISLER_AHBSTAT_ID        DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_AHBSTAT)
     32#define DRIVER_AMBAPP_GAISLER_APBUART_ID        DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_APBUART)
     33#define DRIVER_AMBAPP_GAISLER_B1553BRM_ID       DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_B1553BRM)
     34#define DRIVER_AMBAPP_GAISLER_B1553RT_ID        DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_B1553RT)
     35#define DRIVER_AMBAPP_GAISLER_GPTIMER_ID        DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GPTIMER)
     36#define DRIVER_AMBAPP_GAISLER_GR1553B_ID        DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GR1553B)
     37#define DRIVER_AMBAPP_GAISLER_GRADCDAC_ID       DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRADCDAC)
     38#define DRIVER_AMBAPP_GAISLER_GRAES_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRAESDMA)
     39#define DRIVER_AMBAPP_GAISLER_GRCAN_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRCAN)
     40#define DRIVER_AMBAPP_GAISLER_GRCTM_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRCTM)
     41#define DRIVER_AMBAPP_GAISLER_GRETH_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_ETHMAC)
     42#define DRIVER_AMBAPP_GAISLER_GRGPIO_ID         DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GPIO)
     43#define DRIVER_AMBAPP_GAISLER_GRPCI2_ID         DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRPCI2)
     44#define DRIVER_AMBAPP_GAISLER_GRPCI_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_PCIFBRG)
     45#define DRIVER_AMBAPP_GAISLER_GRPWM_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRPWM)
     46#define DRIVER_AMBAPP_GAISLER_GRPWRX_ID         DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_PW2APB)
     47#define DRIVER_AMBAPP_GAISLER_GRSPW_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_SPW)
     48#define DRIVER_AMBAPP_GAISLER_GRTC_ID           DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRTC)
     49#define DRIVER_AMBAPP_GAISLER_GRTM_ID           DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_GRTM)
     50#define DRIVER_AMBAPP_GAISLER_I2CMST_ID         DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_I2CMST)
     51#define DRIVER_AMBAPP_GAISLER_OCCAN_ID          DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_CANAHB)
     52#define DRIVER_AMBAPP_GAISLER_PCIF_ID           DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_PCIF)
     53#define DRIVER_AMBAPP_GAISLER_PCITRACE_ID       DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_PCITRACE)
     54#define DRIVER_AMBAPP_GAISLER_SPICTRL_ID        DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_SPICTRL)
     55#define DRIVER_AMBAPP_GAISLER_SPWCUC_ID         DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_SPWCUC)
     56#define DRIVER_AMBAPP_GAISLER_SPW_ROUTER_ID     DRIVER_AMBAPP_ID(VENDOR_GAISLER, GAISLER_SPW_ROUTER)
     57
     58/*** ESA Hardware Device Driver IDs ***/
     59#define DRIVER_AMBAPP_ESA_MCTRL_ID              DRIVER_AMBAPP_ID(VENDOR_ESA, ESA_MCTRL)
     60#define DRIVER_AMBAPP_MCTRL_ID                  DRIVER_AMBAPP_ESA_MCTRL_ID
    3361
    3462struct amba_dev_id {
Note: See TracChangeset for help on using the changeset viewer.