Adriana Kobylak | b9e2e12 | 2017-08-09 15:04:43 -0500 | [diff] [blame^] | 1 | From 88f9b7ab5e2f99054b8f3a4173296e0cb9129067 Mon Sep 17 00:00:00 2001 |
| 2 | From: Adriana Kobylak <anoo@linux.vnet.ibm.com> |
| 3 | Date: Sun, 30 Jul 2017 16:13:43 -0500 |
| 4 | Subject: [PATCH u-boot v2016.07-aspeed-openbmc] Add MTD and UBI support to ast-g5 |
| 5 | |
| 6 | Add MTD and UBI support to the default g5 include, conditioned to |
| 7 | having MTDPARTS_DEFAULT defined. |
| 8 | |
| 9 | This allows platforms to enable this support if desired without |
| 10 | adding it by default since it increases the size of u-boot. |
| 11 | |
| 12 | Signed-off-by: Adriana Kobylak <anoo@linux.vnet.ibm.com> |
| 13 | --- |
| 14 | include/configs/ast-g5-ncsi.h | 10 ++++++++++ |
| 15 | 1 file changed, 10 insertions(+) |
| 16 | |
| 17 | diff --git a/include/configs/ast-g5-ncsi.h b/include/configs/ast-g5-ncsi.h |
| 18 | index 12d6684..b126e6e 100644 |
| 19 | --- a/include/configs/ast-g5-ncsi.h |
| 20 | +++ b/include/configs/ast-g5-ncsi.h |
| 21 | @@ -28,4 +28,14 @@ |
| 22 | |
| 23 | #define CONFIG_HW_WATCHDOG |
| 24 | |
| 25 | +/* MTD and UBI */ |
| 26 | +#ifdef MTDPARTS_DEFAULT |
| 27 | +#define CONFIG_FLASH_CFI_MTD |
| 28 | +#define CONFIG_CMD_UBI |
| 29 | +#define CONFIG_RBTREE |
| 30 | +#define CONFIG_MTD_DEVICE |
| 31 | +#define CONFIG_MTD_PARTITIONS |
| 32 | +#define CONFIG_CMD_MTDPARTS |
| 33 | +#endif |
| 34 | + |
| 35 | #endif /* __AST_G5_NCSI_CONFIG_H */ |
| 36 | -- |
| 37 | 1.8.2.2 |
| 38 | |