[LEDE-DEV] RT5350 spi half duplex?
giu.lippolis at gmail.com
Wed Jan 18 12:10:54 PST 2017
Im experimenting the spi interface on a RT5350 target.
Its spi driver set the interface as half duplex
master->dev.of_node = pdev->dev.of_node;
master->mode_bits = RT2880_SPI_MODE_BITS;
master->bits_per_word_mask = SPI_BPW_MASK(8);
master->min_speed_hz = clk_get_rate(clk) / 128;
master->max_speed_hz = clk_get_rate(clk) / 2;
master->flags = SPI_MASTER_HALF_DUPLEX;
master->setup = rt2880_spi_setup;
master->prepare_message = rt2880_spi_prepare_message;
master->set_cs = rt2880_spi_set_cs;
master->transfer_one = rt2880_spi_transfer_one,
but from the datasheet it seems that the device is full duplex capable.
There are some reason to set the driver in this way?
More information about the Lede-dev