From: Siva Durga Prasad Paladugu Date: Tue, 31 Jan 2017 09:52:42 +0000 (+0530) Subject: xilinx: zynqmp: Add support for UBIFS on QSPI flash X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dba24e4ebb096ed0bfcc00167c83f8fbfd65e6a;p=thirdparty%2Fu-boot.git xilinx: zynqmp: Add support for UBIFS on QSPI flash This patch enables support for UBIFS on top of QSPI flash. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index 5ff51593a21..e4cbb778387 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -111,6 +111,25 @@ # define CONFIG_MTD_DEVICE #endif +#if !defined(CONFIG_SPL_BUILD) +#define CONFIG_CMD_UBI +#define CONFIG_RBTREE +#define CONFIG_CMD_UBIFS +#define CONFIG_LZO + +#define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE +#define CONFIG_MTD_PARTITIONS + +#define CONFIG_MTD_UBI_WL_THRESHOLD 4096 +#define CONFIG_MTD_UBI_BEB_LIMIT 0 + +#if defined(CONFIG_ZYNQMP_QSPI) +/* SPI layer registers with MTD */ +#define CONFIG_SPI_FLASH_MTD +#endif +#endif + /* Miscellaneous configurable options */ #define CONFIG_SYS_LOAD_ADDR 0x8000000 diff --git a/include/configs/xilinx_zynqmp_mini.h b/include/configs/xilinx_zynqmp_mini.h index b2a84f02336..f66c6833ba0 100644 --- a/include/configs/xilinx_zynqmp_mini.h +++ b/include/configs/xilinx_zynqmp_mini.h @@ -45,6 +45,16 @@ #undef CONFIG_CMD_SF_TEST #undef CONFIG_FIT_VERBOSE #undef CONFIG_ZYNQ_SERIAL +#undef CONFIG_CMD_UBI +#undef CONFIG_RBTREE +#undef CONFIG_CMD_UBIFS +#undef CONFIG_LZO +#undef CONFIG_CMD_MTDPARTS +#undef CONFIG_MTD_DEVICE +#undef CONFIG_MTD_PARTITIONS +#undef CONFIG_MTD_UBI_WL_THRESHOLD +#undef CONFIG_MTD_UBI_BEB_LIMIT +#undef CONFIG_SPI_FLASH_MTD /* BOOTP options */ #undef CONFIG_BOOTP_BOOTFILESIZE