summaryrefslogtreecommitdiff
path: root/plat/allwinner/sun50i_h6
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2018-09-09 01:39:57 +0100
committerAndre Przywara <andre.przywara@arm.com>2018-09-19 09:24:02 +0100
commitdfc0fb272554ea5829fa74c6b75b9e656f55d0b3 (patch)
tree74b4fd77dc28f2457d2bdaa15b137e0762b49f52 /plat/allwinner/sun50i_h6
parent159c52491af33ff8014ee2fa708804bb75540419 (diff)
drivers: i2c: mentor: move platform code into header files
At the moment we have two I2C stub drivers (for the Allwinner and the Marvell platform), which #include the actual .c driver file. Change this into the more usual design, by renaming and moving the stub drivers into platform specific header files and including these from the actual driver file. The platform specific include directories make sure the driver picks up the right header automatically. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'plat/allwinner/sun50i_h6')
-rw-r--r--plat/allwinner/sun50i_h6/platform.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/allwinner/sun50i_h6/platform.mk b/plat/allwinner/sun50i_h6/platform.mk
index c3901d01..90987020 100644
--- a/plat/allwinner/sun50i_h6/platform.mk
+++ b/plat/allwinner/sun50i_h6/platform.mk
@@ -15,8 +15,8 @@ PLAT_INCLUDES := -Iinclude/plat/arm/common \
-I${AW_PLAT}/${PLAT}/include
PLAT_BL_COMMON_SOURCES := drivers/console/${ARCH}/console.S \
+ drivers/mentor/i2c/mi2cv.c \
drivers/ti/uart/${ARCH}/16550_console.S \
- ${AW_DRIVERS}/sunxi_i2c.c \
${XLAT_TABLES_LIB_SRCS} \
${AW_PLAT}/common/plat_helpers.S \
${AW_PLAT}/common/sunxi_common.c