summaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga/include/mach
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@opensource.altera.com>2015-07-31 11:06:50 -0500
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:30 +0200
commitbd0f5a91f30c0ff2d355bb7b9858f8b6fb7f5430 (patch)
tree1a08cf16d71f10360dd2948714f7843c2396d819 /arch/arm/mach-socfpga/include/mach
parent5e19b68aa1d5f9b70a6bd10de58bd580d6a4ff81 (diff)
arm: socfpga: scan: Add code to get FPGA ID
Add code to get the FPGA type for Altera's SoCFPGA family of FPGA. The code uses the scan manager to send jtag pulses that will return the FPGA ID. Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'arch/arm/mach-socfpga/include/mach')
-rw-r--r--arch/arm/mach-socfpga/include/mach/scan_manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/include/mach/scan_manager.h b/arch/arm/mach-socfpga/include/mach/scan_manager.h
index 3b55e370f2..5ca6843557 100644
--- a/arch/arm/mach-socfpga/include/mach/scan_manager.h
+++ b/arch/arm/mach-socfpga/include/mach/scan_manager.h
@@ -18,6 +18,7 @@ struct socfpga_scan_manager {
};
int scan_mgr_configure_iocsr(void);
+u32 scan_mgr_get_fpga_id(void);
int iocsr_get_config_table(const unsigned int chain_id,
const unsigned long **table,
unsigned int *table_len);