sunxi: Enable UBI and NAND support
Enable the NAND and UBI support in the configuration header so that we can (finally) use it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Jagan Teki <jagan@openedev.com>
This commit is contained in:

committed by
Jagan Teki

parent
adc706b2fe
commit
d482a8dfba
@@ -452,12 +452,14 @@ config CMD_MMC
|
|||||||
|
|
||||||
config CMD_NAND
|
config CMD_NAND
|
||||||
bool "nand"
|
bool "nand"
|
||||||
|
default y if ARCH_SUNXI
|
||||||
help
|
help
|
||||||
NAND support.
|
NAND support.
|
||||||
|
|
||||||
if CMD_NAND
|
if CMD_NAND
|
||||||
config CMD_NAND_TRIMFFS
|
config CMD_NAND_TRIMFFS
|
||||||
bool "nand write.trimffs"
|
bool "nand write.trimffs"
|
||||||
|
default y if ARCH_SUNXI
|
||||||
help
|
help
|
||||||
Allows one to skip empty pages when flashing something on a NAND.
|
Allows one to skip empty pages when flashing something on a NAND.
|
||||||
|
|
||||||
@@ -845,6 +847,7 @@ config CMD_UBI
|
|||||||
tristate "Enable UBI - Unsorted block images commands"
|
tristate "Enable UBI - Unsorted block images commands"
|
||||||
select CRC32
|
select CRC32
|
||||||
select MTD_UBI
|
select MTD_UBI
|
||||||
|
default y if ARCH_SUNXI
|
||||||
help
|
help
|
||||||
UBI is a software layer above MTD layer which admits use of LVM-like
|
UBI is a software layer above MTD layer which admits use of LVM-like
|
||||||
logical volumes on top of MTD devices, hides some complexities of
|
logical volumes on top of MTD devices, hides some complexities of
|
||||||
@@ -858,6 +861,7 @@ config CMD_UBIFS
|
|||||||
select CRC32
|
select CRC32
|
||||||
select RBTREE if ARCH_SUNXI
|
select RBTREE if ARCH_SUNXI
|
||||||
select LZO if ARCH_SUNXI
|
select LZO if ARCH_SUNXI
|
||||||
|
default y if ARCH_SUNXI
|
||||||
help
|
help
|
||||||
UBIFS is a file system for flash devices which works on top of UBI.
|
UBIFS is a file system for flash devices which works on top of UBI.
|
||||||
|
|
||||||
|
@@ -125,6 +125,9 @@
|
|||||||
#define CONFIG_SYS_NAND_MAX_ECCPOS 1664
|
#define CONFIG_SYS_NAND_MAX_ECCPOS 1664
|
||||||
#define CONFIG_SYS_NAND_ONFI_DETECTION
|
#define CONFIG_SYS_NAND_ONFI_DETECTION
|
||||||
#define CONFIG_SYS_MAX_NAND_DEVICE 8
|
#define CONFIG_SYS_MAX_NAND_DEVICE 8
|
||||||
|
|
||||||
|
#define CONFIG_MTD_DEVICE
|
||||||
|
#define CONFIG_MTD_PARTITIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_SPI_SUNXI
|
#ifdef CONFIG_SPL_SPI_SUNXI
|
||||||
|
Reference in New Issue
Block a user