diff options
author | Marek Vasut | 2018-05-31 14:42:12 +0200 |
---|---|---|
committer | Marek Vasut | 2018-06-01 09:42:12 +0200 |
commit | 20fccb944b987877b5a372c0d0641cf7aafff066 (patch) | |
tree | 0010358355d44e9a8ee96c16c07177133067264a /include | |
parent | c3c863880479edeb5b08226e622d13c91326e4a7 (diff) |
ARM: rmobile: Enable MTD partitioning on Gen2 with SF
Enable MTD partitioning support on Gen2 boards with SPI NORs.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/rcar-gen2-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/rcar-gen2-common.h b/include/configs/rcar-gen2-common.h index eadf5594c84..231c4ecea45 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 */ |