summaryrefslogtreecommitdiff
path: root/fs/Kconfig
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-03-03 22:45:55 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2016-03-10 12:19:09 +0300
commit99312c377f82f91e7754aefe42f64b619b295fd6 (patch)
tree09fc91851a47c2c230c9b02401d8aeba5837545b /fs/Kconfig
parent3b8377dca1fd1974d245b2a04a708fc434761c65 (diff)
downloadlinux-99312c377f82f91e7754aefe42f64b619b295fd6.tar.xz
can: ifi: Fix clock generator configuration
The clock generation does not match reality when using the CAN IP core outside of the FPGA design. This patch fixes the computation of values which are programmed into the clock generator registers. First, there are some off-by-one errors which manifest themselves only when communicating with different controller, so those are fixed. Second, the bits in the clock generator registers have different meaning depending on whether the core is in ISO CANFD mode or any of the other modes (BOSCH CANFD or CAN2.0). Detect the ISO CANFD mode and fix handling of this special case of clock configuration. Finally, the CAN clock speed is in CANCLOCK register, not SYSCLOCK register, so fix this as well. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marc Kleine-Budde <mkl@pengutronix.de> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Oliver Hartkopp <socketcan@hartkopp.net> Cc: Wolfgang Grandegger <wg@grandegger.com> Reviewed-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'fs/Kconfig')
0 files changed, 0 insertions, 0 deletions