From: Joakim Zhang Subject: [PATCH 8/8] can: flexcan: add lx2160ar1 support Date: Fri, 12 Jul 2019 08:03:01 +0000 Message-ID: <20190712075926.7357-9-qiangqing.zhang@nxp.com> References: <20190712075926.7357-1-qiangqing.zhang@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20190712075926.7357-1-qiangqing.zhang@nxp.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org To: "mkl@pengutronix.de" , "linux-can@vger.kernel.org" Cc: "wg@grandegger.com" , dl-linux-imx , "netdev@vger.kernel.org" , Joakim Zhang List-Id: linux-can.vger.kernel.org The Flexcan on lx2160ar1 supports CAN FD protocol. Signed-off-by: Joakim Zhang --- drivers/net/can/flexcan.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index f1fdaae52ef4..f5c66f284c70 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -358,6 +358,12 @@ static const struct flexcan_devtype_data fsl_vf610_dev= type_data =3D { FLEXCAN_QUIRK_BROKEN_PERR_STATE, }; =20 +static const struct flexcan_devtype_data fsl_lx2160a_r1_devtype_data =3D { + .quirks =3D FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_ENABLE_EACEN_RRS | + FLEXCAN_QUIRK_DISABLE_MECR | FLEXCAN_QUIRK_BROKEN_PERR_STATE | + FLEXCAN_QUIRK_USE_OFF_TIMESTAMP | FLEXCAN_QUIRK_TIMESTAMP_SUPPORT_FD, +}; + static const struct flexcan_devtype_data fsl_ls1021a_r2_devtype_data =3D { .quirks =3D FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_ENABLE_EACEN_RRS | FLEXCAN_QUIRK_DISABLE_MECR | FLEXCAN_QUIRK_BROKEN_PERR_STATE | @@ -1709,6 +1715,7 @@ static int flexcan_setup_stop_mode(struct platform_de= vice *pdev) } =20 static const struct of_device_id flexcan_of_match[] =3D { + { .compatible =3D "fsl,lx2160ar1-flexcan", .data =3D &fsl_lx2160a_r1_devt= ype_data, }, { .compatible =3D "fsl,imx8qm-flexcan", .data =3D &fsl_imx8qm_devtype_dat= a, }, { .compatible =3D "fsl,imx6q-flexcan", .data =3D &fsl_imx6q_devtype_data,= }, { .compatible =3D "fsl,imx28-flexcan", .data =3D &fsl_imx28_devtype_data,= }, --=20 2.17.1