]> err.no Git - linux-2.6/commitdiff
[POWERPC] QE: export qe_get_brg_clk()
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 11 Mar 2008 17:24:24 +0000 (20:24 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 06:01:39 +0000 (01:01 -0500)
qe_get_brg_clk() will be used by the fsl_gtm routines.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/qe_lib/qe.c
include/asm-powerpc/qe.h

index addabcd443a6ba3db3c366d10455a5d1e6508232..cff550eec7e8d3054659d608c89405b0c1d658d4 100644 (file)
@@ -156,7 +156,7 @@ EXPORT_SYMBOL(qe_issue_cmd);
  */
 static unsigned int brg_clk = 0;
 
-unsigned int get_brg_clk(void)
+unsigned int qe_get_brg_clk(void)
 {
        struct device_node *qe;
        unsigned int size;
@@ -180,6 +180,7 @@ unsigned int get_brg_clk(void)
 
        return brg_clk;
 }
+EXPORT_SYMBOL(qe_get_brg_clk);
 
 /* Program the BRG to the given sampling rate and multiplier
  *
@@ -197,7 +198,7 @@ int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier)
        if ((brg < QE_BRG1) || (brg > QE_BRG16))
                return -EINVAL;
 
-       divisor = get_brg_clk() / (rate * multiplier);
+       divisor = qe_get_brg_clk() / (rate * multiplier);
 
        if (divisor > QE_BRGC_DIVISOR_MAX + 1) {
                div16 = QE_BRGC_DIV16;
index 398534c15cc7294fdb9c41887080557410b548d7..c3be6e2e1490625cf7ac8d45daf62785bc7155d0 100644 (file)
@@ -85,6 +85,7 @@ extern int par_io_data_set(u8 port, u8 pin, u8 val);
 /* QE internal API */
 int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input);
 enum qe_clock qe_clock_source(const char *source);
+unsigned int qe_get_brg_clk(void);
 int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier);
 int qe_get_snum(void);
 void qe_put_snum(u8 snum);