diff options
author | William Qiu <william.qiu@starfivetech.com> | 2023-07-26 11:32:47 +0300 |
---|---|---|
committer | William Qiu <william.qiu@starfivetech.com> | 2023-07-26 11:32:47 +0300 |
commit | 47543a55227b8208c5c65af353b4f982bb909638 (patch) | |
tree | ce3e0f2da89a198873dc021ef9b620d97855ff76 | |
parent | 4b8c452a710d72395be8dc9f914dc58e8bc9411c (diff) | |
download | linux-47543a55227b8208c5c65af353b4f982bb909638.tar.xz |
ipms: can: modify the range of tseg1/tseg2
modify the range of tseg1/tseg2
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
-rw-r--r-- | drivers/net/can/ipms_canfd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/can/ipms_canfd.c b/drivers/net/can/ipms_canfd.c index d8aea010cef7..b93266b900fc 100644 --- a/drivers/net/can/ipms_canfd.c +++ b/drivers/net/can/ipms_canfd.c @@ -180,10 +180,10 @@ struct ipms_canfd_priv { static struct can_bittiming_const canfd_bittiming_const = { .name = DRIVER_NAME, .tseg1_min = 2, - .tseg1_max = 65, - .tseg2_min = 1, + .tseg1_max = 16, + .tseg2_min = 2, .tseg2_max = 8, - .sjw_max = 16, + .sjw_max = 4, .brp_min = 1, .brp_max = 512, .brp_inc = 1, @@ -192,9 +192,9 @@ static struct can_bittiming_const canfd_bittiming_const = { static struct can_bittiming_const canfd_data_bittiming_const = { .name = DRIVER_NAME, - .tseg1_min = 2, - .tseg1_max = 17, - .tseg2_min = 1, + .tseg1_min = 1, + .tseg1_max = 16, + .tseg2_min = 2, .tseg2_max = 8, .sjw_max = 8, .brp_min = 1, |