[PATCH 038/111] GRETH: changed the PHY initialization sequence

2015-02-26 Thread Daniel Hellstrom
1. read_mii() now returns 0x 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

[PATCH 062/111] GR-RASTA-TMTC,rev1: add GRGPIO[0] register init

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c | 167 ++--- 1 files changed, 77 insertions(+), 90 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c b/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c index 47d8061..faefa4d 100644 --- a/c/src/lib/

[PATCH 034/111] GRSPW: fixed SET_RMAPEN and SET_RMAPBUFDIS

2015-02-26 Thread Daniel Hellstrom
Both ioctl commands destroyed the control register by writing the content of the status register into it. --- c/src/lib/libbsp/sparc/shared/spw/grspw.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw.c b/c/src/lib/libbsp/sparc/sh

[PATCH 057/111] AMBAPP: updated PnP IDs database with SPWTDP

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c |1 + c/src/lib/libbsp/sparc/shared/include/ambapp_ids.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c b/c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c index

[PATCH 052/111] AT697PCI: fix PCI cfg writes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c b/c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c index 6289a56..423fada 100644 --- a/c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c

[PATCH 054/111] GR-RASTA-IO: updated for new version

2015-02-26 Thread Daniel Hellstrom
>From this driver's point of view the major new thing is that the GRPCI peripheral PCI bridge has been updated to GRPCI2, the second version. This means that both Big and Little Endian systems are now supported and autodetected on runtime. --- c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c | 217

[PATCH 058/111] GRSPW: Fix incorrect register defines - presently functionally inconsequential

2015-02-26 Thread Daniel Hellstrom
From: Andreas Larsson --- c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c b/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c index 6b6820a..1696c3c 100644 --- a/c/src/lib/lib

[PATCH 036/111] GRETH: updated worker Deamon thread name

2015-02-26 Thread Daniel Hellstrom
The name was probably copied from the DEC21140 driver --- c/src/lib/libbsp/sparc/shared/net/greth.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/net/greth.c b/c/src/lib/libbsp/sparc/shared/net/greth.c index 31eeade..733b2a4 100644 --- a

[PATCH 055/111] GRETH: avoid hw generated UDP/TCP cksum generation

2015-02-26 Thread Daniel Hellstrom
Hardware generated checksum UDP packets does not work for IP fragmented UDP packets. It seems as if the BSD stack never signals to the GRETH driver to generate or not to generate TCP/UDP checksum for different cases. The GRETH driver never tells the BSD stack about it capabilities either so there i

[PATCH 048/111] LEON PCI: host bridge driver support for probing dev0=AD16

2015-02-26 Thread Daniel Hellstrom
Before the LIBPCI didn't probe device0 (AD16), the host bridge drivers used bus=dev=func=0 to internally probe the host bridge's target interface. Now that LIBPCI uses bus=dev=func=0 to access device0, bus=0xff is introduced internally to identify the host bridge target configuration space. --- c/

[PATCH 032/111] GPTIMER: Only probe pending bit on timer0

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/timer/gptimer.c | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c index d093ca1..2314a3b 100644 --- a/c/src/lib/libbsp/spar

[PATCH 064/111] GRTM: fixed descriptor TS bit declaration

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grtm.h |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grtm.h b/c/src/lib/libbsp/sparc/shared/include/grtm.h index c2cf9ef..1bf7681 100644 --- a/c/src/lib/libbsp/sparc/shared/include/g

[PATCH 056/111] GRTIMER: added to GPTIMER driver

2015-02-26 Thread Daniel Hellstrom
GRTIMER is compatible with GPTIMER, however the GPTIMER driver does not support the extended features of GRTIMER. --- c/src/lib/libbsp/sparc/shared/timer/gptimer.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/li

[PATCH 063/111] GRSPW_PKT: grspw_status renamed in header

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h index ee71980..2cf70eb 100644 --- a/c/src/lib/libbsp/sparc/shared/i

