2007-09-05 Daniel Hellstrom <daniel@gaisler.com>

* Makefile.am, preinstall.am: LEON3 AMBA PnP bus scanning moved to
	shared/amba/amba.c and shared/include/ambapp.h. The AMBA scanning was
	improved to take account for PnP info address translation. This is
	useful when scanning remote AMBA busses for example when a board
	connected with PCI has an AMBA bus that needs to be scanned, before
	the addresses was hard coded. Also, LEON2 now have AMBA PnP bus
	scanning support. By using the new AMBA scanning routines it is
	possible to isolate the AMBA scanning code to ambapp.c, however
	existing drivers should be updated to use them in order to save
	space.
This commit is contained in:
Joel Sherrill
2007-09-06 00:01:14 +00:00
parent 2aaff51bb5
commit 4d3933b300
3 changed files with 26 additions and 1 deletions

View File

@@ -1,3 +1,16 @@
2007-09-05 Daniel Hellstrom <daniel@gaisler.com>
* Makefile.am, preinstall.am: LEON3 AMBA PnP bus scanning moved to
shared/amba/amba.c and shared/include/ambapp.h. The AMBA scanning was
improved to take account for PnP info address translation. This is
useful when scanning remote AMBA busses for example when a board
connected with PCI has an AMBA bus that needs to be scanned, before
the addresses was hard coded. Also, LEON2 now have AMBA PnP bus
scanning support. By using the new AMBA scanning routines it is
possible to isolate the AMBA scanning code to ambapp.c, however
existing drivers should be updated to use them in order to save
space.
2007-09-05 Daniel Hellstrom <daniel@gaisler.com> 2007-09-05 Daniel Hellstrom <daniel@gaisler.com>
* include/bsp.h: This patch prepares bsp.h so that shared code (new * include/bsp.h: This patch prepares bsp.h so that shared code (new

View File

@@ -11,6 +11,7 @@ dist_project_lib_DATA = bsp_specs
include_HEADERS = include/bsp.h include_HEADERS = include/bsp.h
include_HEADERS += include/tm27.h include_HEADERS += include/tm27.h
include_HEADERS += ../../sparc/shared/include/ambapp.h
nodist_include_HEADERS = include/bspopts.h nodist_include_HEADERS = include/bspopts.h
DISTCLEANFILES = include/bspopts.h DISTCLEANFILES = include/bspopts.h
@@ -56,6 +57,11 @@ clock_rel_SOURCES = clock/ckinit.c
clock_rel_CPPFLAGS = $(AM_CPPFLAGS) clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
noinst_PROGRAMS += amba.rel
amba_rel_SOURCES = ../../sparc/shared/amba/ambapp.c
amba_rel_CPPFLAGS = $(AM_CPPFLAGS)
amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
if HAS_NETWORKING if HAS_NETWORKING
noinst_PROGRAMS += leon_smc91111.rel noinst_PROGRAMS += leon_smc91111.rel
leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
@@ -79,7 +85,8 @@ endif
noinst_LIBRARIES = libbsp.a noinst_LIBRARIES = libbsp.a
libbsp_a_SOURCES = libbsp_a_SOURCES =
libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel \
amba.rel
if HAS_NETWORKING if HAS_NETWORKING
libbsp_a_LIBADD += leon_open_eth.rel libbsp_a_LIBADD += leon_open_eth.rel

View File

@@ -52,6 +52,11 @@ $(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
# AMBA Plug&Play Bus
$(PROJECT_INCLUDE)/ambapp.h: ../../sparc/shared/include/ambapp.h $(PROJECT_INCLUDE)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ambapp.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/ambapp.h
$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) $(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT) $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT) TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)