]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: nand: lpc32xx slc: disable DMA support in SPL builds
authorVladimir Zapolskiy <vz@mleia.com>
Fri, 19 Oct 2018 00:21:18 +0000 (03:21 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 18:34:37 +0000 (13:34 -0500)
commit5ced88d7604863bc5d88fb7cc6d4f5dbe05c87df
treedcff45d46d38a7b5e7e8299dd0bf2bc76c1b0d9c
parent161b1d144406456ae8ee15866488eef3f4604b3e
mtd: nand: lpc32xx slc: disable DMA support in SPL builds

Testing and analysis shows that at the moment LPC32xx NAND SLC driver
can not get PL080 DMA backbone support in SPL build, because SPL NAND
loaders operate with subpage (ECC step to be precisely) reads, and
this is not supported in the NAND SLC + DMA + hardware ECC calculation
bundle.

The change removes a cautious build time warning and explicitly
disables DMA flavour of the driver for SPL builds, to reduce the
amound of #ifdef sections the code blocks are minimally reorganized.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
drivers/mtd/nand/raw/lpc32xx_nand_slc.c