Compare commits
8 Commits
420dd4d414
...
09003224fd
Author | SHA1 | Date | |
---|---|---|---|
09003224fd | |||
1f6deec3fb | |||
ae8a5eb664 | |||
16cd0aaa5a | |||
4d0ab5bc18 | |||
1b2fbe42f9 | |||
7d933b0569 | |||
76dd032c7a |
12
README.md
12
README.md
@ -7,11 +7,17 @@ Files
|
|||||||
* Kconfig : Config file for menuconfig etc.
|
* Kconfig : Config file for menuconfig etc.
|
||||||
* Makefile : Makefile for Kernel Build
|
* Makefile : Makefile for Kernel Build
|
||||||
|
|
||||||
|
Patch Kernel
|
||||||
|
------------
|
||||||
|
* Apply the specific commits on your kernel source tree
|
||||||
|
* Or copy the newest m_can.c to your kernel source tree.
|
||||||
|
|
||||||
Compile
|
Compile
|
||||||
-------
|
-------
|
||||||
compile as normal Kernel Driver.
|
compile as normal Kernel Driver.
|
||||||
* Driver can be compiled as an externel module.
|
* Driver can be compiled as an externel module.
|
||||||
* Driver can be compiled statically into the kernel.
|
* Driver can be compiled statically into the kernel.
|
||||||
|
* selectable with menuconfig
|
||||||
|
|
||||||
|
|
||||||
Device Tree
|
Device Tree
|
||||||
@ -20,6 +26,7 @@ The following code shows a basic device tree for an M_CAN node:
|
|||||||
|
|
||||||
```
|
```
|
||||||
/* M_CAN Device Tree Nodes */
|
/* M_CAN Device Tree Nodes */
|
||||||
|
/* Example clocks */
|
||||||
hclk: hclk {
|
hclk: hclk {
|
||||||
compatible = "fixed-clock";
|
compatible = "fixed-clock";
|
||||||
#clock-cells = < 0 >;
|
#clock-cells = < 0 >;
|
||||||
@ -30,12 +37,13 @@ cclk: cclk {
|
|||||||
#clock-cells = < 0 >;
|
#clock-cells = < 0 >;
|
||||||
clock-frequency = <40000000>;
|
clock-frequency = <40000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* M_CAN device */
|
||||||
mcan0: can@0xff240000 {
|
mcan0: can@0xff240000 {
|
||||||
compatible = "bosch,m_can-3.2.1";
|
compatible = "bosch,m_can";
|
||||||
reg = <0xff240000 0x200>,<0xff260000 0x4000>;
|
reg = <0xff240000 0x200>,<0xff260000 0x4000>;
|
||||||
reg-names = "m_can", "message_ram";
|
reg-names = "m_can", "message_ram";
|
||||||
interrupt-parent = <&intc>;
|
interrupt-parent = <&intc>;
|
||||||
/* Shared Interrupt for every M_CAN */
|
|
||||||
interrupts = <0x0 40 0x4>;
|
interrupts = <0x0 40 0x4>;
|
||||||
interrupt-names = "int0";
|
interrupt-names = "int0";
|
||||||
clocks = <&hclk>, <&cclk>;
|
clocks = <&hclk>, <&cclk>;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user