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 const struct rockchip_phy_funcs *funcs; 20 const void *data; 21 }; 22 23 const struct rockchip_phy * 24 rockchip_get_phy(const void *blob, int phy_node); 25 int rockchip_phy_power_off(struct display_state *state); 26 int rockchip_phy_power_on(struct display_state *state); 27 unsigned long rockchip_phy_set_pll(struct display_state *state, 28 unsigned long rate); 29 30 #ifdef CONFIG_DRM_ROCKCHIP_DW_MIPI_DSI 31 extern const struct rockchip_phy_funcs inno_mipi_dphy_funcs; 32 #endif 33 #endif 34