[PATCH 046/111] NGMP PCI: added support for NGMP prototype boards

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c | 13 - cpukit/libpci/pci/ids_extra.h|1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c b/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c

[PATCH 059/111] GRSPW_PKT: Add support for Interrupt-codes

2015-02-26 Thread Daniel Hellstrom
From: Andreas Larsson Update: Daniel Hellstrom updated SpW-IRQ implementation accoring to changes in hardware register layout and features. --- c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h | 72 +- c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c | 309

[PATCH 043/111] GRPCI2: updated register layout to newer specification

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/grpci2.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c index 3891c25..5886336 100644 --- a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c +++

[PATCH 065/111] AHBSTAT: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/amba/ahbstat.c|4 ++-- c/src/lib/libbsp/sparc/shared/include/ahbstat.h |3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c index 0fe96cd..88

[PATCH 077/111] AT697PCI: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/include/at697_pci.h | 26 ++ c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c | 24 ++-- c/src/lib/libbsp/sparc/leon2/preinstall.am |4 +++ 4 files changed,

[PATCH 067/111] GRETH: fix build warnings with GCC-4.9

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/include/bsp.h |2 +- c/src/lib/libbsp/sparc/shared/net/greth.c | 43 +++- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h index

[PATCH 070/111] GRSPW: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/spw/grspw.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw.c b/c/src/lib/libbsp/sparc/shared/spw/grspw.c index 4d66d13..d50e757 100644 --- a/c/src/lib/libbsp/sparc/shared/spw/grspw.c +++ b/c/sr

[PATCH 072/111] PCIF: fixed build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/preinstall.am |4 c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am |4 c/src/lib/lib

[PATCH 066/111] GPTIMER: avoid build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/timer/gptimer.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c index 67ac7a2..b879483 100644 --- a/c/src/lib/libbsp/sparc/

[PATCH 082/111] LEON: OCCAN driver warnings fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/can/occan.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/occan.c b/c/src/lib/libbsp/sparc/shared/can/occan.c index 8ce6a66..b9050cd 100644 --- a/c/src/lib/libbsp/sparc/shared/can/occan.c +++ b/c/

[PATCH 076/111] GPTIMER: move ISR install from init1

2015-02-26 Thread Daniel Hellstrom
To avoid install ISRs during init level 1 the ISR install is moved to the opening/initialization of the timer. --- c/src/lib/libbsp/sparc/shared/timer/gptimer.c | 29 +++- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gpt

[PATCH 060/111] GRSPW: added clock cycles after GRSPW reset

2015-02-26 Thread Daniel Hellstrom
added clock cycles after GRSPW reset to make sure CTRL.START bit write actually have an effect. Wait until reset is completed. --- c/src/lib/libbsp/sparc/shared/spw/grspw.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw

[PATCH 073/111] GR-RASTA-SPW-ROUTER: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/preinstall.am |4 ++ c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am

[PATCH 091/111] GRSPW_PKT: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h |3 +++ c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c |2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h index

[PATCH 061/111] B1553BRM: change the init of the RT legalization registers

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/b1553brm.c| 23 - c/src/lib/libbsp/sparc/shared/include/b1553brm.h |8 +++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c b/c/src/lib/libbsp/sparc/shared/1553/b1

[PATCH 074/111] APBUART_CONS: fix build warning

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am |4 .../lib/libbsp/sparc/shared/include/apbuart_cons.h | 16 c/src/lib/libbsp/sparc/shared/ua

[PATCH 080/111] LEON: B1553RT driver warnings fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/b1553rt.c|5 + c/src/lib/libbsp/sparc/shared/include/b1553rt.h |5 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553rt.c b/c/src/lib/libbsp/sparc/shared/1553/b1553rt.c index 3dfb403.

