-/* $OpenBSD: prcm.c,v 1.10 2016/07/17 00:21:13 jsg Exp $ */
+/* $OpenBSD: prcm.c,v 1.11 2016/07/18 15:03:01 jsg Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
return PRCM_CLK_EN_GPIO5;
case PRCM_GPIO5:
return PRCM_CLK_EN_GPIO6;
+ case PRCM_I2C0:
+ return PRCM_CLK_EN_I2C1;
+ case PRCM_I2C1:
+ return PRCM_CLK_EN_I2C2;
+ case PRCM_I2C2:
+ return PRCM_CLK_EN_I2C3;
default:
panic("%s: module not found\n", __func__);
}
{
switch (mod) {
case PRCM_MMC0:
+ case PRCM_MMC1:
+ case PRCM_MMC2:
+ case PRCM_MMC3:
+ case PRCM_MMC4:
break;
case PRCM_USBP1_PHY:
case PRCM_USBP2_PHY:
case PRCM_GPIO5:
/* XXX */
break;
+ case PRCM_I2C0:
+ case PRCM_I2C1:
+ case PRCM_I2C2:
+ case PRCM_I2C3:
+ /* XXX */
+ break;
default:
panic("%s: module not found\n", __func__);
}
-/* $OpenBSD: prcmvar.h,v 1.5 2014/03/18 07:34:17 syl Exp $ */
+/* $OpenBSD: prcmvar.h,v 1.6 2016/07/18 15:03:01 jsg Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
PRCM_MMC0,
PRCM_MMC1,
PRCM_MMC2,
+ PRCM_MMC3,
+ PRCM_MMC4,
PRCM_USB,
PRCM_USBTLL,
PRCM_USBP1_PHY,
PRCM_I2C0,
PRCM_I2C1,
PRCM_I2C2,
+ PRCM_I2C3,
};
#define PRCM_REG_MAX 6