1. 27 Feb, 2017 1 commit
    • Dimitris Lampridis's avatar
      dev: introduce PPS mask/unmask bit in pps_gen. · 72c8d2a8
      Dimitris Lampridis authored
      By default, the bit is zero (masked), which means that PPS signal output is masked
      when the link status is not ok. This is useful to pervent spurious PPS when in
      SLAVE mode and the link goes down.
      
      When the bit is set, then a PPS is always generated (as long as the PPS valid bit
      in the ESCR register is set). This is useful in master mode.
      72c8d2a8
  2. 04 Apr, 2016 1 commit
  3. 16 Feb, 2016 1 commit
  4. 20 Jan, 2016 1 commit
    • Alessandro Rubini's avatar
      general: remove TRACE_DEV (and shrink binary) · c24326a8
      Alessandro Rubini authored
      This removes TRACE_DEV(), turning it into pll_verbose() and wrc_verbose().
      
      The functions are enabled and disabled by kconfig, with defaults matching
      the previous behaviour.
      
      So nothing changes, but the binary is smaller because the previous
      wrc_debug_printf() was silent because of a run-time conditional
      (though hardwired false at build time). The condional is now at build
      time.  We save around 2k, between strings and calling code, in
      all wrc builds (nothing is saved in wrs, which is verbose by default,
      nor in devel_build_test_defconfig where all verbose options are on)).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      
      devel_build_test_defconfig: enable all verbose options
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c24326a8
  5. 26 Jul, 2015 1 commit
  6. 17 Oct, 2013 1 commit
  7. 26 Jul, 2013 1 commit
    • Grzegorz Daniluk's avatar
      add new commands for setting time · 29f1b100
      Grzegorz Daniluk authored
      When WR PTP Core is set in GrandMaster mode it aligns its nanosecond
      counter to 1-PPS and 10MHz coming from external source. When user wants
      to set seconds counter to a desired value (with _time set_ command), the
      nanosecond counter was also set (zeroed) causing additional (random)
      offset to the external source. The commit adds _time setsec_ and _time
      setnsec_ for setting only seconds or nanoseconds counter without
      affecting the other one. Now, when user wants to set current time on a
      GrandMaster Node he has to call _time setsec_ command after _mode gm_
      29f1b100
  8. 26 Apr, 2013 1 commit
  9. 14 Feb, 2013 1 commit
  10. 01 Nov, 2012 2 commits
    • Alessandro Rubini's avatar
      general: add copyright notes · 394d1405
      Alessandro Rubini authored
      This adds copyright notes to all non-trivial source files,
      unless they where already there (i.e. dev/endpoint.c alone).
      
      I found authorship using the following script, run on commit "a2721762
      documentation updated" (i.e, before automatic reindentation and other
      trivial stuff by me):
      
        git grep -l . | grep -v sockitowm/ | \
        while read F; do
             echo "##### $F"
             git blame -w $F | \
               sed -e 's/^[^ ]* .//' -e 's/-[0-9][0-9]-[0-9][0-9] .*$//' | \
               sort | uniq -c | sort -rn
        done
      
      Then I augmented each file with this boilerplate:
      
      /*
       * This work is part of the White Rabbit project
       *
       * Copyright (C) 2011 CERN (www.cern.ch)
       * Copyright (C) 2011,2012 CERN (www.cern.ch)
       * Copyright (C) 2012 CERN (www.cern.ch)
       * Copyright (C) 2011 GSI (www.gsi.de)
       * Copyright (C) 2011,2012 GSI (www.gsi.de)
       * Copyright (C) 2012 GSI (www.gsi.de)
       * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
       * Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
       * Author: Wesley W. Terpstra <w.terpstra@gsi.de>
       *
       * Released according to the GNU GPL, version 2 or any later version.
       */
      
      Then I removed all the lines that didn't apply. Sometimes I reordered
      the authors to reflect who is the main author.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      394d1405
    • Alessandro Rubini's avatar
      c0b2a8ad
  11. 05 Oct, 2012 2 commits
    • Alessandro Rubini's avatar
      Run ./scripts/Lindent on all .c and .h files · e625cbd9
      Alessandro Rubini authored
      This is massive: 4k lines changed (but only 840 if you ignore
      space-only changes).  In this case "git blame -w" won't always find
      the right patch, and it may fall on this patch -- because those
      800 lines changed in content too.
      
      This has been done with
      
         find . -name '*.[ch]' | xargs -n 1 ./scripts/Lindent
      
      Statistics: all changes and ignoring blank space:
      
         morgana% git diff --stat HEAD~1 | tail -1
          77 files changed, 3774 insertions(+), 3709 deletions(-)
         morgana% git diff -w --stat HEAD~1 | tail -1
          61 files changed, 894 insertions(+), 829 deletions(-)
      
      However, after this step I hand-fixed some very ugly long expressions
      (leaving them long: no content change at all is there).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e625cbd9
    • Alessandro Rubini's avatar
      Remove all spaces at end-of-line · 1d24ecfb
      Alessandro Rubini authored
      If you find this patch with "git blame" please use "git blame -w"
      to have all white-space ignored while associating lines to commits.
      
      This commit has no practical effect but cleanup. I made it
      with sed like this:
      
        git grep -l '[ \t]$' | xargs sed -i 's/[ \t]*$//'
      
      However, I had to manually restore doc/wrpc_mon.png after the fact.
      Similarly, I restored the include/hw/*regs.h files, as they
      are (most likely) auto-generated.
      1d24ecfb
  12. 24 Sep, 2012 1 commit
  13. 20 Sep, 2012 1 commit
  14. 11 Sep, 2012 1 commit
  15. 10 Sep, 2012 1 commit
  16. 13 Jun, 2012 1 commit
  17. 12 Jun, 2012 1 commit
  18. 04 Jun, 2012 1 commit
  19. 30 Apr, 2012 1 commit
  20. 27 Apr, 2012 1 commit
  21. 08 Mar, 2012 1 commit
  22. 02 Nov, 2011 1 commit
  23. 18 Jul, 2011 1 commit
  24. 12 Apr, 2011 1 commit
  25. 08 Apr, 2011 1 commit