mtd: rawnand: marvell: Enable NFC/DEVBUS arbiter
authorHamish Martin <hamish.martin@alliedtelesis.co.nz>
Wed, 9 Nov 2022 23:13:25 +0000 (12:13 +1300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 17 Nov 2022 21:14:08 +0000 (22:14 +0100)
commitc13bf589e5cff0d05ce63c4832de3fab2a19c62d
tree46ddd1caae6a584812a73ed471962c5b0e48c2fc
parent075e181fba721d7af83dd1f2b65aed64703f5a40
mtd: rawnand: marvell: Enable NFC/DEVBUS arbiter

The CN9130 SoC (an ARMADA 8K type) has both a NAND Flash Controller and
a generic local bus controller (Device Bus Controller) that share common
pins.
With a board design that incorporates both a NAND flash and uses
the Device Bus (in our case for an SRAM) accessing the Device Bus device
fails unless the NfArbiterEn bit is set. Setting the bit enables
arbitration between the Device Bus and the NAND flash.
Since there is no obvious downside in enabling this for designs that
don't require arbitration, we always enable it.

Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221109231325.7714-1-hamish.martin@alliedtelesis.co.nz
drivers/mtd/nand/raw/marvell_nand.c