summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2008-03-24 17:40:32 +0300
committerKim Phillips <kim.phillips@freescale.com>2008-03-25 19:16:45 -0500
commit453316a2a19642d8afcbca7452e40a6b44a197b1 (patch)
tree4c0a008170679b04e9212e4f051c5620c67ce8bd /include
parenta796cdf9c377cb4e5d61d1079a296608f8fbd903 (diff)
downloadu-boot-imx-453316a2a19642d8afcbca7452e40a6b44a197b1.zip
u-boot-imx-453316a2a19642d8afcbca7452e40a6b44a197b1.tar.gz
u-boot-imx-453316a2a19642d8afcbca7452e40a6b44a197b1.tar.bz2
83xx: serdes setup routines
This patch adds few routines to configure serdes on 837x targets. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/fsl_serdes.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-ppc/fsl_serdes.h b/include/asm-ppc/fsl_serdes.h
new file mode 100644
index 0000000..733f919
--- /dev/null
+++ b/include/asm-ppc/fsl_serdes.h
@@ -0,0 +1,21 @@
+#ifndef __FSL_SERDES_H
+#define __FSL_SERDES_H
+
+#include <config.h>
+
+#define FSL_SERDES_CLK_100 0
+#define FSL_SERDES_CLK_125 1
+#define FSL_SERDES_CLK_150 3
+#define FSL_SERDES_PROTO_SATA 0
+#define FSL_SERDES_PROTO_PEX 1
+#define FSL_SERDES_PROTO_PEX_X2 2
+#define FSL_SERDES_PROTO_SGMII 3
+#define FSL_SERDES_VDD_1V 1
+
+#ifdef CONFIG_FSL_SERDES
+extern void fsl_setup_serdes(u32 offset, char proto, char rfcks, char vdd);
+#else
+static void fsl_setup_serdes(u32 offset, char proto, char rfcks, char vdd) {}
+#endif /* CONFIG_FSL_SERDES */
+
+#endif /* __FSL_SERDES_H */