On 08/04/2011 10:45 PM, Robin Holt wrote:
> On Thu, Aug 04, 2011 at 10:21:50PM +0200, Marc Kleine-Budde wrote:
>> On 08/04/2011 09:15 PM, Robin Holt wrote:
>>> The freescale P1010RDB board does not have a
>>> clk_{get,put,get_rate,enable,disable} set of functions. Wrap these with a
>>> flexcan_ #define for arm, and implement a more complete function for ppc.
>>
>> Powerpc has these functions, too....wonder if they do the expected :)
>
> On the p1010, I think the clock source for the CAN interface can be
> different from the system clock. In the 'p1010rdb.dts' file which
> describes the can interface, there is a separate entry for the
> clock-source and clock-divider:
>
> can0@1c000 {
> compatible = "fsl,flexcan-v1.0";
> reg = <0x1c000 0x1000>;
> interrupts = <48 0x2>;
> interrupt-parent = <&mpic>;
> fsl,flexcan-clock-source = <1>;
> fsl,flexcan-clock-divider = <2>;
> };
Clock source should be a string like for the MSCAN. The bindings are
documented in:
http://lxr.linux.no/#linux+v3.0/Documentation/devicetree/bindings/net/can/
Also we should adapt "fsl-flexcan.txt", which sneaked into the mainline
kernel somehow.
Wolfgang.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users