summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/omap-common/pipe3-phy.h
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2013-11-11 16:56:39 +0200
committerTom Rini <trini@ti.com>2013-12-04 08:12:08 -0500
commit9c4b64fb612e3129823ba83691e08f4c6d2042ea (patch)
tree097ef5f761ee868e4ba3c0e50127cdd4cfd0a34e /arch/arm/cpu/armv7/omap-common/pipe3-phy.h
parent2faf5fb82ed6f3df07635cddca0a2a54e3ef74ef (diff)
downloadu-boot-imx-9c4b64fb612e3129823ba83691e08f4c6d2042ea.zip
u-boot-imx-9c4b64fb612e3129823ba83691e08f4c6d2042ea.tar.gz
u-boot-imx-9c4b64fb612e3129823ba83691e08f4c6d2042ea.tar.bz2
ARM: OMAP5: Add Pipe3 PHY driver
Pipe3 PHY is used by SATA, USB3 and PCIe modules. This is a driver for the Pipe3 PHY. Signed-off-by: Roger Quadros <rogerq@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap-common/pipe3-phy.h')
-rw-r--r--arch/arm/cpu/armv7/omap-common/pipe3-phy.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/pipe3-phy.h b/arch/arm/cpu/armv7/omap-common/pipe3-phy.h
new file mode 100644
index 0000000..441f49a
--- /dev/null
+++ b/arch/arm/cpu/armv7/omap-common/pipe3-phy.h
@@ -0,0 +1,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 */