2008-11-28 09:11:48 SPI LSBF mode under uClinux-dist-2008R1.5-RC3 (on CM-BF537E)
Aleksey Anufrikov (UKRAINE)
Message: 65964
Hi all
I have a question about setting SPI mode in new kernel. In some reason strings like ".ctl_reg = 0x????" were removed from board description files in uClinux-dist-2008R1.5-RC3 (in comparison to uClinux-dist-2007R1-RC3 files). How can i set LSBF mode now? When i try to add ".ctl_reg = 0x1320" into structure spi_adc_chip_info the kernel reboots or hangs up on every read / write attempt.
my board is CM-BF537E
kernel is uClinux-dist-2008R1.5-RC3
config files, test program and test results in attachment
cm_bf537.c
config
spi_test_default.txt
spi_test_LSBF.txt
sbt.c
QuoteReplyEditDelete
2008-11-28 15:40:10 Re: SPI LSBF mode under uClinux-dist-2008R1.5-RC3 (on CM-BF537E)
Mike Frysinger (UNITED STATES)
Message: 65987
please read:
http://docs.blackfin.uclinux.org/doku.php?id=spi
ctl_reg should not be set ... use the common SPI framework settings as defined in include/linux/spi.h
QuoteReplyEditDelete
2008-12-02 05:56:39 Re: SPI LSBF mode under uClinux-dist-2008R1.5-RC3 (on CM-BF537E)
Aleksey Anufrikov (UKRAINE)
Message: 66151
Thanks, Mike
This problem is solved