Hi, I got OMAP-L138 EVM and I'm running kernel v2.6.34 from khilman/linux-davinci.git and I would like to try the SPI patch. I successfully applied the patch to the driver, and now I'm trying to modify platform data in board-da850-evm.c. I added the following lines :
#include <mach/spi.h> [...] static struct davinci_spi_config spidev_cfg = { .parity_enable = 0, .intr_level = 0, .io_type = SPI_IO_TYPE_DMA, .wdelay = 0, .timer_disable = 1, }; static struct spi_board_info da850_spi_board_info[] = { [0] = { .modalias = "spidev", .controller_data = &spidev_cfg, .mode = SPI_MODE_0, .max_speed_hz = 10000000, .bus_num = 1, .chip_select = 1, }, }; [...] static __init void da850_evm_init(void) { int ret; [...] ret = davinci_cfg_reg_list(da850_spi1_pins); if (ret) pr_warning("da850_evm_init: spi1 mux setup failed: %d\n", ret); da850_init_spi1(NULL, 2, da850_spi_board_info, ARRAY_SIZE(da850_spi_board_info)); [...] } I do not see spidev1.1 in /dev. Any clue? Thank you. Regards, Nicolas On Mon, Jun 14, 2010 at 3:13 PM, Brian Niebuhr <bnieb...@efjohnson.com>wrote: > > > diff --git a/arch/arm/mach-davinci/dm365.c > > b/arch/arm/mach-davinci/dm365.c > > > index a146849..0bd9f93 100644 > > > --- a/arch/arm/mach-davinci/dm365.c > > > +++ b/arch/arm/mach-davinci/dm365.c > > > @@ -625,12 +625,6 @@ static u64 dm365_spi0_dma_mask = > > DMA_BIT_MASK(32); > > > static struct davinci_spi_platform_data dm365_spi0_pdata = { > > > .version = SPI_VERSION_1, > > > .num_chipselect = 2, > > > - .clk_internal = 1, > > > - .cs_hold = 1, > > > - .intr_level = 0, > > > - .poll_mode = 1, /* 0 -> interrupt mode 1-> > > polling mode */ > > > - .c2tdelay = 0, > > > - .t2cdelay = 0, > > > }; > > > > > > static struct resource dm365_spi0_resources[] = { > > > > This patch does not contain modifications to resource > > structure to 'or' the > > IORESOURCE_DMA_RX_CHAN, IORESOURCE_DMA_TX_CHAN and > > IORESOURCE_DMA_EVENT_Q > > flags with IORESOURCE_DMA. I don't think without this > > modification driver > > will work. > > You are right - my mistake. I will include that in the next version. I > assume you added these flags when you were testing? > > _______________________________________________ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source >
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source