Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Freescale Semiconductor, Inc. |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __VSC_CROSSBAR_H_ |
| 8 | #define __VSC_CROSSBAR_H 1_ |
| 9 | |
| 10 | #include <common.h> |
| 11 | #include <i2c.h> |
| 12 | #include <errno.h> |
| 13 | |
| 14 | int vsc_if_enable(unsigned int vsc_addr); |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 15 | int vsc3316_config(unsigned int vsc_addr, int8_t con_arr[][2], |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 16 | unsigned int num_con); |
Shaohui Xie | 60c3b09 | 2014-11-13 11:27:49 +0800 | [diff] [blame] | 17 | #ifdef CONFIG_SYS_FSL_B4860QDS_XFI_ERR |
| 18 | int vsc3308_config_adjust(unsigned int vsc_addr, const int8_t con_arr[][2], |
| 19 | unsigned int num_con); |
| 20 | #endif |
Shaveta Leekha | fa0123c | 2012-10-08 07:44:17 +0000 | [diff] [blame] | 21 | int vsc3308_config(unsigned int vsc_addr, const int8_t con_arr[][2], |
| 22 | unsigned int num_con); |
| 23 | void vsc_wp_config(unsigned int vsc_addr); |
| 24 | |
| 25 | #endif /* __VSC_CROSSBAR_H_ */ |