AG patches Chunk E

Daniel Hellstrom daniel at gaisler.com
Tue Apr 10 10:55:26 UTC 2012


Hello,

This is the fifth chunk of patches, it consist of AMBA PnP scanning routine update for the LEON family and a LEON3 open-eth driver registration bug fix. The bug-fix (BUG2052) must be applied first, 
since the PATCH 33.3 depends on it.

Thanks,
Daniel


LEON BSP specific patches:

PR 1e339d5 LEON3: fix open_eth interrupt initialziation bug
PATCH 33 consists of five patches:
   LIST c6c3c73 LEON: updated AMBA PnP API
   LIST 4393e96 LEON3: clock driver use new AMBAPP layer
   LIST 53ad4de LEON3: updated console driver for new AMBAPP layer
   LIST d75dcc6 LEON3: Network initialization code updated to new AMBAPP layer
   LIST 8b8deeb LEON: updated drivers to use new AMBAPP Layer



commit 8b8deeb21ace6d85ac756b0b3b7036fba0080f55
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Thu Dec 15 15:07:20 2011 +0100

     LEON: updated drivers to use new AMBAPP Layer

     The drivers are updated to use the new AMBA layer, however the
     backwards-compatibility interface (ambapp_old) is used.

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

  c/src/lib/libbsp/sparc/leon2/cchip/cchip.c         |   37 +++++++++-----------
  c/src/lib/libbsp/sparc/leon2/rasta/rasta.c         |   24 ++++++------
  c/src/lib/libbsp/sparc/shared/1553/b1553brm.c      |   14 ++++----
  c/src/lib/libbsp/sparc/shared/1553/b1553brm_pci.c  |    2 +-
  .../lib/libbsp/sparc/shared/1553/b1553brm_rasta.c  |    2 +-
  c/src/lib/libbsp/sparc/shared/amba/ambapp_old.c    |   14 +++++++
  c/src/lib/libbsp/sparc/shared/can/grcan.c          |   16 ++++----
  c/src/lib/libbsp/sparc/shared/can/grcan_rasta.c    |    2 +-
  c/src/lib/libbsp/sparc/shared/can/occan.c          |   16 ++++----
  c/src/lib/libbsp/sparc/shared/can/occan_pci.c      |    2 +-
  c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c         |   14 ++++----
  c/src/lib/libbsp/sparc/shared/include/ambapp.h     |    9 +++++
  c/src/lib/libbsp/sparc/shared/include/apbuart.h    |    4 +-
  .../lib/libbsp/sparc/shared/include/apbuart_pci.h  |    2 +-
  .../libbsp/sparc/shared/include/apbuart_rasta.h    |    2 +-
  c/src/lib/libbsp/sparc/shared/include/b1553brm.h   |    4 +-
  .../lib/libbsp/sparc/shared/include/b1553brm_pci.h |    4 +-
  .../libbsp/sparc/shared/include/b1553brm_rasta.h   |    4 +-
  c/src/lib/libbsp/sparc/shared/include/grcan.h      |    2 +-
  .../lib/libbsp/sparc/shared/include/grcan_rasta.h  |    2 +-
  c/src/lib/libbsp/sparc/shared/include/grspw.h      |    2 +-
  c/src/lib/libbsp/sparc/shared/include/grspw_pci.h  |    4 +-
  .../lib/libbsp/sparc/shared/include/grspw_rasta.h  |    4 +-
  c/src/lib/libbsp/sparc/shared/include/i2cmst.h     |    2 +-
  c/src/lib/libbsp/sparc/shared/include/occan.h      |    2 +-
  c/src/lib/libbsp/sparc/shared/include/occan_pci.h  |    2 +-
  c/src/lib/libbsp/sparc/shared/spw/grspw.c          |   29 +++++-----------
  c/src/lib/libbsp/sparc/shared/spw/grspw_pci.c      |    2 +-
  c/src/lib/libbsp/sparc/shared/spw/grspw_rasta.c    |    2 +-
  c/src/lib/libbsp/sparc/shared/uart/apbuart.c       |   14 ++++----
  c/src/lib/libbsp/sparc/shared/uart/apbuart_pci.c   |    2 +-
  c/src/lib/libbsp/sparc/shared/uart/apbuart_rasta.c |    2 +-
  32 files changed, 126 insertions(+), 117 deletions(-)

commit d75dcc6b211367d660696f00dae0930354909564
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Tue Dec 13 16:36:49 2011 +0100

     LEON3: Network initialization code updated to new AMBAPP layer

     Updated SMC91111, GRETH and open_eth driver registration
     code to use new AMBAPP Layer.

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

  .../lib/libbsp/sparc/leon3/leon_greth/leon_greth.c |   16 +++++----
  .../sparc/leon3/leon_open_eth/leon_open_eth.c      |   35 +++++++++-----------
  .../sparc/leon3/leon_smc91111/leon_smc91111.c      |   24 +++++++------
  3 files changed, 38 insertions(+), 37 deletions(-)

