diff mbox

[U-Boot] arm: socfpga: Enable ubi and ubifs support

Message ID 1450711327-3158-1-git-send-email-clsee@altera.com
State Superseded
Delegated to: Marek Vasut
Headers show

Commit Message

Chin Liang See Dec. 21, 2015, 3:22 p.m. UTC
When QSPI and NAND is enabled, the ubi and ubifs support
will be enabled too.

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Dinh Nguyen <dinh.linux@gmail.com>
Cc: Pavel Machek <pavel@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefan Roese <sr@denx.de>
---
 include/configs/socfpga_common.h | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Marek Vasut Dec. 21, 2015, 11:12 p.m. UTC | #1
On Monday, December 21, 2015 at 04:22:07 PM, Chin Liang See wrote:
> When QSPI and NAND is enabled, the ubi and ubifs support
> will be enabled too.
> 
> Signed-off-by: Chin Liang See <clsee@altera.com>
> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> Cc: Dinh Nguyen <dinh.linux@gmail.com>
> Cc: Pavel Machek <pavel@denx.de>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefan Roese <sr@denx.de>
> ---
>  include/configs/socfpga_common.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/include/configs/socfpga_common.h
> b/include/configs/socfpga_common.h index f7c0eb5..7c50100 100644
> --- a/include/configs/socfpga_common.h
> +++ b/include/configs/socfpga_common.h
> @@ -300,6 +300,15 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
>  				"-@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.

> +#endif
> +
>  /*
>   * SPL
>   *

Best regards,
Marek Vasut
Chin Liang See Dec. 22, 2015, 12:20 a.m. UTC | #2
On Tue, 2015-12-22 at 00:12 +0100, Marek Vasut wrote:
> On Monday, December 21, 2015 at 04:22:07 PM, Chin Liang See wrote:
> > When QSPI and NAND is enabled, the ubi and ubifs support
> > will be enabled too.
> > 
> > Signed-off-by: Chin Liang See <clsee@altera.com>
> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > Cc: Dinh Nguyen <dinh.linux@gmail.com>
> > Cc: Pavel Machek <pavel@denx.de>
> > Cc: Marek Vasut <marex@denx.de>
> > Cc: Stefan Roese <sr@denx.de>
> > ---
> >  include/configs/socfpga_common.h | 9 +++++++++
> >  1 file changed, 9 insertions(+)
> > 
> > diff --git a/include/configs/socfpga_common.h
> > b/include/configs/socfpga_common.h index f7c0eb5..7c50100 100644
> > --- a/include/configs/socfpga_common.h
> > +++ b/include/configs/socfpga_common.h
> > @@ -300,6 +300,15 @@ unsigned int
> > cm_get_qspi_controller_clk_hz(void);
> >  				"-@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.
> 

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

Thanks
Chin Liang

> > +#endif
> > +
> >  /*
> >   * SPL
> >   *
> 
> Best regards,
> Marek Vasut
diff mbox

Patch

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index f7c0eb5..7c50100 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -300,6 +300,15 @@  unsigned int cm_get_qspi_controller_clk_hz(void);
 				"-@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
  *