diff options
author | Michal Orzel | 2022-09-07 13:08:51 +0200 |
---|---|---|
committer | Stefano Stabellini | 2022-09-07 16:36:33 -0700 |
commit | 22075f787417662d5f5c74af3fb85aea61dbb86a (patch) | |
tree | c79731dbd3d0f25c4467dccc311f39031c82eee6 /scripts/uboot-script-gen | |
parent | 648a85038f7673d028cd9d345db9192d1cb62915 (diff) |
scripts/common: Introduce phandle_next and get_next_phandle()
When dealing with device trees, we need to have a solution to add
custom phandles to the nodes we create/modify. Add a global variable
phandle_next to act as a countdown counter starting with the highest
valid phandle value 0xfffffffe. Add a new function get_next_phandle
to get a value of the next available phandle and set it to a variable
whose name is passed as a first argument. The global counter will be
decremented with each call to this function.
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Diffstat (limited to 'scripts/uboot-script-gen')
0 files changed, 0 insertions, 0 deletions