]> rtime.felk.cvut.cz Git - socketcan-devel.git/blob - mkseries-dev/patches/DRIVER_MSCAN.diff
Add kernel version depency for Kernel 3.1.x which extended __rtnl_register().
[socketcan-devel.git] / mkseries-dev / patches / DRIVER_MSCAN.diff
1 ---
2  drivers/net/can/Kconfig        |   20 ++++++++++++++++++++
3  drivers/net/can/Makefile       |    1 +
4  drivers/net/can/mscan/Makefile |    7 +++++++
5  3 files changed, 28 insertions(+)
6
7 Index: linux-2.6.25.6.OLD/drivers/net/can/Kconfig
8 ===================================================================
9 --- linux-2.6.25.6.OLD.orig/drivers/net/can/Kconfig
10 +++ linux-2.6.25.6.OLD/drivers/net/can/Kconfig
11 @@ -74,6 +74,26 @@ config CAN_PEAK_PCI
12           This driver is for the PCAN PCI, the PC-PCI CAN plug-in card (1 or
13           2 channel) from PEAK Systems (http://www.peak-system.com).
14  
15 +config CAN_MSCAN
16 +       depends on CAN_DEV && (PPC || M68K || M68KNOMMU)
17 +       tristate "Support for a Freescale MSCAN based chips"
18 +       ---help---
19 +         The Motorola Scalable Controller Area Network (MSCAN) definition
20 +         is based on the MSCAN12 definition which is the specific
21 +         implementation of the Motorola Scalable CAN concept targeted for
22 +         the Motorola MC68HC12 Microcontroller Family.
23 +
24 +config CAN_MPC52XX
25 +       tristate "Freescale MPC5200 onboard CAN controller"
26 +       depends on CAN_MSCAN && (PPC_MPC52xx || PPC_52xx)
27 +       default n
28 +       ---help---
29 +         If you say yes here you get support for Freescale MPC5200
30 +         onboard dualCAN controller.
31 +
32 +         This driver can also be built as a module.  If so, the module
33 +         will be called mpc52xx_can.
34 +
35  config CAN_DEBUG_DEVICES
36         bool "CAN devices debugging messages"
37         depends on CAN
38 Index: linux-2.6.25.6.OLD/drivers/net/can/Makefile
39 ===================================================================
40 --- linux-2.6.25.6.OLD.orig/drivers/net/can/Makefile
41 +++ linux-2.6.25.6.OLD/drivers/net/can/Makefile
42 @@ -8,3 +8,4 @@ obj-$(CONFIG_CAN_DEV)           += can-dev.o
43  can-dev-y                      := dev.o sysfs.o
44  
45  obj-$(CONFIG_CAN_SJA1000)      += sja1000/
46 +obj-$(CONFIG_CAN_MSCAN)                += mscan/
47 Index: linux-2.6.25.6.OLD/drivers/net/can/mscan/Makefile
48 ===================================================================
49 --- /dev/null
50 +++ linux-2.6.25.6.OLD/drivers/net/can/mscan/Makefile
51 @@ -0,0 +1,7 @@
52 +#
53 +#  Makefile for Freescale MSCAN drivers
54 +#
55 +
56 +obj-$(CONFIG_CAN_MPC52XX)      += mscan-mpc52xx.o
57 +
58 +mscan-mpc52xx-objs     := mscan.o mpc52xx_can.o