Andrew Lunn b61d157589 I2C: MV64XYZ: Add Device Tree support
Extends the driver to get properties from device tree. Rather than
pass the N & M factors in DT, use the more standard clock-frequency
property. Calculate N & M at run time. In order to do this, we need to
know tclk. So the driver uses clk_get() etc in order to get the clock
and clk_get_rate() to determine the tclk rate. Not all platforms
however have CLK, so some #ifdefery is needed to ensure the driver
still compiles when CLK is not available.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>

[wsa: converted some ints to u32 to match signedness]

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2012-07-23 22:04:11 +02:00
..
2011-03-31 11:26:23 -03:00
2008-01-27 18:14:45 +01:00
2012-07-10 10:43:37 +02:00
2011-01-04 00:53:37 +00:00
2011-05-24 20:58:49 +02:00
2011-05-24 20:58:49 +02:00
2012-05-12 14:28:11 +02:00
2011-06-29 11:36:10 +02:00
2012-05-12 14:28:18 +02:00
2012-07-14 12:33:27 +02:00
2012-05-12 14:28:14 +02:00