diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2020-10-03 23:23:20 +0300 |
---|---|---|
committer | Vignesh Raghavendra <vigneshr@ti.com> | 2020-10-06 12:36:21 +0530 |
commit | 5de15b610f785f0e188fefb707f0b19de156968a (patch) | |
tree | 599866949616d4eea84e19f9f1bb3b15ef3de514 /include/linux/mtd | |
parent | 00c9cf49a6136e0839eaa2c74fbd58c607318b2c (diff) | |
download | lwn-5de15b610f785f0e188fefb707f0b19de156968a.tar.gz lwn-5de15b610f785f0e188fefb707f0b19de156968a.zip |
mtd: hyperbus: add Renesas RPC-IF driver
Add the HyperFLash driver for the Renesas RPC-IF. It's the "front end"
driver using the "back end" APIs in the main driver to talk to the real
hardware.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/78abb851-2beb-fe7d-87e5-ce58ee877d35@gmail.com
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/hyperbus.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mtd/hyperbus.h b/include/linux/mtd/hyperbus.h index d8cb1aec826d..0ce612428aea 100644 --- a/include/linux/mtd/hyperbus.h +++ b/include/linux/mtd/hyperbus.h @@ -8,6 +8,17 @@ #include <linux/mtd/map.h> +/* HyperBus command bits */ +#define HYPERBUS_RW 0x80 /* R/W# */ +#define HYPERBUS_RW_WRITE 0 +#define HYPERBUS_RW_READ 0x80 +#define HYPERBUS_AS 0x40 /* Address Space */ +#define HYPERBUS_AS_MEM 0 +#define HYPERBUS_AS_REG 0x40 +#define HYPERBUS_BT 0x20 /* Burst Type */ +#define HYPERBUS_BT_WRAPPED 0 +#define HYPERBUS_BT_LINEAR 0x20 + enum hyperbus_memtype { HYPERFLASH, HYPERRAM, |