blob: 4d1b70393b20658e0e73ac24ba946183907bcffc [file] [log] [blame]
Marek BehĂșn4b8cb842018-08-17 12:58:51 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2015-2016 Marvell International Ltd.
4 */
5
6#ifndef _MVEBU_COMPHY_H_
7#define _MVEBU_COMPHY_H_
8
9#include <dt-bindings/comphy/comphy_data.h>
10
11struct comphy_map {
12 u32 type;
13 u32 speed;
14 u32 invert;
15 bool clk_src;
16 bool end_point;
17};
18
Igal Libermane49cdbe2021-03-23 11:57:57 +010019int comphy_rx_training(struct udevice *dev, u32 lane);
Marek BehĂșn4b8cb842018-08-17 12:58:51 +020020int comphy_update_map(struct comphy_map *serdes_map, int count);
21
22#endif /* _MVEBU_COMPHY_H_ */