diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-04 10:22:24 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-04 16:09:13 +0800 |
commit | 384e1c1f527d732a863cef360f5da419a728b1d5 (patch) | |
tree | 05c02633ebbf80b5f7be5b14848ddbf1eca6ab2f | |
parent | 13d2079a2d74797fe665ccf94109b06aaccf1b45 (diff) | |
download | u-boot-imx-384e1c1f527d732a863cef360f5da419a728b1d5.zip u-boot-imx-384e1c1f527d732a863cef360f5da419a728b1d5.tar.gz u-boot-imx-384e1c1f527d732a863cef360f5da419a728b1d5.tar.bz2 |
MLK-12492-2 ecspi: Add ecspi fuse module check only for MX6rel_imx_4.1.15_1.0.0_ga
Need the CONFIG_MX6 for using the mx6_ecspi_fused funtion, otherwise will
break build for other platforms like MX7.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 9433975cef6a5aef3ff4709ebe68ba97f78740f0)
-rw-r--r-- | drivers/spi/mxc_spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index 7d84865..04d280f 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -414,10 +414,12 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, return NULL; } +#ifdef CONFIG_MX6 if (mx6_ecspi_fused(spi_bases[bus])) { printf("ECSPI@0x%lx is fused, disable it\n", spi_bases[bus]); return NULL; } +#endif mxcs = spi_alloc_slave(struct mxc_spi_slave, bus, cs); if (!mxcs) { |