You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
mtd: lpddr: add driver for LPDDR2-NVM PCM memories
Signed-off-by: Vincenzo Aliberti <vincenzo.aliberti@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
committed by
Brian Norris
parent
5a4c4c5eb1
commit
96ba9dd657
@@ -1,5 +1,5 @@
|
||||
menu "LPDDR flash memory drivers"
|
||||
depends on MTD!=n
|
||||
menu "LPDDR & LPDDR2 PCM memory drivers"
|
||||
depends on MTD
|
||||
|
||||
config MTD_LPDDR
|
||||
tristate "Support for LPDDR flash chips"
|
||||
@@ -17,4 +17,12 @@ config MTD_QINFO_PROBE
|
||||
Window QINFO interface, permits software to be used for entire
|
||||
families of devices. This serves similar purpose of CFI on legacy
|
||||
Flash products
|
||||
|
||||
config MTD_LPDDR2_NVM
|
||||
depends on MTD
|
||||
tristate "Support for LPDDR2-NVM flash chips"
|
||||
help
|
||||
This option enables support of PCM memories with a LPDDR2-NVM
|
||||
(Low power double data rate 2) interface.
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -4,3 +4,4 @@
|
||||
|
||||
obj-$(CONFIG_MTD_QINFO_PROBE) += qinfo_probe.o
|
||||
obj-$(CONFIG_MTD_LPDDR) += lpddr_cmds.o
|
||||
obj-$(CONFIG_MTD_LPDDR2_NVM) += lpddr2_nvm.o
|
||||
|
||||
507
drivers/mtd/lpddr/lpddr2_nvm.c
Normal file
507
drivers/mtd/lpddr/lpddr2_nvm.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -109,6 +109,7 @@ struct mtd_write_req {
|
||||
#define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE)
|
||||
#define MTD_CAP_NORFLASH (MTD_WRITEABLE | MTD_BIT_WRITEABLE)
|
||||
#define MTD_CAP_NANDFLASH (MTD_WRITEABLE)
|
||||
#define MTD_CAP_NVRAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE)
|
||||
|
||||
/* Obsolete ECC byte placement modes (used with obsolete MEMGETOOBSEL) */
|
||||
#define MTD_NANDECC_OFF 0 // Switch off ECC (Not recommended)
|
||||
|
||||
Reference in New Issue
Block a user