summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-12 18:02:08 -0700
committerSimon Glass <sjg@chromium.org>2015-01-29 17:09:53 -0700
commit73845350b6281a7afeeb279475e6eb613d7a89f9 (patch)
treeed256f2bb68fc6fca814fa24d059058a14e7de62 /Makefile
parentf9a4c2da72d04e13b05deecb800f232d2948eb85 (diff)
downloadu-boot-73845350b6281a7afeeb279475e6eb613d7a89f9.tar.gz
u-boot-73845350b6281a7afeeb279475e6eb613d7a89f9.tar.bz2
u-boot-73845350b6281a7afeeb279475e6eb613d7a89f9.zip
dm: i2c: Add a compatbility layer
For boards which use multiple I2C devices, or for SOCs which support multiple boards, we might want to convert these to driver model at different times. At present this is difficult because we need to either use CONFIG_DM_I2C for a board or not. Add a compatibility layer which implements the old API, thus allowing a board to move to driver model for I2C without requiring that everything it uses is moved in the same commit. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ea5ae8fac7..9b406c8447 100644
--- a/Makefile
+++ b/Makefile
@@ -776,6 +776,13 @@ ifneq ($(CONFIG_SYS_GENERIC_BOARD),y)
@echo "See doc/README.generic-board for further information"
@echo "===================================================="
endif
+ifeq ($(CONFIG_DM_I2C_COMPAT),y)
+ @echo "===================== WARNING ======================"
+ @echo "This board uses CONFIG_DM_I2C_COMPAT. Please remove"
+ @echo "(possibly in a subsequent patch in your series)"
+ @echo "before sending patches to the mailing list."
+ @echo "===================================================="
+endif
PHONY += dtbs
dtbs dts/dt.dtb: checkdtc u-boot