Hi,
I tested the new driver on a da830 based board and 2.6.37-rc2 based
kernel (head of the master branch of
http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git).
It works fine on spi0 with direct CS for a flash
It works fine on spi1 with GPIO chip select.
The only little problem I found was with MMC_SPI driver that complained
about the mode_bits - it checks if the driver supports what in needs.
After having set them up in the davinci_spi.c I got rid of that problem
- still does not work :(
Find below my patch. I just added all mode flags the driver used - not
sure if right.
Regards,
Andreas
[FIX][SPI] set the mode_bits - selected all I found in the driver
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -805,6 +805,8 @@ static int davinci_spi_probe(struct platform_device
*pdev)
ret = -ENOMEM;
goto err;
}
+ /* the spi->mode bits understood by this driver: */
+ master->mode_bits = SPI_LSB_FIRST | SPI_CPOL | SPI_CPHA |
SPI_CS_HIGH | SPI_NO_CS | SPI_READY | SPI_LOOP;
dev_set_drvdata(&pdev->dev, master);
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source