aboutsummaryrefslogtreecommitdiffstats
path: root/include/drivers
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.io>2018-07-21 19:06:46 +0800
committerIcenowy Zheng <icenowy@aosc.io>2018-09-05 22:43:38 +0800
commit7e4d562077463f39360df06975545c5b42910794 (patch)
treea5c587b0d90c7e1650bd338000073f59f48009a0 /include/drivers
parentf348c3519e138f607b18cc63d1d34a61352fb7c6 (diff)
downloadplatform_external_arm-trusted-firmware-7e4d562077463f39360df06975545c5b42910794.tar.gz
platform_external_arm-trusted-firmware-7e4d562077463f39360df06975545c5b42910794.tar.bz2
platform_external_arm-trusted-firmware-7e4d562077463f39360df06975545c5b42910794.zip
drivers: mentor: extract MI2CV driver from Marvell driver
The Marvell A8K SoCs use the MI2CV IP core from Mentor Graphics, which is also used by Allwinner. As Mentor Graphics allows a lot of customization, the MI2CV in the two SoC families are not compatible, and driver modifications are needed. Extract the common code to a MI2CV driver. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Diffstat (limited to 'include/drivers')
-rw-r--r--include/drivers/mentor/mi2cv.h (renamed from include/drivers/marvell/a8k_i2c.h)7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/drivers/marvell/a8k_i2c.h b/include/drivers/mentor/mi2cv.h
index 8a9abe8d4..6b03ed7f6 100644
--- a/include/drivers/marvell/a8k_i2c.h
+++ b/include/drivers/mentor/mi2cv.h
@@ -1,14 +1,15 @@
/*
* Copyright (C) 2018 Marvell International Ltd.
+ * Copyright (C) 2018 Icenowy Zheng <icenowy@aosc.io>
*
* SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses
*/
-/* This driver provides I2C support for Marvell A8K and compatible SoCs */
+/* This driver provides support for Mentor Graphics MI2CV IP core */
-#ifndef _A8K_I2C_H_
-#define _A8K_I2C_H_
+#ifndef _MI2CV_H_
+#define _MI2CV_H_
#include <stdint.h>