summaryrefslogtreecommitdiff
path: root/drivers/mentor
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 /drivers/mentor
parent159c52491af33ff8014ee2fa708804bb75540419 (diff)
downloadarm-trusted-firmware-dfc0fb272554ea5829fa74c6b75b9e656f55d0b3.tar.gz
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 'drivers/mentor')
-rw-r--r--drivers/mentor/i2c/mi2cv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mentor/i2c/mi2cv.c b/drivers/mentor/i2c/mi2cv.c
index 1b73e6f16..8ebd9662b 100644
--- a/drivers/mentor/i2c/mi2cv.c
+++ b/drivers/mentor/i2c/mi2cv.c
@@ -15,6 +15,7 @@
#include <delay_timer.h>
#include <errno.h>
#include <mentor/mi2cv.h>
+#include <mentor_i2c_plat.h>
#include <mmio.h>
#if LOG_LEVEL >= LOG_LEVEL_VERBOSE