From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 24 Feb 2009 14:40:27 +0100 Subject: [U-Boot] [PATCH 3/9 v4] i.MX31: support GPIO as a chip-select in the mxc_spi driver In-Reply-To: References: Message-ID: <200902241440.27384.agust@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 13 February 2009 09:26:40 am 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 > --- > > 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(). > Changes since v3: moved GPIO chipselect initialisation into a separate > function, as suggested by Wolfgang Denk > > drivers/spi/mxc_spi.c | 64 > ++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 56 > insertions(+), 8 deletions(-) Applied to u-boot-video/master. Thanks, Anatolij