[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] DCR support
Hi,
Since uClinux is MMU-less, you can write to the same addresses that you
would in a stand-alone microblaze program. We have several peripherals
that we do that with. It is our opinion that in the embedded world this
is OK.
This does break the spirit of a user-space linux app. If you want to
stay true to that spirit, you would probably need to write a linux
driver to interface the peripheral.
We are using uClinux 2.4, not Petalinux - so the procedure to follow to
get a C-style address may be different, but what we do is include the
following in our code:
#include <linux/autoconf.h> // board auto-config parms passed from
Xilinx XPS
Of course you can always #define the address yourself since you know
from XPS what addresses were assigned to your peripherals.
Hope this helps,
Rod Campbell
Winston wrote:
Hi all,
I’ve used a DCR in my project. But now I have some difficulty in using
it with uclinux.
I hope to send a word to DCR peripheral register from CPU. In Xilinx
kernel, this can easily be done by simply writing to physical address
of the register. But how can I do that with uclinux? I didn’t find any
device which looks like DCR peripheral. If it is similar with Xilinx
kernel, how can I know its physical address?
Please help me. Thank you a lot.
Regards,
X. Y. Zhu
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/