diff options
author | Timur Tabi <timur@freescale.com> | 2007-12-03 16:17:58 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-12-13 23:59:27 -0500 |
commit | 174b0da23199c4ae1ed06263dafd9a2e85e97d34 (patch) | |
tree | ef7e30bbc2b22269e46a08ab17823e5d43e6974f /include/asm-powerpc | |
parent | 255b09eb26bc285be5aad5c5606e96093094c41a (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')
-rw-r--r-- | include/asm-powerpc/qe.h | 1 |
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 */ |
86 | int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input); | 86 | int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input); |
87 | enum qe_clock qe_clock_source(const char *source); | ||
87 | int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier); | 88 | int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier); |
88 | int qe_get_snum(void); | 89 | int qe_get_snum(void); |
89 | void qe_put_snum(u8 snum); | 90 | void qe_put_snum(u8 snum); |