[PATCH 078/111] GR1553B: fixed build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/gr1553b.c| 16 +++--- c/src/lib/libbsp/sparc/shared/1553/gr1553bc.c |4 +- c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c |4 +- c/src/lib/libbsp/sparc/shared/1553/gr1553rt.c | 28 ++ c/src/lib/libbsp/sparc/shared/include/gr1553b.

[PATCH 075/111] GPTIMER: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/Makefile.am|1 + c/src/lib/libbsp/sparc/leon2/preinstall.am |4 +++ c/src/lib/libbsp/sparc/leon3/Makefile.am|1 + c/src/lib/libbsp/sparc/leon3/preinstall.am |4 +++

[PATCH 053/111] GR-RASTA-TMTC: updated for new version

2015-02-26 Thread Daniel Hellstrom
>From this driver's point of view the major new thing is that the GRPCI peripheral PCI bridge has been updated to GRPCI2, the second version. This means that both Big and Little Endian systems are now supported and autodetected on runtime. The PCI frequency is used as AMBA frequency of the GR-RAST

[PATCH 095/111] GRPWM: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pwm/grpwm.c | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pwm/grpwm.c b/c/src/lib/libbsp/sparc/shared/pwm/grpwm.c index 753a680..b4506c6 100644 --- a/c/src/lib/libbsp/sparc/shared/pwm/grpw

[PATCH 081/111] LEON: B1553BRM driver warnings fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/b1553brm.c|3 --- c/src/lib/libbsp/sparc/shared/include/b1553brm.h |8 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c b/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c index 6ec

[PATCH 098/111] GPIOLIB: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c b/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c index 4eca013..6fb1cfc 100644 --- a/c/src/lib/libbsp/sparc/shared/gp

[PATCH 101/111] GR-LEON4-N2X: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../lib/libbsp/sparc/shared/include/gr_leon4_n2x.h |7 +-- c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c | 19 +-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_leon4_n2x.h b/c/src/lib/libbsp/sparc/shar

[PATCH 084/111] LEON: GRPCI2 driver warning fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/grpci2.c | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c index eacd228..53c4181 100644 --- a/c/src/lib/libbsp/sparc/shared/p

[PATCH 096/111] GENIRQ: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/irq/genirq.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/irq/genirq.c b/c/src/lib/libbsp/sparc/shared/irq/genirq.c index 782ebf8..57654b3 100644 --- a/c/src/lib/libbsp/sparc/shared/irq/genirq.c +++

[PATCH 085/111] GRTC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grtc.h |3 ++ c/src/lib/libbsp/sparc/shared/tmtc/grtc.c| 29 +++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grtc.h b/c/src/lib/libbsp/sparc/shared/include/grtc.h i

[PATCH 094/111] SPWCUC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/time/spwcuc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/time/spwcuc.c b/c/src/lib/libbsp/sparc/shared/time/spwcuc.c index 738ec1a..f5d0f11 100644 --- a/c/src/lib/libbsp/sparc/shared/time/spwcuc.c +++

[PATCH 099/111] GRGPIO: fix buld warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/gpio/grgpio.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/gpio/grgpio.c b/c/src/lib/libbsp/sparc/shared/gpio/grgpio.c index eab8ef9..e9a5426 100644 --- a/c/src/lib/libbsp/sparc/shared/gpi

[PATCH 104/111] GR-RASTA-SPW-ROUTER: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../sparc/shared/include/gr_rasta_spw_router.h |5 - .../libbsp/sparc/shared/pci/gr_rasta_spw_router.c | 17 +++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_rasta_spw_router.h b/c/src/lib/libbsp/sparc/s

[PATCH 079/111] LEON: added get_resarray_count() helper routine

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |3 ++ c/src/lib/libbsp/sparc/leon2/Makefile.am |2 + c/src/lib/libbsp/sparc/leon2/preinstall.am |4 +++ c/src/lib/libbsp/sparc/leon3/Makefile.am |2 + c/src/lib/libbsp/sparc/leon3/preinstall.am

