Hi David, Hi Greg,maybe the patch I posted some time ago for making spi_coldfire work in Kernel 2.6 could serve as an inspiration, the file is attached again. In a project of mine this patch to the code beaves quite well (working stable without a problem) with two slaves, one using mtd_dataflash and an spidev on an MCF5208 processor.
Greetings Peter
spi_colfire_uclinux_fix_20080620.patch
Description: Binary data
On Oct 2, 2008, at 4:20 PM, David Wu wrote:
On Thu, 02 Oct 2008 03:17:44 -0400, Greg Ungerer <[EMAIL PROTECTED]> wrote:This file (mcfqspi.h) I believe is for the new SPI driver in drivers/spi/mcf_qspi.c and mcf_qspi.h is used for drivers/char/mcf_qspi.c. I will create a patch to removeHi David, David Wu wrote:I have attached two patches. 1 linux-2.4.x_qspi.patch:the purpose for this patch is to make user/qspitest build for both 2.4 and 2.6 kernel-- created linux-2.4.x/include/asm-m68knommu/mcf_qspi.h-- removed linux-2.4.x/drivers/char/mcf_qspi.h and linux-2.4.x/ include/asm-m68knommu/mcfqspi.h -- and added their contents into linux-2.4.x/include/asm- m68knommu/mcf_qspi.h2 user_qspitest.patch: -- requires above changes -- using MCF_BUSCLK instead of MCF_CLKYep, looks ok to me. Applied. In the linux-2.6.x sources there appears to be both: linux-2.6.x/include/asm-m68knommu/mcf_qspi.h linux-2.6.x/include/asm-m68knommu/mcfqspi.h Does that need to be cleaned up like the 2.4.x includes?linux-2.6.x/drivers/char/mcf_qspi.h and move its contents in linux-2.6.x/include/asm-m68knommu/mcf_qspi.hRight now I am working on 2.6.x patch. More patches will follow. But It seems we havea lot changes to the uClinux-dist-20080808 release for 2.6.x kernel.Regards Greg--------------------------------------------------------------------- --- Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED] Secure Computing Corporation PHONE: +61 7 3435 2888 825 Stanley St, FAX: +61 7 3891 3630 Woolloongabba, QLD, 4102, Australia WEB: http:// www.SnapGear.com_______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev-- David Wu _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev