Problem: I need to bring up the SJA 1000 CAN controller on the [Colibri Evaluation Carrier Board v2.1][1] (with Colibri T20 (NVidia Tegra)module inserted into it, which has ARM cpu). toradex.com/Products/Colibri/Modules/Colibri-T20
Research: On the Toradex website they write that subject chip is "connected to GMI bus" (which could be "General Memory Interface"). I couldn't find anything about "GMI bus" in google, and I assume this is the same as "platform bus".
Is this correct?
Ok, if so, we have the following: there are drivers in Linux
`kernel/drivers/net/can/sja1000/sja1000.c` & `sja1000_platform.c`
which should be what I need, in addition to `can` and `can-dev` drivers. But they can't be started (not even probed), because the kernel doesn't know about subject platform device.
All "platform" devices are added with their resources from the "board driver" `kernel/arch/arm/mach-tegra/board-colibri_t20.c` via `platform_add_devices() func`. The problem is that it initializes all the devices from Colibri T20 and not the CAN chip which is on Eval Board.
So finally, if all above is correct, to bring up the drivers, I need to create a "platform_device" structure with the array of "resource" structures inside it with exact numbers of IRQs and memory addresses. There is the controller's datasheet[2], as well as board's datasheet[1], people told it should be used. Please help me work out how to use it; which good articles/books to read for this.
Please help, I'm really stuck!
[1]:
http://developer.toradex.com/files/t..._Datasheet.pdf
[2]:
http://www.nxp.com/documents/data_sheet/SJA1000.pdf