[PATCH 103/111] GR-RASTA-IO: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../lib/libbsp/sparc/shared/include/gr_rasta_io.h |7 - c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c| 26 --- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_rasta_io.h b/c/src/lib/libbsp/sparc/shared/

[PATCH 100/111] GR_701: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/gr_701.h |9 ++--- c/src/lib/libbsp/sparc/shared/pci/gr_701.c | 18 -- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_701.h b/c/src/lib/libbsp/sparc/shared/include/gr

[PATCH 105/111] GR-RASTA-TMTC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../libbsp/sparc/shared/include/gr_rasta_tmtc.h|8 - c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c | 29 +-- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_rasta_tmtc.h b/c/src/lib/libbsp/sparc/share

[PATCH 107/111] LEON CONS: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/uart/cons.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/uart/cons.c b/c/src/lib/libbsp/sparc/shared/uart/cons.c index 3de9f54..f0af1f9 100644 --- a/c/src/lib/libbsp/sparc/shared/uart/cons.c +++ b/c/src/l

[PATCH 009/111] DRVMGR: added driver manager to cpukit/libdrvmgr

2015-02-26 Thread Daniel Hellstrom
--- aclocal/enable-drvmgr.m4 | 12 + c/src/aclocal/enable-drvmgr.m4 | 12 + c/src/lib/libbsp/shared/bspdriverlevelhook.c | 16 + c/src/lib/libbsp/shared/include/bootcard.h |2 + c/src/make/configure.ac |1 + configure.ac

[PATCH 109/111] LEON2: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../libbsp/sparc/shared/drvmgr/leon2_amba_bus.c| 33 ++- 1 files changed, 11 insertions(+), 22 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/drvmgr/leon2_amba_bus.c b/c/src/lib/libbsp/sparc/shared/drvmgr/leon2_amba_bus.c index f4ff89f..a52ec0f 100644 --- a/c/s

[PATCH 111/111] MCTRL: fix build warnings in MCTRL driver

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/preinstall.am|4 +++ c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am|4 +++ c/src/lib/libbsp/sparc/shared/include/mctrl.h | 26 +

[PATCH 110/111] AMBAPP GRLIB: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../sparc/shared/include/drvmgr/ambapp_bus_grlib.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h b/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h index a0e0548..97a23ac 100644 --- a/c

[PATCH 108/111] AMBAPP_BUS: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c | 41 + 1 files changed, 18 insertions(+), 23 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c b/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c index c95e8fd..29a38d9 100644 --- a/c/src/lib/

[PATCH 026/111] GRTM: fixed bug where transmitter start loop was optimized away

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/tmtc/grtm.c | 33 +++-- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/tmtc/grtm.c b/c/src/lib/libbsp/sparc/shared/tmtc/grtm.c index de1df72..49025bc 100644 --- a/c/src/lib/libbsp/sparc/sha

[PATCH 024/111] DRVMGR: add LEON BSPs driver registration

2015-02-26 Thread Daniel Hellstrom
--- cpukit/libdrvmgr/drvmgr_confdefs.h | 218 +++- 1 files changed, 215 insertions(+), 3 deletions(-) diff --git a/cpukit/libdrvmgr/drvmgr_confdefs.h b/cpukit/libdrvmgr/drvmgr_confdefs.h index 23affe9..b2e4aba 100644 --- a/cpukit/libdrvmgr/drvmgr_confdefs.h +++ b

[PATCH 040/111] PCI-RASTA: set GRPCI1 target cache-line-size to avoid poor performance

2015-02-26 Thread Daniel Hellstrom
--- .../lib/libbsp/sparc/shared/pci/gr_rasta_adcdac.c |6 ++ c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c|6 ++ c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c |6 ++ 3 files changed, 18 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pc

[PATCH 068/111] LEON3: export debug uart to console uart driver

2015-02-26 Thread Daniel Hellstrom
--- .../libbsp/sparc/leon3/console/printk_support.c|2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/console/printk_support.c b/c/src/lib/libbsp/sparc/leon3/console/printk_support.c index 685a193..2fc005c 100644 --- a/c/src/lib/libbsp/sparc

