Skip to contentSkip to conversation

arm: socfpga: Enable ubi and ubifs support

PATCH New Chin Liang See 2 participants 3 messages Dec 21, 2015 – Dec 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: Enable ubi and ubifs support

When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too.

Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_common.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/configs/socfpga_common.h +9 -0
index f7c0eb5..7c50100 100644
@@ -300,6 +300,15 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 				"- at 1536k(UBI)\0"
 #endif
 
+/* UBI and UBIFS support */
+#if defined(CONFIG_CMD_SF) || defined(CONFIG_CMD_NAND)
+#define CONFIG_CMD_UBI
+#define CONFIG_CMD_UBIFS
+#define CONFIG_RBTREE
+#define CONFIG_LZO
+#undef CONFIG_SPI_FLASH_USE_4K_SECTORS
+#endif
+
 /*
  * SPL
  *
Signature · 1 line
1.9.2.468.g3f0c02a
#1 lore raw

PATCH 1/1 arm: socfpga: Enable ubi and ubifs support

Quoted 18 lines · Chin Liang See

When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too.

Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_common.h | 9 +++++++++
 1 file changed, 9 insertions(+)
(quoted diff) +0 -0

b/include/configs/socfpga_common.h index f7c0eb5..7c50100 100644

include/configs/socfpga_common.h unsigned int cm_get_qspi_controller_clk_hz(void); · line 309

Quoted 10 lines
include/configs/socfpga_common.h +7 -0
@@ -300,6 +300,15 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 				"- at 1536k(UBI)\0"
 #endif
 
+/* UBI and UBIFS support */
+#if defined(CONFIG_CMD_SF) || defined(CONFIG_CMD_NAND)
+#define CONFIG_CMD_UBI
+#define CONFIG_CMD_UBIFS
+#define CONFIG_RBTREE
+#define CONFIG_LZO
+#undef CONFIG_SPI_FLASH_USE_4K_SECTORS

This CONFIG_SPI_FLASH_USE_4K_SECTORS is Kconfig stuff, so it should go into configs/socfpga_* , otherwise this is fine.

include/configs/socfpga_common.h unsigned int cm_get_qspi_controller_clk_hz(void); · line 314

Quoted 5 lines
include/configs/socfpga_common.h +2 -0
+#endif
+
 /*
  * SPL
  *

Best regards,
Marek Vasut

#2 lore raw

PATCH 1/1 arm: socfpga: Enable ubi and ubifs support

Quoted 23 lines · Marek Vasut
Quoted 22 lines · Chin Liang See

When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too.

Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_common.h | 9 +++++++++
 1 file changed, 9 insertions(+)
(quoted diff) +0 -0

b/include/configs/socfpga_common.h index f7c0eb5..7c50100 100644

include/configs/socfpga_common.h +0 -0
@@ -300,6 +300,15 @@ unsigned int
 cm_get_qspi_controller_clk_hz(void);
 				"- at 1536k(UBI)\0"
 #endif
 
Quoted 12 lines

include/configs/socfpga_common.h unsigned int cm_get_qspi_controller_clk_hz(void); · line 309

Quoted 7 lines
include/configs/socfpga_common.h +7 -0
+/* UBI and UBIFS support */
+#if defined(CONFIG_CMD_SF) || defined(CONFIG_CMD_NAND)
+#define CONFIG_CMD_UBI
+#define CONFIG_CMD_UBIFS
+#define CONFIG_RBTREE
+#define CONFIG_LZO
+#undef CONFIG_SPI_FLASH_USE_4K_SECTORS

This CONFIG_SPI_FLASH_USE_4K_SECTORS is Kconfig stuff, so it should go into
configs/socfpga_* , otherwise this is fine.

oh, not aware of that. Ok let me update this.

Thanks
Chin Liang

Quoted 8 lines
Quoted 5 lines
include/configs/socfpga_common.h +2 -0
+#endif
+
 /*
  * SPL

*

Best regards,
Marek Vasut