Re: CAN implementation on A20 Allwinner
From: Gerhard Bertelsmann <hidden>
Date: 2015-08-27 13:11:34
From: Gerhard Bertelsmann <hidden>
Date: 2015-08-27 13:11:34
Hi Am 2014-12-02 13:37, schrieb Marc Kleine-Budde:
On 11/27/2014 08:53 PM, Gerhard Bertelsmann wrote:quoted
Hi again, here are some updates: https://github.com/btolfa/sunxi-can-driverIt it's sja1000 compatible, it should work out of the box with the existing sja1000 device tree binding.
the Allwinner CAN IP is very similar but not exactly a SJA1000, e g. the registers differ and some are 32 bit wide and not 8 bit. So the question is: change the sja1000 and the platform file for "quirks" or write a new independent one ? Which way do you prefer or better: which driver will be accepted for mainline ?
Marc
Regards Gerd P.S.: Allwinner A20 Manual - CAN beginning at page 811 https://github.com/allwinner-zh/documents/raw/master/A20/A20_User_Manual_v1.4_20150510.pdf