]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: socfpga: scan: Zap iocsr_scan_chain*_table()
authorMarek Vasut <marex@denx.de>
Sat, 25 Jul 2015 07:53:23 +0000 (09:53 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:21 +0000 (08:17 +0200)
commit2fe503a53d58f215f07cb2383cd4ace1c0ba94d6
tree21808ec4d5bbe5be5735c594df9ee4113cccc4b8
parent80e1073c36e6e2fb46a1dcce8f2e0b3d94932495
arm: socfpga: scan: Zap iocsr_scan_chain*_table()

Introduce accessor iocsr_get_config_table() for retrieving IOCSR config
tables. This patch is again trimming down the namespace polution.

The IOCSR config tables are used only by scan manager, they are generated
by qts and are board specific. Before this patch, the approach to use
these tables in scan manager was to define an extern variable to silence
the compiler and compile board-specific iocsr_config.c into U-Boot which
defined those extern variables. Furthermore, since these are tables and
the scan manager needs to know the size of those tables, iocsr_config.h
is included build-wide.

This patch wraps all this into a single accessor which takes the scan
chain ID and returns pointer to the table and it's size. All this is
wrapped in wrap_iocsr_config.c board-specific file. The file includes
the iocsr_config.c (!) to access the original tables and transitively
iocsr_config.h . It is thus no longer necessary to include iocsr_config.h
build-wide and the namespace polution is trimmed some more.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/include/mach/scan_manager.h
arch/arm/mach-socfpga/scan_manager.c
board/altera/socfpga/Makefile
board/altera/socfpga/qts/Makefile
board/altera/socfpga/wrap_iocsr_config.c [new file with mode: 0644]
include/configs/socfpga_arria5.h
include/configs/socfpga_cyclone5.h