can-calc-bit-timing: add support flexcan with 30MHz refclock

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/17/head
Marc Kleine-Budde 2015-09-03 11:11:30 +02:00
parent c689803204
commit 8c703db361
1 changed files with 14 additions and 0 deletions

View File

@ -393,6 +393,20 @@ static struct can_bittiming_const can_calc_consts[] = {
.brp_max = 256, .brp_max = 256,
.brp_inc = 1, .brp_inc = 1,
.ref_clk = 30000000, /* mx6 */
.printf_btr = printf_btr_flexcan,
},
{
.name = "flexcan",
.tseg1_min = 4,
.tseg1_max = 16,
.tseg2_min = 2,
.tseg2_max = 8,
.sjw_max = 4,
.brp_min = 1,
.brp_max = 256,
.brp_inc = 1,
.ref_clk = 49875000, .ref_clk = 49875000,
.printf_btr = printf_btr_flexcan, .printf_btr = printf_btr_flexcan,
}, },