summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/pipe3-phy.h
blob: 441f49a3f97e0ce1cbafc1304fc04c69c939c0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * TI PIPE3 PHY
 *
 * (C) Copyright 2013
 * Texas Instruments, <www.ti.com>
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */

#ifndef __OMAP_PIPE3_PHY_H
#define __OMAP_PIPE3_PHY_H

struct pipe3_dpll_params {
	u16     m;
	u8      n;
	u8      freq:3;
	u8      sd;
	u32     mf;
};

struct pipe3_dpll_map {
	unsigned long rate;
	struct pipe3_dpll_params params;
};

struct omap_pipe3 {
	void __iomem            *pll_ctrl_base;
	void __iomem		*power_reg;
	struct pipe3_dpll_map   *dpll_map;
};


int phy_pipe3_power_on(struct omap_pipe3 *phy);
int phy_pipe3_power_off(struct omap_pipe3 *pipe3);

#endif /* __OMAP_PIPE3_PHY_H */