drivers: can: can_stm32h7: Fix min timings

Assertions in can_mcan failed because the driver expects values
strictly greater than 0

Signed-off-by: Tomislav Milkovic <tomislav.milkovic95@gmail.com>
This commit is contained in:
Tomislav Milkovic 2022-05-17 12:23:52 +02:00 committed by Marti Bolivar
commit fc7598fa04

View file

@ -113,14 +113,14 @@ static const struct can_driver_api can_stm32h7_driver_api = {
* (FDCAN_NBTP).
*/
.timing_min = {
.sjw = 0x00,
.sjw = 0x01,
.prop_seg = 0x00,
.phase_seg1 = 0x00,
.phase_seg2 = 0x00,
.prescaler = 0x00
.phase_seg1 = 0x01,
.phase_seg2 = 0x01,
.prescaler = 0x01
},
.timing_max = {
.sjw = 0x7f,
.sjw = 0x80,
.prop_seg = 0x00,
.phase_seg1 = 0x100,
.phase_seg2 = 0x80,
@ -133,11 +133,11 @@ static const struct can_driver_api can_stm32h7_driver_api = {
* register (FDCAN_DBTP).
*/
.timing_data_min = {
.sjw = 0x00,
.sjw = 0x01,
.prop_seg = 0x00,
.phase_seg1 = 0x00,
.phase_seg2 = 0x00,
.prescaler = 0x00
.phase_seg1 = 0x01,
.phase_seg2 = 0x01,
.prescaler = 0x01
},
.timing_data_max = {
.sjw = 0x10,