mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
ARM: uniphier: support fdt_fixup_mtdparts
Propagate the "mtdparts" environment variable to the DT passed in to OS. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
65fce76301
commit
bb04d2ec4d
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue