summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/sxiccmu_clocks.h
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-05-27 21:53:08 +0000
committerkettenis <kettenis@openbsd.org>2018-05-27 21:53:08 +0000
commitfd9b7e20e462aa76be151dc6835be04253636d3c (patch)
tree0587ceb9465ee8c20997267db132695ad4e4be83 /sys/dev/fdt/sxiccmu_clocks.h
parentAllwinner H3 is supported now as well. (diff)
downloadwireguard-openbsd-fd9b7e20e462aa76be151dc6835be04253636d3c.tar.xz
wireguard-openbsd-fd9b7e20e462aa76be151dc6835be04253636d3c.zip
Implement A64 thermal sensor clocks.
Diffstat (limited to 'sys/dev/fdt/sxiccmu_clocks.h')
-rw-r--r--sys/dev/fdt/sxiccmu_clocks.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/fdt/sxiccmu_clocks.h b/sys/dev/fdt/sxiccmu_clocks.h
index 604f5799ab2..674c29d2a61 100644
--- a/sys/dev/fdt/sxiccmu_clocks.h
+++ b/sys/dev/fdt/sxiccmu_clocks.h
@@ -149,6 +149,7 @@ struct sxiccmu_ccu_bit sun8i_a23_gates[] = {
#define A64_CLK_BUS_OHCI0 44
#define A64_CLK_BUS_OHCI1 45
#define A64_CLK_BUS_PIO 58
+#define A64_CLK_BUS_THS 59
#define A64_CLK_BUS_I2C0 63
#define A64_CLK_BUS_I2C1 64
#define A64_CLK_BUS_I2C2 65
@@ -158,6 +159,7 @@ struct sxiccmu_ccu_bit sun8i_a23_gates[] = {
#define A64_CLK_BUS_UART3 70
#define A64_CLK_BUS_UART4 71
+#define A64_CLK_THS 73
#define A64_CLK_MMC0 75
#define A64_CLK_MMC1 76
#define A64_CLK_MMC2 77
@@ -180,6 +182,7 @@ struct sxiccmu_ccu_bit sun50i_a64_gates[] = {
[A64_CLK_BUS_OHCI0] = { 0x0060, 28 },
[A64_CLK_BUS_OHCI1] = { 0x0060, 29 },
[A64_CLK_BUS_PIO] = { 0x0068, 5 },
+ [A64_CLK_BUS_THS] = { 0x0068, 8 },
[A64_CLK_BUS_I2C0] = { 0x006c, 0, A64_CLK_APB2 },
[A64_CLK_BUS_I2C1] = { 0x006c, 1, A64_CLK_APB2 },
[A64_CLK_BUS_I2C2] = { 0x006c, 2, A64_CLK_APB2 },
@@ -188,6 +191,7 @@ struct sxiccmu_ccu_bit sun50i_a64_gates[] = {
[A64_CLK_BUS_UART2] = { 0x006c, 18, A64_CLK_APB2 },
[A64_CLK_BUS_UART3] = { 0x006c, 19, A64_CLK_APB2 },
[A64_CLK_BUS_UART4] = { 0x006c, 20, A64_CLK_APB2 },
+ [A64_CLK_THS] = { 0x0074, 31 },
[A64_CLK_MMC0] = { 0x0088, 31 },
[A64_CLK_MMC1] = { 0x008c, 31 },
[A64_CLK_MMC2] = { 0x0090, 31 },
@@ -507,14 +511,12 @@ struct sxiccmu_ccu_bit sun8i_a23_resets[] = {
#define A64_RST_BUS_MMC0 8
#define A64_RST_BUS_MMC1 9
#define A64_RST_BUS_MMC2 10
-
#define A64_RST_BUS_EMAC 13
-
#define A64_RST_BUS_EHCI0 19
#define A64_RST_BUS_EHCI1 20
#define A64_RST_BUS_OHCI0 21
#define A64_RST_BUS_OHCI1 22
-
+#define A64_RST_BUS_THS 38
#define A64_RST_BUS_I2C0 42
#define A64_RST_BUS_I2C1 43
#define A64_RST_BUS_I2C2 44
@@ -530,6 +532,7 @@ struct sxiccmu_ccu_bit sun50i_a64_resets[] = {
[A64_RST_BUS_EHCI1] = { 0x02c0, 25 },
[A64_RST_BUS_OHCI0] = { 0x02c0, 28 },
[A64_RST_BUS_OHCI1] = { 0x02c0, 29 },
+ [A64_RST_BUS_THS] = { 0x02d0, 8 },
[A64_RST_BUS_I2C0] = { 0x02d8, 0 },
[A64_RST_BUS_I2C1] = { 0x02d8, 1 },
[A64_RST_BUS_I2C2] = { 0x02d8, 2 },