aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/qe.h
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2007-12-03 16:17:58 -0500
committerKumar Gala <galak@kernel.crashing.org>2007-12-13 23:59:27 -0500
commit174b0da23199c4ae1ed06263dafd9a2e85e97d34 (patch)
treeef7e30bbc2b22269e46a08ab17823e5d43e6974f /include/asm-powerpc/qe.h
parent255b09eb26bc285be5aad5c5606e96093094c41a (diff)
[POWERPC] qe: add function qe_clock_source()
Add function qe_clock_source() which takes a string containing the name of a QE clock source (as is typically found in device trees) and returns the matching enum qe_clock value. Update booting-without-of.txt to indicate that the UCC properties rx-clock and tx-clock are deprecated and replaced with rx-clock-name and tx-clock-name, which use strings instead of numbers to indicate QE clock sources. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc/qe.h')
-rw-r--r--include/asm-powerpc/qe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/qe.h b/include/asm-powerpc/qe.h
index bcf60bef6524..a24b7b14958f 100644
--- a/include/asm-powerpc/qe.h
+++ b/include/asm-powerpc/qe.h
@@ -84,6 +84,7 @@ extern int par_io_data_set(u8 port, u8 pin, u8 val);
84 84
85/* QE internal API */ 85/* QE internal API */
86int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input); 86int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input);
87enum qe_clock qe_clock_source(const char *source);
87int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier); 88int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier);
88int qe_get_snum(void); 89int qe_get_snum(void);
89void qe_put_snum(u8 snum); 90void qe_put_snum(u8 snum);