Re: [PATCH 0/3] can: amlogic: add support for Amlogic A9 CAN-FD controller
From: Zelong Dong
Date: Fri Nov 27 2026 - 07:10:03 EST
Yes, A9 CAN Bus Controller is base on FlexCAN, but some registers are
appended, and not for NXP chip,
#define CAN_VERSION 0x3800
#define CAN_TOP_CTRL 0x3804
#define CAN_DMA_CFG 0x3808
#define CAN_TMTIK_CFG 0x380C
#define CAN_TWRAP_INT_CLR 0x3810
/* 0x3814 - 0x3818 */
#define CAN_TIMESTAMP 0x381C
#define CAN_WARN_INT_STS 0x3820
#define CAN_MB_INT_STS0 0x3824
#define CAN_MB_INT_STS1 0x3828
#define CAN_MB_INT_STS2 0x382C
#define CAN_MB_INT_STS3 0x3830
#define CAN_STS_REG 0x3834
#define CAN_ECC_ERR_ADDR 0x3838
In my opinion, FlexCAN driver is only for NXP chip.
Do you think I should update FlexCAN driver rather than a new driver?
在 2026/11/20 16:22, Marc Kleine-Budde 写道:
> On 20.11.2026 16:08:17, zelong dong wrote:
>> From: Zelong Dong <zelong.dong@xxxxxxxxxxx>
>>
>> This series adds support for the CAN-FD controller found on the
>> Amlogic A9 SoC family.
>>
>> The controller supports classic CAN and CAN-FD. The
>> driver uses the generic RX offload infrastructure with hardware
>> timestamps, reports bus errors through the CAN berr counter, and
>> implements suspend/resume support.
> Have you had a look at the flexcan driver? The register layout of the IP
> core (and parts of your driver) looks like they were heavily inspired by
> it.
>
> Can you summarize why you require a separate driver?
>
> regards,
> Marc
>