[PATCH 071/111] GRPCI: fixed build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am|1 + c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/preinstall.am|4 +++ c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am|4 +++ c/src/lib/

[PATCH 093/111] SPICTRL: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/spi/spictrl.c | 29 +- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spi/spictrl.c b/c/src/lib/libbsp/sparc/shared/spi/spictrl.c index b149a95..dab478d 100644 --- a/c/src/lib/libbsp/sparc/

[PATCH 102/111] GR-RASTA-ADCDAC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../libbsp/sparc/shared/include/gr_rasta_adcdac.h |9 +-- .../lib/libbsp/sparc/shared/pci/gr_rasta_adcdac.c | 22 +-- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_rasta_adcdac.h b/c/src/lib/libbsp/sparc/s

[PATCH 086/111] GRTM: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grtm.h |3 +++ c/src/lib/libbsp/sparc/shared/tmtc/grtm.c| 10 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grtm.h b/c/src/lib/libbsp/sparc/shared/include/grtm.h index 1bf7681..d6

[PATCH 097/111] GRADCDAC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/analog/gradcdac.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/analog/gradcdac.c b/c/src/lib/libbsp/sparc/shared/analog/gradcdac.c index 4b8e636..c04c856 100644 --- a/c/src/lib/libbsp/sparc/shared/analo

[PATCH 030/111] GRSPW: Make sure buffers are 64-bit aligned

2015-02-26 Thread Daniel Hellstrom
From: Arvid Bjorkengren This is to improve odds of getting a fast memcpy-operation. --- c/src/lib/libbsp/sparc/shared/spw/grspw.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw.c b/c/src/lib/libbsp/sparc/shared/spw/grsp

[PATCH 092/111] GRSPW router: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../lib/libbsp/sparc/shared/include/grspw_router.h |3 ++ c/src/lib/libbsp/sparc/shared/spw/grspw_router.c | 38 +--- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_router.h b/c/src/lib/libbsp/sparc/shared/i

[PATCH 106/111] GR-TMTC-1553: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../lib/libbsp/sparc/shared/include/gr_tmtc_1553.h |8 +++- c/src/lib/libbsp/sparc/shared/pci/gr_tmtc_1553.c | 20 +--- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_tmtc_1553.h b/c/src/lib/libbsp/sparc/sh

[PATCH 069/111] LEON3: watchdog use common timer defines

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/timer/watchdog.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c b/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c index 15e2142..37e0d43 100644 --- a/c/src/lib/libbsp/sparc/leon3/timer/watchdog

[PATCH 028/111] GRSPW: New packet based driver for SPW/SPW2/SPW2_DMA

2015-02-26 Thread Daniel 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

[PATCH 090/111] TLIB: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/tlib.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/tlib.h b/c/src/lib/libbsp/sparc/shared/include/tlib.h index df9466e..ea43951 100644 --- a/c/src/lib/libbsp/sparc/shared/incl

[PATCH 083/111] LEON: I2CMST driver warnings fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c |2 +- c/src/lib/libbsp/sparc/shared/include/i2cmst.h |3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c b/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c index f71af0b..b95e39f 10

Re: [PATCH 000/111] GRLIB/LEON RTEMS RCC patches

2015-02-27 Thread Daniel Hellstrom
On 02/26/2015 05:58 PM, Gedare Bloom wrote: On Thu, Feb 26, 2015 at 11:38 AM, Daniel Hellstrom wrote: Hi, I have rebased and tested briefly the RTEMS code that we have used on LEON2/3/4 on RTEMS-4.10 during the last couple of years. A couple of years ago most stuff that did not depend on the

Re: [PATCH 005/111] leon3: make timer initialization configurable

2015-02-27 Thread Daniel Hellstrom
the register address variable. On Thu, Feb 26, 2015 at 11:38 AM, Daniel Hellstrom wrote: Its now possible to select which timer core will be used for system clock timer and to control the timer prescaler that affects all timer instances on that timer core. The timer and interrupt controller

