]> rtime.felk.cvut.cz Git - ortcan-www.git/blob - lincan/boards/tscan1.mdwn
TS-CAN1 title
[ortcan-www.git] / lincan / boards / tscan1.mdwn
1 [[!meta title="TS-CAN1 Board and LinCAN Support"]]
2
3 The TS-CAN1 board is PC-104 CAN interface board
4 equipped by one SJA1000 interface from [Technologic Systems Inc](http://www.embeddedarm.com/).
5
6 The board documentation can be found on the [TS-CAN1 product pages](http://www.embeddedarm.com/products/board-detail.php?product=TS-CAN1).
7
8 ## The TS-CAN1 board IO port selection
9
10 The TS-CAN1 interface requires two IO regions for each
11 interface card. One is PLD registers and another is
12 CAN controller range.
13
14 The first one region address can be specified by LinCAN driver
15 common "io" parameter, the other by TSCAN1 specific "tscanio".
16
17 In theory the driver should do automatic probing for
18 card if the autoselect (zero values for irq and io)
19 is specified
20
21     insmod /root/can.ko hw=tscan1 baudrate=1000 irq=0 io=0
22
23 Other possibility is to specify PLD io base only and leave
24 driver to find irq address from switches and setup and allocate
25 tscanio at the first free location from card supported regions list.
26 The last possibility is to specify all parameters explicitly
27
28     insmod /root/can.ko hw=tscan1 baudrate=1000 irq=6 io=0x150 tscanio=0x180
29
30 The code should be able to locate multiple cards as well.
31 The automatic setup should look like
32
33     insmod /root/can.ko hw=tscan1,tscan1 baudrate=1000,1000 irq=0,0 io=0,0
34
35 But I have never tested such setup so there is possibility
36 of some errors in my code. The other option is to specify
37 exactly the whole setup including CAN controller IO region
38
39     insmod /root/can.ko hw=tscan1,tscan1 baudrate=1000,1000 irq=6,5 io=0x150,0x158 tscanio=0x180,0x1A0
40
41 Generally to select usable values for tscanio you
42 should look at output of
43
44     cat /proc/ioports 
45
46 and find which regions from values possible for TSCAN1 PLD
47 is available. The tscan1 supported region locations are
48
49     { 0x100, 0x120, 0x180, 0x1A0, 0x200, 0x240, 0x280, 0x320};