Hi,
to implement custom peripherals in bare metal is no problem, but what if one want to implement a peripheral as a driver for the embedded linux?
I'll be grateful for any help,
Gerd
Hi,
to implement custom peripherals in bare metal is no problem, but what if one want to implement a peripheral as a driver for the embedded linux?
I'll be grateful for any help,
Gerd
This way has worked for me,
Add your peripherals in the .dts-file, e.g. for my motor-controller block I add (under the AMBA/AXI-bus depending on which release):
motor_control_bdc_6wheels@40000000{
compatible = "digster,motor-control-bdc-6wheels-1.00.a";
reg = <0x40000000 0x1000>;
};
where the reg-parameter specifies the <baseAddress memorySpace>.
For writing the actual driver, I used http://wiki.xilinx.com/gpio-user-space-app to create a user-space driver. Not optimal but still... More information is available in other topics about ioremap() e.g.
This way has worked for me,
Add your peripherals in the .dts-file, e.g. for my motor-controller block I add (under the AMBA/AXI-bus depending on which release):
motor_control_bdc_6wheels@40000000{
compatible = "digster,motor-control-bdc-6wheels-1.00.a";
reg = <0x40000000 0x1000>;
};
where the reg-parameter specifies the <baseAddress memorySpace>.
For writing the actual driver, I used http://wiki.xilinx.com/gpio-user-space-app to create a user-space driver. Not optimal but still... More information is available in other topics about ioremap() e.g.