diff options
author | Marek Vasut <marex@denx.de> | 2015-07-25 10:33:28 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 15:14:07 +0300 |
commit | 2df7b2aadf375fc3d2f336fab8eb41556b997567 (patch) | |
tree | 9040f22fb198c55b6845772aea05a3ff6d445b59 /arch/arm/mach-socfpga/scan_manager.c | |
parent | 93b4abd3a25ba9061f2146ebabd4aae07d74a499 (diff) | |
download | u-boot-2df7b2aadf375fc3d2f336fab8eb41556b997567.tar.xz |
arm: socfpga: scan: Staticize scan_mgr_io_scan_chain_prg()
This function is never used outside of scan_manager.c , so make it static.
Zap the prototype in scan_manager.h and move the documentation above the
function. Make the documentation kerneldoc compliant.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/mach-socfpga/scan_manager.c')
-rw-r--r-- | arch/arm/mach-socfpga/scan_manager.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/mach-socfpga/scan_manager.c b/arch/arm/mach-socfpga/scan_manager.c index a820b1b1bf..ab7aaecfb7 100644 --- a/arch/arm/mach-socfpga/scan_manager.c +++ b/arch/arm/mach-socfpga/scan_manager.c @@ -38,11 +38,15 @@ static inline uint32_t scan_chain_engine_is_idle(uint32_t max_iter) return 1; } -/* Program HPS IO Scan Chain */ -uint32_t scan_mgr_io_scan_chain_prg( - uint32_t io_scan_chain_id, - uint32_t io_scan_chain_len_in_bits, - const uint32_t *iocsr_scan_chain) +/** + * scan_mgr_io_scan_chain_prg() - Program HPS IO Scan Chain + * @io_scan_chain_id: IO scan chain ID + * @io_scan_chain_len_in_bits: IO scan chain length in bits + * @iocsr_scan_chain: IO scan chain table + */ +static int scan_mgr_io_scan_chain_prg(const unsigned int io_scan_chain_id, + uint32_t io_scan_chain_len_in_bits, + const uint32_t *iocsr_scan_chain) { uint16_t tdi_tdo_header; uint32_t io_program_iter; |