Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2012 Freescale Semiconductor, Inc. |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __VSC_CROSSBAR_H_ |
Andre Przywara | a5ac7d5 | 2023-05-15 14:52:12 +0100 | [diff] [blame] | 7 | #define __VSC_CROSSBAR_H_ |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 8 | |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 9 | #include <i2c.h> |
| 10 | #include <errno.h> |
| 11 | |
| 12 | int vsc_if_enable(unsigned int vsc_addr); |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 13 | int vsc3316_config(unsigned int vsc_addr, int8_t con_arr[][2], |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 14 | unsigned int num_con); |
Shaohui Xie | 60c3b09 | 2014-11-13 11:27:49 +0800 | [diff] [blame] | 15 | #ifdef CONFIG_SYS_FSL_B4860QDS_XFI_ERR |
| 16 | int vsc3308_config_adjust(unsigned int vsc_addr, const int8_t con_arr[][2], |
| 17 | unsigned int num_con); |
| 18 | #endif |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 19 | int vsc3308_config(unsigned int vsc_addr, const int8_t con_arr[][2], |
| 20 | unsigned int num_con); |
| 21 | void vsc_wp_config(unsigned int vsc_addr); |
| 22 | |
| 23 | #endif /* __VSC_CROSSBAR_H_ */ |