]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: split the Message Buffer RAM area
authorPankaj Bansal <pankaj.bansal@nxp.com>
Tue, 28 Aug 2018 17:49:12 +0000 (23:19 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 28 Nov 2018 15:52:25 +0000 (16:52 +0100)
commit4c4913000347130c868c81a52bd00e6419d028bf
treeb4d366eadf773dd86c964ea6fe5c1ff7283e7fee
parent2ff646f8b66e321765d766dac95e54d6d643bd0e
can: flexcan: split the Message Buffer RAM area

The message buffer RAM area is not a contiguous 1KB area but 2 partitions
of 512 bytes each. Till now, we used Message buffers with payload size 8
bytes, which translates to 32 MBs per partition and no spare space is left
in any partition.
However, in upcoming SOC LX2160A the message buffers can have payload size
64 bytes. This results in less than 32 MBs per partition and some empty
area is left at the end of each partition.This empty area should not be
accessed.
Therefore, split the Message Buffer RAM area into two partitions.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c