mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 04:23:46 +00:00
b24f6d401c
XFI does not work stable on current board, it's due to heat sink issue, to make it work stable the board needs additional heat sink, enable two XFI lanes only. Right now we do not have such an erratum for the issue, so use a define CONFIG_SYS_FSL_B4860QDS_XFI_ERR to identify it. The workaround will only be used in XFI protocols and only if the hwconfig indicates that XFI is prefered. A new VSC3308 config function is used instead of re-use the original function, to avoid making the function complex and ugly. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
25 lines
654 B
C
25 lines
654 B
C
/*
|
|
* Copyright 2012 Freescale Semiconductor, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __VSC_CROSSBAR_H_
|
|
#define __VSC_CROSSBAR_H 1_
|
|
|
|
#include <common.h>
|
|
#include <i2c.h>
|
|
#include <errno.h>
|
|
|
|
int vsc_if_enable(unsigned int vsc_addr);
|
|
int vsc3316_config(unsigned int vsc_addr, int8_t con_arr[][2],
|
|
unsigned int num_con);
|
|
#ifdef CONFIG_SYS_FSL_B4860QDS_XFI_ERR
|
|
int vsc3308_config_adjust(unsigned int vsc_addr, const int8_t con_arr[][2],
|
|
unsigned int num_con);
|
|
#endif
|
|
int vsc3308_config(unsigned int vsc_addr, const int8_t con_arr[][2],
|
|
unsigned int num_con);
|
|
void vsc_wp_config(unsigned int vsc_addr);
|
|
|
|
#endif /* __VSC_CROSSBAR_H_ */
|