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