mtd: nand: pxa3xx: Enable devbus/nand arbiter on Armada 8K
authorChris Packham <judge.packham@gmail.com>
Sun, 9 Jul 2023 22:47:35 +0000 (10:47 +1200)
committerStefan Roese <sr@denx.de>
Thu, 13 Jul 2023 08:26:27 +0000 (10:26 +0200)
commite6719fab6cdbc93f1cbe05ae6f5b031cb7e07928
treec1ea02974a71ca9022054fd76b233f40f97ebff6
parentd4360b4ecb06824b6a87f709c23f1fe073c70e15
mtd: nand: pxa3xx: Enable devbus/nand arbiter on Armada 8K

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: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/mtd/nand/raw/pxa3xx_nand.c