+static void printf_btr_flexcan(struct can_bittiming *bt, int hdr)
+{
+ if (hdr) {
+ printf("%10s", "CAN_CTRL");
+ } else {
+ uint32_t ctrl = (((bt->brp - 1) << 24) |
+ ((bt->sjw - 1) << 22) |
+ ((bt->phase_seg1 - 1) << 19) |
+ ((bt->phase_seg2 - 1) << 16) |
+ ((bt->prop_seg - 1) << 0));
+
+ printf("0x%08x", ctrl);
+ }
+}
+