Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Roger Quadros | 2b802c0 | 2013-11-11 16:56:39 +0200 | [diff] [blame] | 2 | /* |
| 3 | * TI PIPE3 PHY |
| 4 | * |
| 5 | * (C) Copyright 2013 |
| 6 | * Texas Instruments, <www.ti.com> |
Roger Quadros | 2b802c0 | 2013-11-11 16:56:39 +0200 | [diff] [blame] | 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 */ |