mtd: nand: pxa3xx: enable NAND controller if the SoC needs it
authorShmuel Hazan <shmuel.h@siklu.com>
Thu, 29 Oct 2020 06:52:20 +0000 (08:52 +0200)
committerStefan Roese <sr@denx.de>
Thu, 29 Oct 2020 11:31:38 +0000 (12:31 +0100)
commitaaedaaae63921c7edefd0f14ec5f1921a7641454
treea2e539f8c25ed84c7ffe29808825914ee7fcfc01
parent6d1edab44ce261f1500ba20b5587ffa8a6779d39
mtd: nand: pxa3xx: enable NAND controller if the SoC needs it

Based on Linux kernel commit fc256f5789cb ("mtd: nand: pxa3xx: enable
NAND controller if the SoC needs it"). This commit adds support for the
Armada 8040 nand controller.

The kernel commit says this:

    Marvell recent SoCs like A7k/A8k do not boot with NAND flash
    controller activated by default. Enabling the controller is a matter
    of writing in a system controller register that may also be used for
    other NAND related choices.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Shmuel Hazan <shmuel.h@siklu.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/pxa3xx_nand.c