Thread (12 messages) 12 messages, 3 authors, 2015-08-28

Re: CAN implementation on A20 Allwinner

From: Gerhard Bertelsmann <hidden>
Date: 2015-08-27 13:34:27

Hi Marc,

many thx for your fast answer.

Am 2015-08-27 15:23, schrieb Marc Kleine-Budde:
On 08/27/2015 03:04 PM, Gerhard Bertelsmann wrote:
quoted
quoted
It 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.
Which are the registers that have the upper 24 bit used?
CAN_STA_REG  status register
CAN_BUS_TIME bus timing
CAN_REC_REG  errot counter

Some regs also have a different address
quoted
So the question is: change the sja1000 and the platform file for
"quirks" or write a new independent one ?
Depends on the actual differences, but I'd go for quirks first.
quoted
Which way do you prefer or better: which driver will be accepted for
mainline ?
The github driver lacks a proper driver model binding, so that's not
mainline ready.
That would be not a huge problem IMHO ...
Marc
Gerd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help