Merge pull request #481 from marckleinebudde/can-calc-bittiming

can-calc-bit-timing: add rockchip_canfd
pull/486/head
Marc Kleine-Budde 2023-12-11 09:42:36 +01:00 committed by GitHub
commit 04f1514810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -340,6 +340,34 @@ static const struct calc_bittiming_const can_calc_consts[] = {
.brp_max = 1024,
.brp_inc = 1,
},
}, {
.bittiming_const = {
.name = "rockchip_canfd",
.tseg1_min = 1,
.tseg1_max = 256,
.tseg2_min = 1,
.tseg2_max = 128,
.sjw_max = 128,
.brp_min = 2,
.brp_max = 256,
.brp_inc = 2,
},
.data_bittiming_const = {
.name = "rockchip_canfd",
.tseg1_min = 1,
.tseg1_max = 32,
.tseg2_min = 1,
.tseg2_max = 16,
.sjw_max = 16,
.brp_min = 2,
.brp_max = 256,
.brp_inc = 2,
},
.ref_clk = {
{ .clk = 20000000, .name = "CIA recommendation" },
{ .clk = 40000000, .name = "CIA recommendation" },
{ .clk = 300000000, .name = "rock-3a" },
},
}, { /* -------- SPI -------- */
.bittiming_const = {
.name = "hi311x",