Re: [PATCH 002/111] LEON3: GPTIMER timer watchdog driver

2015-02-27 Thread Daniel Hellstrom
BSP drivers headers into include/bsp. Is that okay? On Thu, Feb 26, 2015 at 11:38 AM, Daniel Hellstrom wrote: Last timer instance of GPTIMER is sometimes a watchdog timer that can reset the system on timer underflow. --- c/src/lib/libbsp/sparc/leon3/Makefile.am|2 + c/src/lib

Re: Fwd: [PATCH 007/111] LIBPCI: added PCI layer to cpukit/libpci

2015-02-27 Thread Daniel Hellstrom
pOn 02/26/2015 08:35 PM, Gedare Bloom wrote: On Thu, Feb 26, 2015 at 11:38 AM, Daniel Hellstrom wrote: --- cpukit/Makefile.am |3 + cpukit/configure.ac| 12 + cpukit/libpci/CHANGES | 46 ++ cpukit/libpci/Makefile.am | 46

Re: [PATCH 002/111] LEON3: GPTIMER timer watchdog driver

2015-02-27 Thread Daniel Hellstrom
edare On Fri, Feb 27, 2015 at 5:39 AM, Joel Sherrill wrote: On February 27, 2015 3:55:22 AM EST, Daniel Hellstrom wrote: On 02/26/2015 07:13 PM, Gedare Bloom wrote: bsp-specific headers should not be installed to include/. this has historically been allowed but we want to get away from it

C++0x/1y concurrency support status

2015-03-02 Thread Daniel Gutson
e C++0x/1y concurrency features for some non-real time software modules, so if somebody could save us some research time, would be very helpful to complete the implementation if needed. Thanks! Daniel. -- Daniel F. Gutson Chief Technology Officer, SPD San Lorenzo 47, 3rd Floor, Office 5 Córdoba,

UART driver: read function

2015-03-06 Thread Daniel Krüger
nd modules (e.g. console*.c, rtems_termios*, ...) involved between getchar() and the UART driver's read function. So it's a little bit hard to dig into that issue and to find a good solution. Best regards, Daniel Krüger -- SYS TEC electronic GmbH Am Windrad 2 08468 Heinsdorfergru

[PATCH] rtems: Use atomic operation with correct type

2015-03-11 Thread Daniel Cederman
--- c/src/lib/libcpu/shared/src/cache_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libcpu/shared/src/cache_manager.c b/c/src/lib/libcpu/shared/src/cache_manager.c index 7ff1166..89ec88f 100644 --- a/c/src/lib/libcpu/shared/src/cache_manager.c +++ b/c/src

[PATCH] sparc: Restore npc when returning from the syscall_lazy_fp_switch trap

2018-08-24 Thread Daniel Hellstrom
From: Daniel Cederman If the floating point trap occurred in a delay slot it is not certain that npc will be equal to pc + 4. --- cpukit/score/cpu/sparc/syscall.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc/syscall.S b/cpukit/score/cpu/sparc

[PATCH] leon, greth: 10/100 MAC enable TX BD interrupt

2018-08-24 Thread Daniel Hellstrom
Missed to enable interrupt per TX descriptor. Could lead to TX buffer starvation. Does not affect the GBit code. --- bsps/sparc/shared/net/greth.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bsps/sparc/shared/net/greth.c b/bsps/sparc/shared/net/greth.c index eaf

[PATCH] leon, apbuart: replace termios c_cflag & CBAUD with c_{i, o}speed

2018-08-24 Thread Daniel Hellstrom
ince some time RTEMS started to use the termios c_ispeed and c_ospeed variables in the termios struct to hold the UART baudrate. However the APBUART driver still uses the old c_cflag sometimes causing other UART parameters to get overwritten, for example the partiy setting no mapped to the same bit

