1 /* 2 * (C) Copyright 2008-2017 Fuzhou Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef _ROCKCHIP_PHY_H_ 8 #define _ROCKCHIP_PHY_H_ 9 10 struct rockchip_phy_funcs { 11 int (*init)(struct display_state *state); 12 int (*power_on)(struct display_state *state); 13 int (*power_off)(struct display_state *state); 14 unsigned long (*set_pll)(struct display_state *state, 15 unsigned long rate); 16 }; 17 18 struct rockchip_phy { 19 char compatible[30]; 20 const struct rockchip_phy_funcs *funcs; 21 const void *data; 22 }; 23 24 const struct rockchip_phy * 25 rockchip_get_phy(const void *blob, int phy_node); 26 int rockchip_phy_power_off(struct display_state *state); 27 int rockchip_phy_power_on(struct display_state *state); 28 unsigned long rockchip_phy_set_pll(struct display_state *state, 29 unsigned long rate); 30 31 #ifdef CONFIG_ROCKCHIP_DW_MIPI_DSI 32 extern const struct rockchip_phy_funcs inno_mipi_dphy_funcs; 33 #endif 34 #endif 35