summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/fdt/mvclock.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/fdt/mvclock.c b/sys/dev/fdt/mvclock.c
index 59f1f6e4925..2d8713a4398 100644
--- a/sys/dev/fdt/mvclock.c
+++ b/sys/dev/fdt/mvclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mvclock.c,v 1.3 2019/04/30 20:00:25 patrick Exp $ */
+/* $OpenBSD: mvclock.c,v 1.4 2019/09/06 08:44:21 patrick Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -247,6 +247,8 @@ cp110_enable(void *cookie, uint32_t *cells, int on)
/* Armada 3700 Periph block */
#define PERIPH_NB_MMC 0x0
+#define PERIPH_NB_I2C2 0x9
+#define PERIPH_NB_I2C1 0xa
#define PERIPH_SB_GBE1_CORE 0x7
#define PERIPH_SB_GBE0_CORE 0x8
#define PERIPH_SB_USB32_USB2_SYS 0xb
@@ -275,6 +277,10 @@ a3700_periph_nb_enable(void *cookie, uint32_t *cells, int on)
switch (idx) {
case PERIPH_NB_MMC:
return a3700_periph_enable(sc, 2, on);
+ case PERIPH_NB_I2C2:
+ return a3700_periph_enable(sc, 16, on);
+ case PERIPH_NB_I2C1:
+ return a3700_periph_enable(sc, 17, on);
default:
break;
}