summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/fdt/rkclock.c7
-rw-r--r--sys/dev/fdt/rkclock_clocks.h8
2 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c
index f6d25a914c4..2da88d02041 100644
--- a/sys/dev/fdt/rkclock.c
+++ b/sys/dev/fdt/rkclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rkclock.c,v 1.7 2017/07/23 10:12:57 kettenis Exp $ */
+/* $OpenBSD: rkclock.c,v 1.8 2017/07/23 17:06:51 kettenis Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
*
@@ -283,8 +283,13 @@ rk3288_enable(void *cookie, uint32_t *cells, int on)
case RK3288_CLK_UART2:
case RK3288_CLK_UART3:
case RK3288_CLK_UART4:
+ case RK3288_CLK_MAC_RX:
+ case RK3288_CLK_MAC_TX:
case RK3288_CLK_SDMMC_DRV:
case RK3288_CLK_SDMMC_SAMPLE:
+ case RK3288_CLK_MAC:
+ case RK3288_ACLK_GMAC:
+ case RK3288_PCLK_GMAC:
case RK3288_HCLK_HOST0:
case RK3288_HCLK_SDMMC:
/* Enabled by default. */
diff --git a/sys/dev/fdt/rkclock_clocks.h b/sys/dev/fdt/rkclock_clocks.h
index cd497ce4472..e10fee82ee2 100644
--- a/sys/dev/fdt/rkclock_clocks.h
+++ b/sys/dev/fdt/rkclock_clocks.h
@@ -10,9 +10,17 @@
#define RK3288_CLK_UART3 80
#define RK3288_CLK_UART4 81
+#define RK3288_CLK_MAC_RX 102
+#define RK3288_CLK_MAC_TX 103
#define RK3288_CLK_SDMMC_DRV 114
#define RK3288_CLK_SDMMC_SAMPLE 118
+#define RK3288_CLK_MAC 151
+
+#define RK3288_ACLK_GMAC 196
+
+#define RK3288_PCLK_GMAC 349
+
#define RK3288_HCLK_HOST0 450
#define RK3288_HCLK_SDMMC 456