AG patches Chunk F

Daniel Hellstrom daniel at gaisler.com
Wed Apr 18 15:17:12 UTC 2012


Hello,

This is the sixth chunk of patches, it consist of LEON3 BSP console improvements, register definitions clean-up and a new Watchdog timer driver.

All patches must be applied in order.

Thanks,
Daniel

LEON BSP specific patches:

PATCH 34 consists of 6 patches:
LIST 8604854 LEON3: console, lower bus utilization waiting for UART TX ready
LIST 08dd7a8 LEON3: add console attributes such as parity and baudrate
LIST 6a18ce3 LEON3: add console interrupt mode support
LIST 16f590b LEON3: debugputs added printk mem buffer when no UART present
LIST 702102d LEON3: debugputs removed pointless isinit code, invoked only once
LIST cdd552f LEON3: added TX-wait-complete and CR on NL support for UART

LIST 1c12842 LEON: moved register definitions into grlib header file
LIST 4d2333e LEON3: GPTIMER timer watchdog driver


patches in reverse order:


commit 4d2333ebc52a4316b52aa862cae73626b3176701
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Wed Dec 14 11:28:18 2011 +0100

     LEON3: GPTIMER timer watchdog driver

     Last timer instance of GPTIMER is sometimes a watchdog timer that
     can reset the system on timer underflow.

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  c/src/lib/libbsp/sparc/leon3/Makefile.am      |    1 +
  c/src/lib/libbsp/sparc/leon3/include/bsp.h    |   25 +++++++
  c/src/lib/libbsp/sparc/leon3/timer/watchdog.c |   89 +++++++++++++++++++++++++
  3 files changed, 115 insertions(+), 0 deletions(-)

commit 1c12842dd8f6127c027e1082f3f7de5599778d40
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Tue Dec 13 14:03:38 2011 +0100

     LEON: moved register definitions into grlib header file

     Some register layout definitions for LEON3 reside in ambapp.h which
     does not really has anything to do with device registers. The
     register structures has been incorrectly named LEON3_*, the cores
     are not only used on LEON3 but on LEON4 and perhaps on LEON5 when
     that day comes. Some structures has been renamed according to the
     GRLIB core name instead, which CPU that actually use it is not
     relevant. Drivers has been updated with the new names.

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  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/leon2/rasta/rasta.c         |   29 +------
  c/src/lib/libbsp/sparc/leon3/Makefile.am           |    1 +
  c/src/lib/libbsp/sparc/leon3/amba/amba.c           |    7 +-
  c/src/lib/libbsp/sparc/leon3/clock/ckinit.c        |   10 +-
  c/src/lib/libbsp/sparc/leon3/console/console.c     |    8 +-
  c/src/lib/libbsp/sparc/leon3/console/debugputs.c   |    8 +-
  c/src/lib/libbsp/sparc/leon3/include/amba.h        |    1 +
  c/src/lib/libbsp/sparc/leon3/include/leon.h        |   28 +------
  .../sparc/leon3/leon_smc91111/leon_smc91111.c      |   12 ++--
  c/src/lib/libbsp/sparc/leon3/preinstall.am         |    4 +
  c/src/lib/libbsp/sparc/leon3/timer/timer.c         |    4 +-
  c/src/lib/libbsp/sparc/shared/can/grcan.c          |    5 +-
  c/src/lib/libbsp/sparc/shared/can/occan.c          |    5 +-
  c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c         |    5 +-
  c/src/lib/libbsp/sparc/shared/include/ambapp.h     |   43 ---------
  c/src/lib/libbsp/sparc/shared/include/grlib.h      |   92 ++++++++++++++++++++
  c/src/lib/libbsp/sparc/shared/spw/grspw.c          |    5 +-
  c/src/lib/libbsp/sparc/shared/uart/apbuart.c       |   13 ++--
  21 files changed, 153 insertions(+), 133 deletions(-)

commit cdd552f5dac07148dcfe5c5fa8b49bf72209cb8f
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Mon Dec 12 15:53:45 2011 +0100

     LEON3: added TX-wait-complete and CR on NL support for UART

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  c/src/lib/libbsp/sparc/leon3/console/console.c   |   10 ++++++----
  c/src/lib/libbsp/sparc/leon3/console/debugputs.c |   18 ++++++++++++++++--
  2 files changed, 22 insertions(+), 6 deletions(-)

commit 702102d9e2f8260282bcba2759b382164e94b6f8
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Fri Dec 9 16:00:10 2011 +0100

     LEON3: debugputs removed pointless isinit code, invoked only once

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  c/src/lib/libbsp/sparc/leon3/console/debugputs.c |   60 +++++++++------------
  1 files changed, 26 insertions(+), 34 deletions(-)

commit 16f590b3d16ed685d52c58374798a491f42e6803
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Fri Dec 9 15:53:18 2011 +0100

     LEON3: debugputs added printk mem buffer when no UART present

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  c/src/lib/libbsp/sparc/leon3/console/debugputs.c |   14 +++++++++++++-
  1 files changed, 13 insertions(+), 1 deletions(-)

commit 6a18ce3c1a85b81283e6a99e3fa9d439401f9b6f
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Thu Dec 8 09:48:44 2011 +0100

     LEON3: add console interrupt mode support

     The comment in configure.ac is probably inherited from the LEON2
     BSP. The LEON3 console driver implements a "flush" mechanism on
     console_close() in order to solve the problem described with
     sis/LEON2.

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  c/src/lib/libbsp/sparc/leon3/configure.ac      |    5 +-
  c/src/lib/libbsp/sparc/leon3/console/console.c |  164 +++++++++++++++++++++--
  2 files changed, 150 insertions(+), 19 deletions(-)

commit 08dd7a8e477ae90c58183b795d0964c98b58af18
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Thu Dec 8 09:24:22 2011 +0100

     LEON3: add console attributes such as parity and baudrate

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  c/src/lib/libbsp/sparc/leon3/console/console.c |   93 +++++++++++++++++++++++-
  1 files changed, 90 insertions(+), 3 deletions(-)

commit 8604854cc1b6ac549f8e360918902fd70a5f8b5c
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Thu Dec 8 09:04:41 2011 +0100

     LEON3: console, lower bus utilization waiting for UART TX ready

     Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

  c/src/lib/libbsp/sparc/leon3/console/debugputs.c |   10 +++++++---
  1 files changed, 7 insertions(+), 3 deletions(-)




More information about the devel mailing list