[RFC 06/12] mtd: nand: add reworked Marvell NAND controller driver
Boris Brezillon
boris.brezillon at free-electrons.com
Thu Oct 19 00:18:10 PDT 2017
On Wed, 18 Oct 2017 16:36:23 +0200
Miquel Raynal <miquel.raynal at free-electrons.com> wrote:
> +
> +enum marvell_nfc_variant {
> + MARVELL_NFC_VARIANT_PXA3XX,
> + MARVELL_NFC_VARIANT_ARMADA370,
> + MARVELL_NFC_VARIANT_ARMADA_8K,
> +};
> +
> +/*
> + * NAND controller capabilities for distinction between compatible strings
> + *
> + * @variant: Board type
> + * @max_cs_nb: Number of Chip Select lines available
> + * @max_rb_nb: Number of Ready/Busy lines available
> + * @legacy_of_bindings Indicates if DT parsing must be done using the old
> + * fashion way
> + */
> +struct marvell_nfc_caps {
> + enum marvell_nfc_variant variant;
Do you really need this variant field. It seems you're only using it to
detect if you should MUX the NAND pins using the Special Function
registers on armada8k. Maybe you should just have:
bool need_system_controller;
and set it to true for the "armada8k" compatible.
> + unsigned int max_cs_nb;
> + unsigned int max_rb_nb;
> + bool legacy_of_bindings;
> +};
> +
More information about the linux-arm-kernel
mailing list