1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2012 Freescale Semiconductor, Inc.
4  */
5 
6 #ifndef __VSC_CROSSBAR_H_
7 #define __VSC_CROSSBAR_H	1_
8 
9 #include <common.h>
10 #include <i2c.h>
11 #include <errno.h>
12 
13 int vsc_if_enable(unsigned int vsc_addr);
14 int vsc3316_config(unsigned int vsc_addr, int8_t con_arr[][2],
15 		unsigned int num_con);
16 #ifdef CONFIG_SYS_FSL_B4860QDS_XFI_ERR
17 int vsc3308_config_adjust(unsigned int vsc_addr, const int8_t con_arr[][2],
18 		unsigned int num_con);
19 #endif
20 int vsc3308_config(unsigned int vsc_addr, const int8_t con_arr[][2],
21 		unsigned int num_con);
22 void vsc_wp_config(unsigned int vsc_addr);
23 
24 #endif	/* __VSC_CROSSBAR_H_ */
25