]> git.ipfire.org Git - people/ms/u-boot.git/blob - tools/dtoc/fdt_select.py
d6337ea22773ad18606af5e547312df53d405a36
[people/ms/u-boot.git] / tools / dtoc / fdt_select.py
1 #!/usr/bin/python
2 #
3 # Copyright (C) 2016 Google, Inc
4 # Written by Simon Glass <sjg@chromium.org>
5 #
6 # SPDX-License-Identifier: GPL-2.0+
7 #
8
9 # Bring in the normal fdt library (which relies on libfdt)
10 import fdt
11
12 def FdtScan(fname):
13 """Returns a new Fdt object from the implementation we are using"""
14 dtb = fdt.Fdt(fname)
15 dtb.Scan()
16 return dtb