diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-07-22 12:51:35 +0200 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-07-23 22:04:11 +0200 |
commit | b61d15758941166b9cac41b87751dea21978bebc (patch) | |
tree | 3d627f2a324b39bc9e3e9656adddf49ca6be658a /Documentation/devicetree/bindings/x86 | |
parent | 6f535b94261b16343cfbc4576a941bd7901b96e1 (diff) |
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>
Diffstat (limited to 'Documentation/devicetree/bindings/x86')
0 files changed, 0 insertions, 0 deletions