From bd3ad955a3cc8367062de9abdc193070874f403e Mon Sep 17 00:00:00 2001 From: Jianqun Xu Date: Thu, 14 Jan 2021 14:43:48 +0800 Subject: [PATCH] scripts/dtc: phandle index start from 0x1000000 Change-Id: I1141545e4592bfebf812f2477d1851d178ee8bd8 Signed-off-by: Jianqun Xu --- scripts/dtc/livetree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dtc/livetree.c b/scripts/dtc/livetree.c index 6846ad2fd6..ed9d2cc117 100644 --- a/scripts/dtc/livetree.c +++ b/scripts/dtc/livetree.c @@ -569,7 +569,7 @@ struct node *get_node_by_ref(struct node *tree, const char *ref) cell_t get_node_phandle(struct node *root, struct node *node) { - static cell_t phandle = 1; /* FIXME: ick, static local */ + static cell_t phandle = 0x10000000; /* FIXME: ick, static local */ if ((node->phandle != 0) && (node->phandle != -1)) return node->phandle;