[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Building an SPI Driver
Hi Doug,
Doug Gibbs wrote:
Thanks for any help in advance.
I used the PPC SPI driver source found here:
http://rsync.ppckernel.org/modules/linuxppc-2.4/drivers/char/xilinx_spi/
I modified the make and configuration files to get this to build. Now
I am running into compiler errors involving the xparameters.h file
that the ppc driver uses.
There are other messages on the mailing list about editing
/include/asm-microblaze/xparameters.h.
Would it be easier to copy the xparameters.h generated by the EDK into
the kernel? There is no clear answer in the mailing list. The
recommendation in one posting to change the MHS file before changing
the xparameters.h has made me nervous.
No - xparameters.h is bad. Remove any #include references, and change
them to ensure that <linux/autoconf.h> is included instead.
Then change all XPAR_.... to equivalent CONFIG_XILINX_.... definitions.
you'll see these in the autoconf.h file for your SPI peripheral. It
will be something like
CONFIG_XILINX_SPI_0_BASEADDR... and so on.
The IRQ line will be CONFIG_XILINX_SPI_0_IRQ
Regards,
John
___________________________
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/