commit 53ad4de9d23a481b81e5afafcf6c317329320496
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Wed Dec 7 17:57:08 2011 +0100

     LEON3: updated console driver for new AMBAPP layer

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

  c/src/lib/libbsp/sparc/leon3/amba/amba.c         |    5 --
  c/src/lib/libbsp/sparc/leon3/console/console.c   |   51 +++++++++++++++++++---
  c/src/lib/libbsp/sparc/leon3/console/debugputs.c |   42 ++++++++---------
  c/src/lib/libbsp/sparc/leon3/include/amba.h      |    1 -
  c/src/lib/libbsp/sparc/leon3/include/bsp.h       |    3 +
  c/src/lib/libbsp/sparc/leon3/include/leon.h      |    7 ---
  c/src/lib/libbsp/sparc/leon3/startup/bspstart.c  |    9 +++-
  7 files changed, 75 insertions(+), 43 deletions(-)

commit 4393e964f9ba5baa09d3354f7f150f2bb21328e3
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Mon Dec 5 17:32:26 2011 +0100

     LEON3: clock driver use new AMBAPP layer

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

  c/src/lib/libbsp/sparc/leon3/clock/ckinit.c |   14 ++++++++------
  1 files changed, 8 insertions(+), 6 deletions(-)

commit c6c3c738b6257edc6562a4551e8aa8cebfa1bcf8
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Tue Dec 13 10:03:39 2011 +0100

     LEON: updated AMBA PnP API

     The old layer had some limitations/problems for multiple AHB
     buses since the data structure containing all AMBA devices
     were allocated before scanning.

     The new layer create devices as they are found and memory is
     allocated using malloc() or bsp_early_malloc() during booting.

     The old 8 functions for finding a specific AHB-Slave or
     APB-Slave device has been replaced with one function,
     ambapp_for_each(), which iterates over all devices matching
     the specified search options and calls a user provided
     function. The new way lowers the footprint and makes searching
     more flexible.

     The frequency information is now supported, if the frequency
     of one device is reported by the user.

     More AHB-to-AHB bridges are supported.

     The API has been split into several parts in order to lower the
     footprint.

     The API also introduces the AMBAPP CORE concept, where one
     ambapp_core can be created from one AHB Master, AHB Slave
     and one APB Slave, at least one device is required for creating
     a core.

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

  c/src/lib/libbsp/sparc/Makefile.am                 |   10 +
  c/src/lib/libbsp/sparc/leon2/Makefile.am           |   15 +-
  c/src/lib/libbsp/sparc/leon2/preinstall.am         |   12 +-
  c/src/lib/libbsp/sparc/leon3/Makefile.am           |   15 +-
  c/src/lib/libbsp/sparc/leon3/amba/amba.c           |   47 +-
  c/src/lib/libbsp/sparc/leon3/include/amba.h        |    2 +-
  c/src/lib/libbsp/sparc/leon3/preinstall.am         |    4 +
  c/src/lib/libbsp/sparc/shared/amba/ambapp.c        |  866 ++++++++++----------
  c/src/lib/libbsp/sparc/shared/amba/ambapp_alloc.c  |   28 +
  c/src/lib/libbsp/sparc/shared/amba/ambapp_count.c  |   27 +
  c/src/lib/libbsp/sparc/shared/amba/ambapp_depth.c  |   27 +
  .../libbsp/sparc/shared/amba/ambapp_find_by_idx.c  |   42 +
  c/src/lib/libbsp/sparc/shared/amba/ambapp_freq.c   |  114 +++
  c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c  |  395 +++++++++
  c/src/lib/libbsp/sparc/shared/amba/ambapp_old.c    |   92 ++
  c/src/lib/libbsp/sparc/shared/amba/ambapp_parent.c |   26 +
  c/src/lib/libbsp/sparc/shared/amba/ambapp_show.c   |   76 ++
  c/src/lib/libbsp/sparc/shared/include/ambapp.h     |  497 +++++++-----
  c/src/lib/libbsp/sparc/shared/include/ambapp_ids.h |  245 ++++++
  19 files changed, 1882 insertions(+), 658 deletions(-)

commit 1e339d540aa0a7ee9ca79f10d5760c7a29bb22ac
Author: Daniel Hellstrom <daniel at gaisler.com>
Date:   Tue Apr 10 10:52:07 2012 +0200

     LEON3: fix open_eth interrupt initialziation bug

     Fixed a bug where the vector number is used to clean and unmask
     the IRQ at the IRQ controller, the irq number must be used.

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

  .../sparc/leon3/leon_open_eth/leon_open_eth.c      |    8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)




More information about the devel mailing list