Skip to content
Snippets Groups Projects
Commit bb04d2ec authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

ARM: uniphier: support fdt_fixup_mtdparts


Propagate the "mtdparts" environment variable to the DT passed
in to OS.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 65fce763
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@
#include <common.h>
#include <fdt_support.h>
#include <fdtdec.h>
#include <jffs2/load_kernel.h>
#include <mtd_node.h>
#include <linux/kernel.h>
#include <linux/printk.h>
......@@ -46,8 +48,14 @@ static int uniphier_ld20_fdt_mem_rsv(void *fdt, bd_t *bd)
int ft_board_setup(void *fdt, bd_t *bd)
{
static const struct node_info nodes[] = {
{ "socionext,uniphier-denali-nand-v5a", MTD_DEV_TYPE_NAND },
{ "socionext,uniphier-denali-nand-v5b", MTD_DEV_TYPE_NAND },
};
int ret;
fdt_fixup_mtdparts(fdt, nodes, ARRAY_SIZE(nodes));
ret = uniphier_ld20_fdt_mem_rsv(fdt, bd);
if (ret)
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment