From 6a97589d96e56b4136c887dca107e397b6fc9a26 Mon Sep 17 00:00:00 2001 From: Vandhiadevan Karunamoorthy Date: Fri, 6 May 2022 11:56:45 +0530 Subject: [PATCH] board: arm: devsoc: Add ubi command support This changes enable UBI command support in devsoc platform. Change-Id: I2dade2f7ab232f6ae3f2a800437e1543e6a85909 Signed-off-by: Vandhiadevan Karunamoorthy --- board/devsoc/Kconfig | 3 +++ include/configs/devsoc.h | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/board/devsoc/Kconfig b/board/devsoc/Kconfig index c8d8651471..3a9570601b 100644 --- a/board/devsoc/Kconfig +++ b/board/devsoc/Kconfig @@ -17,4 +17,7 @@ config NAND_FLASH config QPIC_SERIAL bool "Enable QPIC serial NAND" + +config UBI_WRITE + bool "Enable ubi utilities" endif diff --git a/include/configs/devsoc.h b/include/configs/devsoc.h index 5ac9e803a1..ff02124096 100644 --- a/include/configs/devsoc.h +++ b/include/configs/devsoc.h @@ -268,6 +268,16 @@ extern loff_t board_env_size; #define CONFIG_QSPI_LAYOUT_SWITCH #endif +/* + * UBI write command + */ +#ifdef CONFIG_UBI_WRITE +#define CONFIG_CMD_UBI +#define CONFIG_RBTREE +#define IPQ_UBI_VOL_WRITE_SUPPORT +#endif + + #undef CONFIG_BOOTM_NETBSD #undef CONFIG_BOOTM_PLAN9 #undef CONFIG_BOOTM_RTEMS