support. This is the standard library for CAN drivers.
If unsure, say Y.
+config CAN_CALC_BITTIMING
+ tristate "CAN bit-timing calculation"
+ depends on CAN_DEV
+ default Y
+ ---help---
+ If enabled, CAN bit-timing parameters will be calculated for the
+ bit-rate specified via SYSFS file "can_bitrate" when the device
+ gets started. This works fine for the most common CAN controllers
+ with standard bit-rates but may fail for exotic bit-rates or CAN
+ source clock frequencies. Disabling saves some space, but then the
+ bit-timing parameters must be specified directly using the SYSFS
+ files "tq, prop_seg, phase_seg1, phase_seg2 and sjw".
+ If unsure, say Y.
+
config CAN_SJA1000
depends on CAN_DEV
tristate "Philips SJA1000"
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Wolfgang Grandegger <wg@grandegger.com>");
+#ifdef CONFIG_CAN_CALC_BITTIMING
#define CAN_CALC_MAX_ERROR 50 /* in one-tenth of a percent */
/*
return 0;
}
+#else /* !CONFIG_CAN_CALC_BITTIMING */
+static int can_calc_bittiming(struct net_device *dev)
+{
+ return -EINVAL;
+}
+#endif /* CONFIG_CAN_CALC_BITTIMING */
int can_sample_point(struct can_bittiming *bt)
{