summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-03-19Merge official 4.10.2 sources into rcc-1.2 branchrcc-v1.2.9Daniel Hellstrom
2013-03-18PCI-RASTA: set GRPCI1 target cache-line-size to avoid poor performancercc-v1.2.8Daniel Hellstrom
2013-03-14GRETH: cleaned up parts of PHY init codeDaniel Hellstrom
2013-03-14GRETH: changed the PHY initialization sequenceDaniel Hellstrom
1. read_mii() now returns 0xffff on failure. It is more robust when it comes to reading the reset bit in the control register, that is the first access. 2. write_mii() now has error printout like read_mii(). 3. Additional (optional) PHY access debugging is now available by enabling GRETH_DEBUG_MII. Even successful accesses are printed. 4. Let PHY do power-down (not only reset) to get in a good state, this is just in case the PHY input pin settings are sampled only on PHY power-up on some PHYs. 5. PHY GBit advertisement is disabled if Gbit is not supported by MAC. Or forced if supported. 6. Auto-nego is started if supported by PHY, before it was started only if default set by PHY. 7. Reset Sequence updated: * one must wait until reset bit is self-cleared. * the DD (Disable Duplex Detection) bit is set, only affects EDCL capable devices. This lets RTEMS handle PHY initialization
2013-03-12GRETH: forcing autonegotiation during PHY initializationDaniel Hellstrom
Looking at PHY Ctrl register without reseting it will give back old register content, that is not stable. Instead the PHY is reset and the autonogotiation capability is read out and started if present.
2013-03-12GRETH: updated worker Deamon thread nameDaniel Hellstrom
The name was probably copied from the DEC21140 driver
2013-03-06GRPCI: initialize cache-line-size and latency timerDaniel Hellstrom
In some GRPCI cores not setting the cache line size could result in long prefetches on the AMBA bus which would lead to bad performance when doing PCI reads to GRPCI target interface (DMA). Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2013-03-06GR1553BC: fix memory leak when closing BC driverDaniel Hellstrom
2013-01-18GRSPW: fixed SET_RMAPEN and SET_RMAPBUFDISDaniel Hellstrom
Both ioctl commands destroyed the control register by writing the content of the status register into it.
2012-11-19GPTIMER: support separate & shared irq by clearing pending bit after ISRrcc-v1.2.7Daniel Hellstrom
2012-11-19SPW_BUS: Cannot verify when writing 3 bytes is not allowedArvid Bjorkengren
2012-11-19GPTIMER: Only probe pending bit on timer0Daniel Hellstrom
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: Arvid Bjorkengren <arvid@gaisler.com>
2012-11-19RMAP: Removed a compile warning.Arvid Bjorkengren
2012-10-08DRVMGR/SPW_BUS: Don't add index to virq, probably a copy/paste error.rcc-v1.2.6Arvid Bjorkengren
2012-10-08DRVMGR/SPW_BUS: Mask instead of unregister interrupt from SpW ISRArvid Bjorkengren
... when temporarily disabling IRQ from the ISR (and corresponding for enable) This is because low-level routines will return RTEMS_CALLED_FROM_ISR when unregister is called from an ISR. Implement SPW-BUS IRQ mask/unmask functions and bug fix interrupt register/unregister functions.
2012-10-08DRVMGR/SPW_BUS: ISR now has a correct prototypeArvid Bjorkengren
2012-10-08AMBAPP_BUS_RMAP: Check mask when handling interrupts.Arvid Bjorkengren
2012-10-08AMBAPP_BUS_RMAP: IRQ is now enabled properly when registeredArvid Bjorkengren
2012-10-08RMAP: Make sure buffers are 64-bit aligned to improve odds of getting a fast ↵Arvid Bjorkengren
memcpy-operation.
2012-10-08DRVMGR: Fix to stop optimization from generating broken code.Arvid Bjorkengren
drvmgr_func_call() caused NULL pointer exception
2012-07-06GRSPW_PKT: the PKT_FLAG_ bit-mask is only 16-bit, fixed translation flagsrcc-v1.2.5Daniel Hellstrom
2012-06-19APBUART: fix GRMON -u support for older UARTsrcc-v1.2.4Daniel Hellstrom
2012-06-19GRSPW: New packet based driver for SPW/SPW2/SPW2_DMADaniel Hellstrom
This patch adds a new driver for the GRSPW SpaceWire AMBA interface family. The new driver does not implement a standard RTEMS driver, instead it provides only a library interface to the GRSPW devices. This driver can be used to implement a RTEMS I/O driver or used directly. New features compared with old GRSPW driver: * zero-copy packet interface * possibility to send/receive mulitple packets per call * optional interrupt awaken work-task to process TX/RX queues * DMA channels support. Before only first DMA channel supported * Separate DMA and link control * Packet based error flags Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-06-19LEON3: fixed nano seconds support in TLIBDaniel Hellstrom
The _Watchdog_Nanoseconds_since_tick_handler() function caller does not take into account that the timer counter may wrap, underflow or overflow. Instead, the driver must take that into account. This GPTIMER DrvMgr driver patch makes use of the IRQ-Pending bit to determine if a underflow has happened. In that case a greater time than one tick is returned (even considering the function name..). The TLIB clock layer must also ACK the interrupt pending bit, otherwise we couldn't determine whether an IRQ is pending or if belongs to un old already handled tick IRQ. Note that this patch only fixes the DrvMgr GPTIMER driver and TLIB, the standard LEON3 GPTIMER driver still needs a fix. Reported-by: Rolf Schroedter <rolf.schroedter@dlr.de> Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-05-24GRTM: fixed bug where transmitter start loop was optimized awayrcc-v1.2.3Daniel Hellstrom
2012-05-16GRPCI: fix target BAR1 initializationDaniel Hellstrom
2012-04-05LEON APBUART: bad formula for scaler to baudrate conversionDaniel Hellstrom
2012-03-27DRVMGR: insert_dev_into_bus depends on dev->drv, init earlierrcc-v1.2.2Daniel Hellstrom
2012-03-27GRETH-DRVMGR: moved the MEM-load (force-cache-miss) logic to BSPDaniel Hellstrom
2012-03-27GRETH: moved the MEM-load (force-cache-miss) logic to BSPDaniel Hellstrom
2012-03-27GRETH-DRVMGR: removed the use of rtems_set_clock() in auto-nego timeoutDaniel Hellstrom
2012-03-27GRETH: removed the use of rtems_set_clock() in auto-nego timeoutDaniel Hellstrom
2012-03-27ambapp_{grlib,leon2}_init1: config->bus_type not initialized.Magnus Hjorth
2012-03-27b1553rt.c: rt_init: Preserve rtaddr and rtpar fields on init.Magnus Hjorth
2012-03-27LEON2: added PCIF driver againrcc-v1.2.1Daniel Hellstrom
PCIF driver was accidentaly removed by commit b96029546014ab1b3da33b7e3917bc9d3d0d5453.
2012-03-27LEON3: fixed GRETH conflict in Makefile.am no. 2Daniel Hellstrom
2012-03-27LEON3: fixed GRETH conflict in Makefile.amDaniel Hellstrom
2012-03-27LEON3: fix CONSOLE_MAX in cons.c, build errorDaniel Hellstrom
2012-03-27LEON: renamed GPIO register names, fixed double definitionsDaniel Hellstrom
2012-03-27DRVMGR: Fix drvmgr_for_each_dev breadth-first search bugDaniel Hellstrom
2012-03-27b1553rt: Workaround for reset mode command issueMagnus Hjorth
The B1553RT wrapper has been designed so that when a reset remote terminal mode code is recieved, the whole wrapper is reset including the RT address and IRQ mask. Fortunately, the IRQ is delivered before this happens, so we can detect this in the driver and restore the control register contents.
2012-03-27LEON3: fix conversion miss when struct gptimer was introducedDaniel Hellstrom
2012-03-27LEON2: SMC9111 IRQ setup fix, shared-IRQ conversion missDaniel Hellstrom
2012-03-27DRVMGR: fix TOPO printout compile warningDaniel Hellstrom
2012-03-27DRVMGR: fix bug in drvmgr_for_each_dev_breadthDaniel Hellstrom
2012-03-27DRVMGR: Added missing string.h includeDaniel Hellstrom
2012-03-27DRVMGR: removed faulty lock handlingDaniel Hellstrom
2012-03-27pci_bus.c: minor cleanupDaniel Hellstrom
2012-03-27SPARC: Removed unused file shared/bspstart.cDaniel Hellstrom
2012-03-27LEON: Cleaned up Makefile.am and preinstall.am to match clean branchDaniel Hellstrom
Added libchip/network/greth.c GRETH driver initialization to BSP again (leon3/leon_greth/).