[Bsp] Fix missing spiconfig set in dm365

This commit is contained in:
Peter Harliman Liem 2016-11-08 22:12:20 +08:00
parent e1ae4706cd
commit fdfa909853
1 changed files with 3 additions and 0 deletions

View File

@ -320,6 +320,9 @@ static int davinci_spi_setup_transfer(struct rt_spi_device *spi,
u8 chip_select = (u8)spi->parent.user_data;
dspi = spi->bus->parent.user_data;
spicfg = (struct davinci_spi_config *)dspi->controller_data;
if (!spicfg)
spicfg = &davinci_spi_default_cfg;
bits_per_word = cfg->data_width;
hz = cfg->max_hz;