summaryrefslogtreecommitdiff
path: root/drivers/i2c/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-13 01:02:08 (GMT)
committerSimon Glass <sjg@chromium.org>2015-01-30 00:09:53 (GMT)
commit73845350b6281a7afeeb279475e6eb613d7a89f9 (patch)
treeed256f2bb68fc6fca814fa24d059058a14e7de62 /drivers/i2c/Makefile
parentf9a4c2da72d04e13b05deecb800f232d2948eb85 (diff)
downloadu-boot-73845350b6281a7afeeb279475e6eb613d7a89f9.tar.xz
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 'drivers/i2c/Makefile')
-rw-r--r--drivers/i2c/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 0e4c9f4..774bc94 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -5,6 +5,7 @@
# SPDX-License-Identifier: GPL-2.0+
#
obj-$(CONFIG_DM_I2C) += i2c-uclass.o
+obj-$(CONFIG_DM_I2C_COMPAT) += i2c-uclass-compat.o
obj-$(CONFIG_SYS_I2C_ADI) += adi_i2c.o
obj-$(CONFIG_I2C_MV) += mv_i2c.o