04-26-2011 02:18 AM
Dear all,
Kindly help me.
I have connected my own peripheral to PLB slave bus.
Kindly help me to
how to access my own peripheral on linux platform
thanx in advance
04-26-2011 03:16 PM
That's a complicated question - it depends a lot on what your custom peripheral does, but typically you'll need to create a driver to tell the Linux kernel how to talk to your peripheral. You might want to take a look at this online reference book; there's a lot of information in there to help you get started.
Cheers,
Rob
04-26-2011 03:26 PM
I agree with Rob.. The one thing you'll find missing from the book is information on Open Firmware/Device tree and how to add the support to your driver. Your best bet is to study the OF documentation in the kernel docs, and look at an existing microblaze/powerpc driver to see how the OF/device tree support was implemented.
Another option for simple devices is writing a user-space driver. You can search the wiki and this forum for examples of how to do this. Many time this is all you need, especially if you just need to setup some control registers and monitor status.
Terry
04-26-2011 10:43 PM
Dear Rob
Thanx for quick reply
I will go through the LDD3
and also the existing driveres developed for xilinx devices in linux source tree