[PATCH] leon, grspw_pkt: remove incorrect comment on SMP not being tested

2018-08-24 Thread Daniel Hellstrom
To clarify, SMP with GRSWP_PKT driver API has been extended to take advantage of multi-core, is now SMP-safe, and has been tested on GR740. --- bsps/sparc/shared/spw/grspw_pkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/sparc/shared/spw/grspw_pkt.c b/bsps/sparc/shar

[PATCH] psx13: floating point context required when calling fprintf

2018-08-24 Thread Daniel Hellstrom
This avoids an exception (FP disabled) when RTEMS/Newlib have been built with LLVM/Sparc. --- testsuites/psxtests/psx13/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuites/psxtests/psx13/main.c b/testsuites/psxtests/psx13/main.c index aee8b78..05909a2 100644 --- a/testsuites/ps

[PATCH] spglobalcon01: LLVM optimization makes variable i always 1

2018-08-24 Thread Daniel Hellstrom
Declare i volatile to avoid compiler optimization putting i into data section with initialization value 1. --- testsuites/sptests/spglobalcon01/init.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuites/sptests/spglobalcon01/init.cc b/testsuites/sptests/spglobalcon

[PATCH] sparc,smp: typo in start.S causing SMP not working

2018-08-24 Thread Daniel Hellstrom
--- bsps/sparc/shared/start/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/sparc/shared/start/start.S b/bsps/sparc/shared/start/start.S index 48072e8..0be93ed 100644 --- a/bsps/sparc/shared/start/start.S +++ b/bsps/sparc/shared/start/start.S @@ -310,7 +310,7 @@ SY

[PATCH] leon, greth: enable MAC filtering (promiscous mode, multicast)

2018-08-24 Thread Daniel Hellstrom
It enabled promiscous mode or sets the multicast filter according to the configuration and parameters to ioctl(SIOCSIFFLAGS), ioctl(SIOCADDMULTI) and ioctl(SIOCDELMULTI). On SIOCADDMULTI/SIOCDELMULTI requests the greth ioctl calls the Ethernet helper functions ether_addmulti()/ether_delmulti() whic

[PATCH] capture: prevent unaligned access when reading time

2018-08-24 Thread Daniel Hellstrom
LLVM warns about this: cpukit/libmisc/capture/capture.c:405:30: warning: taking address of packed member 'time' of class or structure 'rtems_capture_record' may result in an unaligned pointer value [-Waddress-of-packed-member] rtems_capture_get_time (&in.time); And on sparc

[PATCH] psxfile01: floating point context required when calling fprintf

2018-08-24 Thread Daniel Hellstrom
This avoids an exception (FP disabled) when RTEMS/Newlib have been built with LLVM/Sparc. --- testsuites/psxtests/psxfile01/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuites/psxtests/psxfile01/main.c b/testsuites/psxtests/psxfile01/main.c index c634082..5ccdd6b 100644 --- a/

Re: [PATCH] sparc,smp: typo in start.S causing SMP not working

2018-08-24 Thread Daniel Hellstrom
Thanks for the quick review. I will push it in. I will be posting some more patches next week that we have in the pipe, some related to the LLVM development work we are doing. Regards, Daniel On 2018-08-24 15:43, Sebastian Huber wrote: Hello Daniel, the patch set looks good, please check

Four SMP tests fails after recent commit

2018-09-19 Thread Daniel Hellstrom
also? I'm using the GR740 BSP in SMP configuration. /Daniel ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: Four SMP tests fails after recent commit

