summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2017-04-08 09:28:02 -0400
committerTom Rini <[email protected]>2017-04-08 09:28:02 -0400
commit089795090a627f4216c5f21eaf436ba1672cf02e (patch)
tree386074cdee0ea3fe02cc6ee8228c5adb8d7e7ea7 /cmd
parentb09ece0836e0267b86f37defec267aa3806cb03a (diff)
parentf7d4d9e52cdcff2a8fcdc80b567a41f48b61951c (diff)
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig51
-rw-r--r--cmd/mtdparts.c8
2 files changed, 59 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4b152f8222a..661ae7a98c2 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -452,9 +452,29 @@ config CMD_MMC
config CMD_NAND
bool "nand"
+ default y if NAND_SUNXI
help
NAND support.
+if CMD_NAND
+config CMD_NAND_TRIMFFS
+ bool "nand write.trimffs"
+ default y if ARCH_SUNXI
+ help
+ Allows one to skip empty pages when flashing something on a NAND.
+
+config CMD_NAND_LOCK_UNLOCK
+ bool "nand lock/unlock"
+ help
+ NAND locking support.
+
+config CMD_NAND_TORTURE
+ bool "nand torture"
+ help
+ NAND torture support.
+
+endif # CMD_NAND
+
config CMD_PART
bool "part"
select PARTITION_UUIDS
@@ -801,12 +821,33 @@ config CMD_FS_GENERIC
help
Enables filesystem commands (e.g. load, ls) that work for multiple
fs types.
+
+config CMD_MTDPARTS
+ depends on ARCH_SUNXI
+ bool "MTD partition support"
+ help
+ MTD partition support
+
+config MTDIDS_DEFAULT
+ string "Default MTD IDs"
+ depends on CMD_MTDPARTS
+ help
+ Defines a default MTD ID
+
+config MTDPARTS_DEFAULT
+ string "Default MTD partition scheme"
+ depends on CMD_MTDPARTS
+ help
+ Defines a default MTD partitioning scheme in the Linux MTD command
+ line partitions format
+
endmenu
config CMD_UBI
tristate "Enable UBI - Unsorted block images commands"
select CRC32
select MTD_UBI
+ default y if NAND_SUNXI
help
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
@@ -815,4 +856,14 @@ config CMD_UBI
(www.linux-mtd.infradead.org). Activate this option if you want
to use U-Boot UBI commands.
+config CMD_UBIFS
+ tristate "Enable UBIFS - Unsorted block images filesystem commands"
+ depends on CMD_UBI
+ select CRC32
+ select RBTREE if ARCH_SUNXI
+ select LZO if ARCH_SUNXI
+ default y if NAND_SUNXI
+ help
+ UBIFS is a file system for flash devices which works on top of UBI.
+
endmenu
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c
index b9b160dc1e2..112bf1f3e3c 100644
--- a/cmd/mtdparts.c
+++ b/cmd/mtdparts.c
@@ -110,11 +110,19 @@ DECLARE_GLOBAL_DATA_PTR;
/* default values for mtdids and mtdparts variables */
#if !defined(MTDIDS_DEFAULT)
+#ifdef CONFIG_MTDIDS_DEFAULT
+#define MTDIDS_DEFAULT CONFIG_MTDIDS_DEFAULT
+#else
#define MTDIDS_DEFAULT NULL
#endif
+#endif
#if !defined(MTDPARTS_DEFAULT)
+#ifdef CONFIG_MTDPARTS_DEFAULT
+#define MTDPARTS_DEFAULT CONFIG_MTDPARTS_DEFAULT
+#else
#define MTDPARTS_DEFAULT NULL
#endif
+#endif
#if defined(CONFIG_SYS_MTDPARTS_RUNTIME)
extern void board_mtdparts_default(const char **mtdids, const char **mtdparts);
#endif