diff options
author | Simon Glass <sjg@chromium.org> | 2011-10-24 19:15:32 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-26 21:39:40 +0200 |
commit | b5220bc6ed6e6a197adf4926958dca1df4b420b0 (patch) | |
tree | 196fdefeb08bdf98a12ceea89ac29424ecfc47f6 /lib/Makefile | |
parent | 2c0f79e44bfdc592913b96aeeb7ecc5acca6eb37 (diff) | |
download | u-boot-imx-b5220bc6ed6e6a197adf4926958dca1df4b420b0.zip u-boot-imx-b5220bc6ed6e6a197adf4926958dca1df4b420b0.tar.gz u-boot-imx-b5220bc6ed6e6a197adf4926958dca1df4b420b0.tar.bz2 |
fdt: add decode helper library
This library provides useful functions to drivers which want to use
the fdt to control their operation. Functions are provided to:
- look up and enumerate a device type (for example assigning i2c bus 0,
i2c bus 1, etc.)
- decode basic types from the fdt, like addresses and integers
While this library is not strictly necessary, it helps to minimise the
changes to a driver, in order to make it work under fdt control. Less
code is required, and so the barrier to switch drivers over is lower.
Additional functions to read arrays and GPIOs could be made available
here also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index 075bb8c..54708c2 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -38,6 +38,7 @@ COBJS-y += crc16.o COBJS-y += crc32.o COBJS-y += display_options.o COBJS-y += errno.o +COBJS-$(CONFIG_OF_CONTROL) += fdtdec.o COBJS-$(CONFIG_GZIP) += gunzip.o COBJS-y += hashtable.o COBJS-$(CONFIG_LMB) += lmb.o |