diff options
author | holt@sgi.com <holt@sgi.com> | 2011-08-16 13:32:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-17 23:36:38 -0400 |
commit | 97efe9aef1ae8922666d32f28d712745a86859e9 (patch) | |
tree | c02a00d17b63b8454dd69d874bc207fccb8d0aa7 /Documentation | |
parent | c8aef4cb788b760331e6df06a5d93389824882b4 (diff) |
flexcan: Prefer device tree clock frequency if available.
If our CAN device's device tree node has a clock-frequency property,
then use that value for the can devices clock frequency. If not, fall
back to asking the platform/mach code for the clock frequency associated
with the flexcan device.
Signed-off-by: Robin Holt <holt@sgi.com>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>,
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>,
Cc: U Bhaskar-B22300 <B22300@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: socketcan-core@lists.berlios.de,
Cc: netdev@vger.kernel.org,
Cc: PPC list <linuxppc-dev@lists.ozlabs.org>
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt b/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt index 8dfb98b6e3e2..1ad80d5865a9 100644 --- a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt +++ b/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | |||
@@ -11,6 +11,7 @@ Required properties: | |||
11 | 11 | ||
12 | - reg : Offset and length of the register set for this device | 12 | - reg : Offset and length of the register set for this device |
13 | - interrupts : Interrupt tuple for this device | 13 | - interrupts : Interrupt tuple for this device |
14 | - clock-frequency : The oscillator frequency driving the flexcan device | ||
14 | 15 | ||
15 | Example: | 16 | Example: |
16 | 17 | ||
@@ -19,4 +20,5 @@ Example: | |||
19 | reg = <0x1c000 0x1000>; | 20 | reg = <0x1c000 0x1000>; |
20 | interrupts = <48 0x2>; | 21 | interrupts = <48 0x2>; |
21 | interrupt-parent = <&mpic>; | 22 | interrupt-parent = <&mpic>; |
23 | clock-frequency = <200000000>; // filled in by bootloader | ||
22 | }; | 24 | }; |