• Stephane Grosjean's avatar
    can: peak: Fix bittiming fields size in bits · fe5b4064
    Stephane Grosjean authored
    This fixes the bitimings fields ranges supported by all the CAN-FD USB
    interfaces of the PEAK-System CAN-FD adapters.
    
    Very first development versions of the IP core API defined smaller TSGEx
    and SJW fields for both nominal and data bittimings records than the
    production versions. This patch fixes them by enlarging their sizes to
    the actual values:
    
    field:           old size:    fixed size:
    nominal TSGEG1   6            8
    nominal TSGEG2   4            7
    nominal SJW      4            7
    data TSGEG1      4            5
    data TSGEG2      3            4
    data SJW         2            4
    
    Note that this has no other consequences than offering larger choice to
    bitrate encoding.
    Signed-off-by: default avatarStephane Grosjean <s.grosjean@peak-system.com>
    Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
    fe5b4064
pcan_usb_fd.c 30.7 KB