blob: 9725d6d9e390e898645a38577619965efb21524d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Shaveta Leekhafa0123c2012-10-08 07:44:17 +00002/*
3 * Copyright 2012 Freescale Semiconductor, Inc.
Shaveta Leekhafa0123c2012-10-08 07:44:17 +00004 */
5
6#ifndef __VSC_CROSSBAR_H_
Andre Przywaraa5ac7d52023-05-15 14:52:12 +01007#define __VSC_CROSSBAR_H_
Shaveta Leekhafa0123c2012-10-08 07:44:17 +00008
Shaveta Leekhafa0123c2012-10-08 07:44:17 +00009#include <i2c.h>
10#include <errno.h>
11
12int vsc_if_enable(unsigned int vsc_addr);
Shaohui Xie3d8095e2013-08-19 18:43:07 +080013int vsc3316_config(unsigned int vsc_addr, int8_t con_arr[][2],
Shaveta Leekhafa0123c2012-10-08 07:44:17 +000014 unsigned int num_con);
Shaohui Xie60c3b092014-11-13 11:27:49 +080015#ifdef CONFIG_SYS_FSL_B4860QDS_XFI_ERR
16int vsc3308_config_adjust(unsigned int vsc_addr, const int8_t con_arr[][2],
17 unsigned int num_con);
18#endif
Shaveta Leekhafa0123c2012-10-08 07:44:17 +000019int vsc3308_config(unsigned int vsc_addr, const int8_t con_arr[][2],
20 unsigned int num_con);
21void vsc_wp_config(unsigned int vsc_addr);
22
23#endif /* __VSC_CROSSBAR_H_ */