mtd: nand_mrvl_nfc: Add support for Marvell Armada 370/XP
Marvell PXA3xx and Armada 370/XP share the same NAND controller IP with some minor differences. With support for controller IP v2, now allow to build the driver on Armada 370/XP. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Tested-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7c6e711ef8
commit
131d5b5aef
2 changed files with 12 additions and 3 deletions
|
@ -99,10 +99,11 @@ config NAND_ORION
|
|||
|
||||
config NAND_MRVL_NFC
|
||||
bool
|
||||
prompt "Marvell NAND driver"
|
||||
depends on ARCH_PXA3XX
|
||||
prompt "Marvell PXA3xx NAND driver"
|
||||
depends on ARCH_ARMADA_370 || ARCH_ARMADA_XP || ARCH_PXA3XX
|
||||
help
|
||||
Support for the PXA3xx NAND controller, present in pxa3xx SoCs.
|
||||
Support for the PXA3xx NAND controller, present in Armada 370/XP and
|
||||
PXA3xx SoCs.
|
||||
|
||||
config NAND_ATMEL
|
||||
bool
|
||||
|
|
|
@ -285,11 +285,19 @@ static const struct mrvl_nand_variant pxa3xx_variant = {
|
|||
.hwflags = 0,
|
||||
};
|
||||
|
||||
static const struct mrvl_nand_variant armada370_variant = {
|
||||
.hwflags = HWFLAGS_ECC_BCH | HWFLAGS_HAS_NDCB3,
|
||||
};
|
||||
|
||||
static struct of_device_id mrvl_nand_dt_ids[] = {
|
||||
{
|
||||
.compatible = "marvell,pxa3xx-nand",
|
||||
.data = &pxa3xx_variant,
|
||||
},
|
||||
{
|
||||
.compatible = "marvell,armada370-nand",
|
||||
.data = &armada370_variant,
|
||||
},
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue