Skip to content
Snippets Groups Projects
Commit 9433975c authored by Ye Li's avatar Ye Li
Browse files

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: default avatarYe Li <ye.li@nxp.com>
parent 8ada9177
No related branches found
Tags m6.0.1_1.0.0-ga
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment