]> git.baikalelectronics.ru Git - kernel.git/commit
can: mscan-mpc5xxx: add support for the MPC512x processor
authorWolfgang Grandegger <wg@denx.de>
Thu, 7 Jan 2010 09:43:07 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jan 2010 09:02:18 +0000 (01:02 -0800)
commit2fb70edf296c5bb057f0756af117e14bec811b10
treee8e6681168c9f695006962cacfb937d3dc1bbb06
parent661fa41e84f5d1cfc89ce807f31dee29442b9688
can: mscan-mpc5xxx: add support for the MPC512x processor

The main differences compared to the MSCAN on the MPC5200 are:

- More flexibility in choosing the CAN source clock and frequency:

  Three different clock sources can be selected: "ip", "ref" or "sys".
  For the latter two, a clock divider can be defined as well. If the
  clock source is not specified by the device tree, we first try to
  find an optimal CAN source clock based on the system clock. If that
  is not possible, the reference clock will be used.

- The behavior of bus-off recovery is configurable:

  To comply with the usual handling of Socket-CAN bus-off recovery,
  "recovery on request" is selected (instead of automatic recovery).

Note that only MPC5121 Rev. 2 and later is supported.

Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/mscan/Kconfig
drivers/net/can/mscan/mpc5xxx_can.c
drivers/net/can/mscan/mscan.c
drivers/net/can/mscan/mscan.h