author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Sun, 08 Jul 2018 13:33:09 +0200 | |
branch | stable-1.5 |
changeset 2699 | ed6b9e0d7c05 |
parent 2684 | 56587a22d05c |
permissions | -rw-r--r-- |
2549
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
1 |
#------------------------------------------------------------------------------ |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
2 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
3 |
# $Id$ |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
4 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
5 |
# Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
6 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
7 |
# This file is part of the IgH EtherCAT Master. |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
8 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
9 |
# The IgH EtherCAT Master is free software; you can redistribute it and/or |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
10 |
# modify it under the terms of the GNU General Public License version 2, as |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
11 |
# published by the Free Software Foundation. |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
12 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
13 |
# The IgH EtherCAT Master is distributed in the hope that it will be useful, |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
16 |
# Public License for more details. |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
17 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
18 |
# You should have received a copy of the GNU General Public License along |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
19 |
# with the IgH EtherCAT Master; if not, write to the Free Software |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
20 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
21 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
22 |
# --- |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
23 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
24 |
# The license mentioned above concerns the source code only. Using the |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
25 |
# EtherCAT technology and brand is only permitted in compliance with the |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
26 |
# industrial property and similar rights of Beckhoff Automation GmbH. |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
27 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
28 |
# --- |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
29 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
30 |
# vim: syntax=make |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
31 |
# |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
32 |
#------------------------------------------------------------------------------ |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
33 |
|
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
34 |
TOPDIR := $(src)/../.. |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
35 |
|
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
36 |
ifeq (@ENABLE_CCAT@,1) |
2684
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
37 |
obj-m += ec_ccat.o |
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
38 |
|
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
39 |
ec_ccat-objs := \ |
2553
b0c2762a1a83
ccat: use the same file for different driver version
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2549
diff
changeset
|
40 |
module.o \ |
b0c2762a1a83
ccat: use the same file for different driver version
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2549
diff
changeset
|
41 |
netdev.o \ |
2636
0613017547fe
update ccat driver to v0.13
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2569
diff
changeset
|
42 |
sram.o \ |
2553
b0c2762a1a83
ccat: use the same file for different driver version
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2549
diff
changeset
|
43 |
update.o |
2684
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
44 |
|
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
45 |
ifdef CONFIG_GPIO |
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
46 |
ec_ccat-objs += gpio.o |
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
47 |
endif |
56587a22d05c
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
Florian Pose <fp@igh.de>
parents:
2636
diff
changeset
|
48 |
|
2557
ded6d50de4a7
Removed unused CCAT kernel version.
Florian Pose <fp@igh-essen.com>
parents:
2553
diff
changeset
|
49 |
CFLAGS_ccat_main-ethercat.o = -DREV=$(REV) |
2549
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
50 |
endif |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
51 |
|
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
52 |
KBUILD_EXTRA_SYMBOLS := \ |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
53 |
@abs_top_builddir@/$(LINUX_SYMVERS) \ |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
54 |
@abs_top_builddir@/master/$(LINUX_SYMVERS) |
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
55 |
|
933a1b36b05f
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
diff
changeset
|
56 |
#------------------------------------------------------------------------------ |