espi enable/disable issue
Michele Jr De Candia
michele.de_candia at alcatel-lucent.com
Fri Sep 16 20:28:34 EST 2011
we're using your driver for espi controller on P1015 freescale micro.
We're testing an issue trying to do multiple operation into a single
chip select "window".
We've noted that the driver disables and enables the ESPI_SPMODE[EN] bit
in order to change the "ESPI_SPMODE x" register; probably it does it
because, such as for ESPI_SPMODE register, its bits can't change when
ESPI_SPMODE[EN] is enabled (although the datasheet doesn't say nothing
about the mandatory disable operation for changing "ESPI_SPMODE x"
The enable/disable operation issues a clock spike on SPI_CLK signal.
We need to do multiple SPI read/write into a single chip-select window
without changing SPIMODE and using an external chip select gpio.
Unfortunately, the clock spike generated from the enable/disable
operation its' destructive for our data.
We've tryed to remove the "enable/disable" operation into the
fsl_espi_setup_transfer() function but just the first operation went
fine; the next operation reply all as "FF".
Seems that we can't do multiple operations into a single chip select
window without changing mode. Is it true? Is it possible to avoid this
issue (probably into the irq management)?
We're not using the last version of the driver but we've looked already
to the new driver uploaded into 3.0.4 kernel and the "Enable/Disable"
operation is still there.
Thank you in advance,
Michele De Candia
More information about the Linuxppc-dev