On 10:37 Fri 06 Feb     , Guennadi Liakhovetski wrote:
> Some SPI devices have special requirements on chip-select handling.
> With this patch we can use a GPIO as a chip-select and strictly follow
> the SPI_XFER_BEGIN and SPI_XFER_END flags.
> 
> Signed-off-by: Guennadi Liakhovetski <l...@denx.de>
> ---

> 
> Changes since v1: long lines split, mx31_gpio_* calls now also defined if 
> CONFIG_MX31_GPIO is not defined (see patch 2/9), '!!' removed.
> Changes since v2: added braces in a multiline if, switched to 
> ARRAY_SIZE().
> 
> @@ -144,11 +156,35 @@ struct spi_slave *spi_setup_slave(unsigned int bus, 
> unsigned int cs,
>  {
Personnaly I tking we main need to replace the unsigned int cs by a callback
or add one to allow us to use other gpio or I2C extender with having to this
the spi driver

Best Regards,
J.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to