diff options
author | 2019-09-06 08:44:21 +0000 | |
---|---|---|
committer | 2019-09-06 08:44:21 +0000 | |
commit | dab0d128b48352c3d0cb24d5d8d63f5b9fdfda37 (patch) | |
tree | 413385bd506556aa597148590745e0faff498276 /sys/dev/fdt/mvclock.c | |
parent | Correct the description of EINTR and EINVAL. This looks like a mis-merge (diff) | |
download | wireguard-openbsd-dab0d128b48352c3d0cb24d5d8d63f5b9fdfda37.tar.xz wireguard-openbsd-dab0d128b48352c3d0cb24d5d8d63f5b9fdfda37.zip |
Add I2C clock gates.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt/mvclock.c')
-rw-r--r-- | sys/dev/fdt/mvclock.c | 8 |
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; } |