]> Git Repo - qemu.git/commit - device_tree.h
dt: add helper for phandle allocation
authorAlexander Graf <[email protected]>
Thu, 17 May 2012 14:58:55 +0000 (16:58 +0200)
committerAlexander Graf <[email protected]>
Sat, 23 Jun 2012 23:04:46 +0000 (01:04 +0200)
commit3601b572820ee5f3676ab24c068a4e011b72236d
treef8938085fbe4531baca75a487b6ff76c59b2f539
parentce36252cc1711a5e222ed68e72235088aec2529d
dt: add helper for phandle allocation

Phandle references work by having 2 pieces:

  - a "phandle" 1-cell property in the device tree node
  - a reference to the same value in a property we want to point
    to the other node

To generate the 1-cell property, we need an allocation mechanism that
gives us a unique number space. This patch adds an allocator for these
properties.

Signed-off-by: Alexander Graf <[email protected]>
device_tree.c
device_tree.h
This page took 0.024539 seconds and 4 git commands to generate.