diff options
author | Romain Izard <romain.izard.pro@gmail.com> | 2016-02-10 10:56:23 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-02-12 10:27:46 -0800 |
commit | 5ddc7bd43ccc77173f149483fa27a0b8f85e09e5 (patch) | |
tree | 5a15caea44b69fa85a4b752480dd53621ed23910 /drivers/mtd/nand/atmel_nand_nfc.h | |
parent | ed4eeba7338bb123090f1c8b208f64d8184a896d (diff) | |
download | op-kernel-dev-5ddc7bd43ccc77173f149483fa27a0b8f85e09e5.zip op-kernel-dev-5ddc7bd43ccc77173f149483fa27a0b8f85e09e5.tar.gz |
mtd: atmel_nand: Support variable RB_EDGE interrupts
The NFC controller used to accelerate the NAND transfers on SAMA5 chips
can use either RB_EDGE0 or RB_EDGE3 as its ready/busy interrupt bit.
Use the controller's compatible string to select the correct bit.
For the binding:
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Wenyou Yang <Wenyou.yang@atmel.com>
Tested-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/atmel_nand_nfc.h')
-rw-r--r-- | drivers/mtd/nand/atmel_nand_nfc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/atmel_nand_nfc.h b/drivers/mtd/nand/atmel_nand_nfc.h index 4d5d262..0bbc1fa 100644 --- a/drivers/mtd/nand/atmel_nand_nfc.h +++ b/drivers/mtd/nand/atmel_nand_nfc.h @@ -42,7 +42,8 @@ #define NFC_SR_UNDEF (1 << 21) #define NFC_SR_AWB (1 << 22) #define NFC_SR_ASE (1 << 23) -#define NFC_SR_RB_EDGE (1 << 24) +#define NFC_SR_RB_EDGE0 (1 << 24) +#define NFC_SR_RB_EDGE3 (1 << 27) #define ATMEL_HSMC_NFC_IER 0x0c #define ATMEL_HSMC_NFC_IDR 0x10 |