xref: /openbmc/u-boot/arch/arm/mach-omap2/pipe3-phy.h (revision dd1033e4)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * TI PIPE3 PHY
4  *
5  * (C) Copyright 2013
6  * Texas Instruments, <www.ti.com>
7  */
8 
9 #ifndef __OMAP_PIPE3_PHY_H
10 #define __OMAP_PIPE3_PHY_H
11 
12 struct pipe3_dpll_params {
13 	u16     m;
14 	u8      n;
15 	u8      freq:3;
16 	u8      sd;
17 	u32     mf;
18 };
19 
20 struct pipe3_dpll_map {
21 	unsigned long rate;
22 	struct pipe3_dpll_params params;
23 };
24 
25 struct omap_pipe3 {
26 	void __iomem            *pll_ctrl_base;
27 	void __iomem		*power_reg;
28 	struct pipe3_dpll_map   *dpll_map;
29 };
30 
31 
32 int phy_pipe3_power_on(struct omap_pipe3 *phy);
33 int phy_pipe3_power_off(struct omap_pipe3 *pipe3);
34 
35 #endif /* __OMAP_PIPE3_PHY_H */
36