2 * Copyright (C) 2015 Marek Vasut <marex@denx.de>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/clock_manager.h>
11 * Yes, dear reader, we're including a C file here, this is no mistake :-)
13 #include <qts/iocsr_config.c>
15 int iocsr_get_config_table(const unsigned int chain_id,
16 const unsigned long **table,
17 unsigned int *table_len)
21 *table = iocsr_scan_chain0_table;
22 *table_len = CONFIG_HPS_IOCSR_SCANCHAIN0_LENGTH;
25 *table = iocsr_scan_chain1_table;
26 *table_len = CONFIG_HPS_IOCSR_SCANCHAIN1_LENGTH;
29 *table = iocsr_scan_chain2_table;
30 *table_len = CONFIG_HPS_IOCSR_SCANCHAIN2_LENGTH;
33 *table = iocsr_scan_chain3_table;
34 *table_len = CONFIG_HPS_IOCSR_SCANCHAIN3_LENGTH;