2018-09-19 Thread Daniel Hellstrom
Thanks for looking into it Sebastian. I will try it out now. On 2018-09-19 12:00, Sebastian Huber wrote: Hello Daniel, On 19/09/2018 11:32, Daniel Hellstrom wrote: Hi, When I rebased earlier this week four SMP test now fails (smp03, smppsxaffinity01, smpschedaffinity04, smpschedaffinity05

Re: Four SMP tests fails after recent commit

2018-09-19 Thread Daniel Hellstrom
It works now with your patch. Thanks again. Daniel On 2018-09-19 12:23, Daniel Hellstrom wrote: Thanks for looking into it Sebastian. I will try it out now. On 2018-09-19 12:00, Sebastian Huber wrote: Hello Daniel, On 19/09/2018 11:32, Daniel Hellstrom wrote: Hi, When I rebased earlier

GR740-SMP BSP test results (gcc-7.2)

2018-09-19 Thread Daniel Hellstrom
. CONFIGURE_INTERRUPT_STACK_SIZE is too small, the boot process fails before reaching the check. This is a new behavior since interrupt stack is also used by the CPU for initialization/boot process. Best Regards, -- Daniel Hellstrom Software Section Head Cobham Gaisler T : +46 (0) 31 775 8657 F : +46

[PATCH] sparc: Remove sequence that could trigger B2BST errata

2018-09-19 Thread Daniel Hellstrom
From: Daniel Cederman --- cpukit/score/cpu/sparc/syscall.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/cpukit/score/cpu/sparc/syscall.S b/cpukit/score/cpu/sparc/syscall.S index 574cf66..603ed7a 100644 --- a/cpukit/score/cpu/sparc/syscall.S +++ b/cpukit/score/cpu/sparc/syscall.S

[PATCH] leon3, ckinit: avoid unsued code warnings when drvmgr is enabled

2018-09-19 Thread Daniel Hellstrom
--- bsps/sparc/shared/btimer/tlib_ckinit.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bsps/sparc/shared/btimer/tlib_ckinit.c b/bsps/sparc/shared/btimer/tlib_ckinit.c index 3e2feb1..6643335 100644 --- a/bsps/sparc/shared/btimer/tlib_ckinit.c +++ b/bsps/sparc/share

[PATCH] leon, l2cache: workaround for scrubber

2018-09-19 Thread Daniel Hellstrom
From: Martin Aberg This is a workaround for a L2CACHE scrubber corner case described in GR740 User's Manual, Version 1.10, section 43.2.30. The issue affects some version of the L2CACHE. However, since the performance impact of the workaround is marginal, special device probing logic has been av

[PATCH] leon: substitute printf with printk in driver init

2018-09-19 Thread Daniel Hellstrom
--- bsps/sparc/shared/iommu/griommu.c | 3 ++- bsps/sparc/shared/l2c/l2c.c | 2 +- bsps/sparc/shared/pci/gr_701.c | 14 +++--- bsps/sparc/shared/pci/gr_cpci_gr740.c | 12 ++-- bsps/sparc/shared/pci/gr_leon4_n2x.c| 12 ++

[PATCH] leon3: fix warning when SMP is enabled

2018-09-19 Thread Daniel Hellstrom
--- bsps/sparc/leon3/clock/ckinit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsps/sparc/leon3/clock/ckinit.c b/bsps/sparc/leon3/clock/ckinit.c index c3edaf2..0cd78ea 100644 --- a/bsps/sparc/leon3/clock/ckinit.c +++ b/bsps/sparc/leon3/clock/ckinit.c @@ -21,6 +21,7 @@ */ #include +#

[PATCH] sparc: clang AS does no accept UNIMP without argument

2018-09-19 Thread Daniel Hellstrom
--- cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h index c125b8a..7c31501 100644 --- a/cpukit/score/cpu/sparc/inclu

[PATCH] sparc: Return to previous section type when done with .data._SPARC_Counter

2018-09-19 Thread Daniel Hellstrom
From: Daniel Cederman --- cpukit/score/cpu/sparc/include/rtems/score/sparcimpl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/score/cpu/sparc/include/rtems/score/sparcimpl.h b/cpukit/score/cpu/sparc/include/rtems/score/sparcimpl.h index 9fb..81b4441 100644 --- a/cpukit/score

<    1   2   3   4   5   6   7   8   >