drivers: can: mcp2515: correct min/max timing values
The MCP2515 requires phase segment 2 to be at least 2 time quanta. The prescaler has a 6 bit register, allowing for real-world prescaler values between 1 and 64. Fixes: #44484 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
a1e33d8868
commit
c389594e12
1 changed files with 2 additions and 2 deletions
|
@ -849,7 +849,7 @@ static const struct can_driver_api can_api_funcs = {
|
|||
.sjw = 0x1,
|
||||
.prop_seg = 0x01,
|
||||
.phase_seg1 = 0x01,
|
||||
.phase_seg2 = 0x01,
|
||||
.phase_seg2 = 0x02,
|
||||
.prescaler = 0x01
|
||||
},
|
||||
.timing_max = {
|
||||
|
@ -857,7 +857,7 @@ static const struct can_driver_api can_api_funcs = {
|
|||
.prop_seg = 0x08,
|
||||
.phase_seg1 = 0x08,
|
||||
.phase_seg2 = 0x08,
|
||||
.prescaler = 0x20
|
||||
.prescaler = 0x40
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue