can: flexcan: add support for PE clock source select
authorDong Aisheng <aisheng.dong@nxp.com>
Thu, 13 Dec 2018 07:08:00 +0000 (07:08 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 24 Jul 2019 08:31:55 +0000 (10:31 +0200)
commit8c306bec2d09c8436eea989b1be2a381cae93418
treeba985d49c5bd51db29eb86923934eac84904701e
parent9d733992772dc04ce5e8839f867b4ff83ee75c34
can: flexcan: add support for PE clock source select

Add support to select the clock source for CAN Protocol Engine (PE).
It's SoC Implementation dependent. Refer to RM for detailed definition
of each SoC. We select clock source 1 (peripheral clock) by default in
driver now, this patch adds support to parse the clock source from the DT.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c