OSDN Git Service

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)
commit6cbf76028dcac01129211828d62314285231f79e
treeb4d366eadf773dd86c964ea6fe5c1ff7283e7fee
parent0517961ccdf190a7f25da9ab17982a6d496e5d1d
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