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