diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2017-04-01 17:17:57 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-08 11:57:27 -0400 |
commit | 3607e0f86f592a649948c940fd7acc4f51f1e000 (patch) | |
tree | 3c02c65abddfb6a4645dc2f6635ce146605486c9 /board/isee/igep003x | |
parent | a96c08f509da6c2ba38abe7dd6f8f092df1e0ca5 (diff) |
igep003x: UBIize
Convert IGEP board to use UBI volumes for U-Boot, its environment and
kernel. With exception of first four sectors read by SoC BootROM whole
NAND is UBI managed.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Reviewed-by: Heiko Schocher<hs@denx.de>
Tested-by: Pau Pajuelo <ppajuel@gmail.com>
Diffstat (limited to 'board/isee/igep003x')
-rw-r--r-- | board/isee/igep003x/board.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board/isee/igep003x/board.c b/board/isee/igep003x/board.c index 5fea7ffaef..9abb4824b5 100644 --- a/board/isee/igep003x/board.c +++ b/board/isee/igep003x/board.c @@ -23,6 +23,9 @@ #include <i2c.h> #include <miiphy.h> #include <cpsw.h> +#include <fdt_support.h> +#include <mtd_node.h> +#include <jffs2/load_kernel.h> #include "board.h" DECLARE_GLOBAL_DATA_PTR; @@ -104,6 +107,20 @@ int board_init(void) return 0; } +#ifdef CONFIG_OF_BOARD_SETUP +int ft_board_setup(void *blob, bd_t *bd) +{ +#ifdef CONFIG_FDT_FIXUP_PARTITIONS + static struct node_info nodes[] = { + { "ti,omap2-nand", MTD_DEV_TYPE_NAND, }, + }; + + fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes)); +#endif + return 0; +} +#endif + #if defined(CONFIG_DRIVER_TI_CPSW) static void cpsw_control(int enabled) { |