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>
1 parent 159c524 commit dfc0fb272554ea5829fa74c6b75b9e656f55d0b3
@Andre Przywara Andre Przywara authored on 8 Sep 2018
Showing 7 changed files
View
drivers/allwinner/sunxi_i2c.c 100644 → 0
View
drivers/marvell/i2c/a8k_i2c.c 100644 → 0
View
drivers/mentor/i2c/mi2cv.c
View
plat/allwinner/common/include/mentor_i2c_plat.h 0 → 100644
View
plat/allwinner/sun50i_h6/platform.mk
View
plat/marvell/a8k/common/a8k_common.mk
View
plat/marvell/a8k/common/include/mentor_i2c_plat.h 0 → 100644