Commit 384e1c1f527d732a863cef360f5da419a728b1d5
1 parent
13d2079a2d
Exists in
smarc-imx_v2015.04_4.1.15_1.0.0_ga
and in
1 other branch
MLK-12492-2 ecspi: Add ecspi fuse module check only for MX6
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)
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
drivers/spi/mxc_spi.c
... | ... | @@ -414,10 +414,12 @@ |
414 | 414 | return NULL; |
415 | 415 | } |
416 | 416 | |
417 | +#ifdef CONFIG_MX6 | |
417 | 418 | if (mx6_ecspi_fused(spi_bases[bus])) { |
418 | 419 | printf("ECSPI@0x%lx is fused, disable it\n", spi_bases[bus]); |
419 | 420 | return NULL; |
420 | 421 | } |
422 | +#endif | |
421 | 423 | |
422 | 424 | mxcs = spi_alloc_slave(struct mxc_spi_slave, bus, cs); |
423 | 425 | if (!mxcs) { |