From: Marek Vasut Date: Fri, 1 Jun 2018 09:42:50 +0200 Subject: [U-Boot] [PATCH 1/8] ARM: rmobile: Enable MTD partitioning on Gen2 with SF Message-ID: <20180601074257.311-1-marek.vasut+renesas@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Enable MTD partitioning support on Gen2 boards with SPI NORs. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/rcar-gen2-common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/configs/rcar-gen2-common.h b/include/configs/rcar-gen2-common.h index eadf5594c8..231c4ecea4 100644 --- a/include/configs/rcar-gen2-common.h +++ b/include/configs/rcar-gen2-common.h @@ -51,4 +51,12 @@ #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) #define CONFIG_ENV_SIZE_REDUND (CONFIG_SYS_MONITOR_LEN) +/* SF MTD */ +#if defined(CONFIG_SPI_FLASH_MTD) && !defined(CONFIG_SPL_BUILD) +#define CONFIG_MTD_DEVICE +#define CONFIG_MTD_PARTITIONS +#else +#undef CONFIG_SPI_FLASH_MTD +#endif + #endif /* __RCAR_GEN2_COMMON_H */ -- 2.16.2