[U-Boot] [PATCH 2/2] spi: mxc_spi: i.MX6 DL/S have only 4 eCSPI controller

Markus Niebel list-09_u-boot at tqsc.de
Mon Feb 10 09:27:36 CET 2014


From: Markus Niebel <Markus.Niebel at tqs.de>

The dual lite and solo variant have only 4 SPI controller.
respect this in the MXC_SPI_BASE_ADRESSES macro

Signed-off-by: Markus Niebel <Markus.Niebel at tqs.de>
---
 arch/arm/include/asm/arch-mx6/imx-regs.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h
index 79842bf..73c2bc9 100644
--- a/arch/arm/include/asm/arch-mx6/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx6/imx-regs.h
@@ -411,7 +411,7 @@ struct cspi_regs {
 #define MXC_CSPICON_SSPOL	12 /* SS polarity */
 #define MXC_CSPICON_DCTL	16 /* inactive state of MOSI */
 #define MXC_CSPICON_CTL		20 /* inactive state of SCLK */
-#ifdef CONFIG_MX6SL
+#if defined(CONFIG_MX6SL) || defined(CONFIG_MX6DL)
 #define MXC_SPI_BASE_ADDRESSES \
 	ECSPI1_BASE_ADDR, \
 	ECSPI2_BASE_ADDR, \
-- 
1.7.9.5



More information about the U-Boot mailing list