From f8d9ca18333c42040135c6605ee27668da1738af Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Sun, 29 Oct 2017 10:09:00 +0100 Subject: i2c: add Amlogic Meson driver Add a driver for the I2C controller available on Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani Reviewed-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/i2c.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 arch/arm/include/asm/arch-meson/i2c.h (limited to 'arch') diff --git a/arch/arm/include/asm/arch-meson/i2c.h b/arch/arm/include/asm/arch-meson/i2c.h new file mode 100644 index 0000000000..783bc3786f --- /dev/null +++ b/arch/arm/include/asm/arch-meson/i2c.h @@ -0,0 +1,11 @@ +/* + * Copyright 2017 - Beniamino Galvani + * + * SPDX-License-Identifier: GPL-2.0+ + */ +#ifndef _MESON_I2C_H_ +#define _MESON_I2C_H_ + +#define MESON_I2C_CLK_RATE 167000000 + +#endif -- cgit From 456efb512728a4cd6fe66871932c5384bec9b7c1 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Sun, 29 Oct 2017 10:09:01 +0100 Subject: odroid-c2: enable I2C Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gxbb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch') diff --git a/arch/arm/include/asm/arch-meson/gxbb.h b/arch/arm/include/asm/arch-meson/gxbb.h index 74d5290340..95a6fe6998 100644 --- a/arch/arm/include/asm/arch-meson/gxbb.h +++ b/arch/arm/include/asm/arch-meson/gxbb.h @@ -47,6 +47,7 @@ #define GXBB_GCLK_MPEG_OTHER GXBB_HIU_ADDR(0x53) #define GXBB_GCLK_MPEG_AO GXBB_HIU_ADDR(0x54) +#define GXBB_GCLK_MPEG_0_I2C BIT(9) #define GXBB_GCLK_MPEG_1_ETH BIT(3) #endif /* __GXBB_H__ */ -- cgit