[xburst] Add per board struct describing the external clock setup.
[openwrt-10.03/.git] / target / linux / xburst / files-2.6.32 / arch / mips / jz4740 / clock.c
index 1b32a8dee9acb113187230dcca4a66038891306a..26ae08d7c1c573cec094f655ca70f044beb750c3 100644 (file)
@@ -873,7 +873,7 @@ void jz4740_clock_udc_enable_auto_suspend(void)
 }
 EXPORT_SYMBOL_GPL(jz4740_clock_udc_enable_auto_suspend);
 
-int jz_init_clocks(unsigned long ext_rate)
+int jz_init_clocks(void)
 {
        uint32_t val;
 
@@ -883,7 +883,8 @@ int jz_init_clocks(unsigned long ext_rate)
 
        spin_lock_init(&jz_clock_lock);
 
-       jz_clk_ext.rate = ext_rate;
+       jz_clk_ext.rate = jz4740_clock_bdata.ext_rate;
+       jz_clk_rtc.rate = jz4740_clock_bdata.rtc_rate;
 
        val = jz_clk_reg_read(JZ_REG_CLOCK_SPI);