mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 19:10:13 +00:00
4b8cb84327
This adds a weak definition of comphy_update_map to comphy_core, which does nothing. If this function is defined elsewhere, for example in board file, the board file can change some parameters of SERDES configuration. This is needed on Turris Mox, where the SERDES speed on lane 1 has to be set differently when SFP module is connected and when Topaz Switch module is connected. This is a temporary solution. When the comphy driver for armada-3720 will be added to the kernel, the comphy driver in u-boot shall also be updated and this should be done differently then. Signed-off-by: Marek Behun <marek.behun@nic.cz> Signed-off-by: Stefan Roese <sr@denx.de>
22 lines
387 B
C
22 lines
387 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2015-2016 Marvell International Ltd.
|
|
*/
|
|
|
|
#ifndef _MVEBU_COMPHY_H_
|
|
#define _MVEBU_COMPHY_H_
|
|
|
|
#include <dt-bindings/comphy/comphy_data.h>
|
|
|
|
struct comphy_map {
|
|
u32 type;
|
|
u32 speed;
|
|
u32 invert;
|
|
bool clk_src;
|
|
bool end_point;
|
|
};
|
|
|
|
int comphy_update_map(struct comphy_map *serdes_map, int count);
|
|
|
|
#endif /* _MVEBU_COMPHY_H_ */
|
|
|