xref: /rk3399_ARM-atf/drivers/marvell/comphy/phy-comphy-cp110.h (revision 0ade8cd892b0acd8129f52dea7b343dc9ab456ec)
1*0ade8cd8SKonstantin Porotchkin /*
2*0ade8cd8SKonstantin Porotchkin  * Copyright (C) 2018 Marvell International Ltd.
3*0ade8cd8SKonstantin Porotchkin  *
4*0ade8cd8SKonstantin Porotchkin  * SPDX-License-Identifier:     BSD-3-Clause
5*0ade8cd8SKonstantin Porotchkin  * https://spdx.org/licenses
6*0ade8cd8SKonstantin Porotchkin  */
7*0ade8cd8SKonstantin Porotchkin 
8*0ade8cd8SKonstantin Porotchkin /* Marvell CP110 SoC COMPHY unit driver */
9*0ade8cd8SKonstantin Porotchkin 
10*0ade8cd8SKonstantin Porotchkin int mvebu_cp110_comphy_is_pll_locked(uint64_t comphy_base,
11*0ade8cd8SKonstantin Porotchkin 				     uint64_t comphy_index);
12*0ade8cd8SKonstantin Porotchkin int mvebu_cp110_comphy_power_off(uint64_t comphy_base,
13*0ade8cd8SKonstantin Porotchkin 				 uint64_t comphy_index);
14*0ade8cd8SKonstantin Porotchkin int mvebu_cp110_comphy_power_on(uint64_t comphy_base,
15*0ade8cd8SKonstantin Porotchkin 				uint64_t comphy_index, uint64_t comphy_mode);
16*0ade8cd8SKonstantin Porotchkin int mvebu_cp110_comphy_xfi_rx_training(uint64_t comphy_base,
17*0ade8cd8SKonstantin Porotchkin 				       uint8_t comphy_index);
18*0ade8cd8SKonstantin Porotchkin int mvebu_cp110_comphy_digital_reset(uint64_t comphy_base, uint8_t comphy_index,
19*0ade8cd8SKonstantin Porotchkin 				     uint32_t comphy_mode, uint32_t command);
20