summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-12-31 13:52:19 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-12-31 13:52:19 +0000
commit95f815577837f44170ee445cac5f03db3c3dc65c (patch)
treef4203a400ce1c43219c17452978f8bfc7a17ea39 /sys
parent1e92b7b26bc96c2ef1804373773b32dadc4f489d (diff)
Implement H3/H5 thermal sensor clocks.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/sxiccmu_clocks.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/fdt/sxiccmu_clocks.h b/sys/dev/fdt/sxiccmu_clocks.h
index 12ff9b9dfae..d22b1d2ef48 100644
--- a/sys/dev/fdt/sxiccmu_clocks.h
+++ b/sys/dev/fdt/sxiccmu_clocks.h
@@ -292,6 +292,7 @@ struct sxiccmu_ccu_bit sun9i_a80_mmc_gates[] = {
#define H3_CLK_BUS_OHCI2 39
#define H3_CLK_BUS_OHCI3 40
#define H3_CLK_BUS_PIO 54
+#define H3_CLK_BUS_THS 55
#define H3_CLK_BUS_I2C0 59
#define H3_CLK_BUS_I2C1 60
#define H3_CLK_BUS_I2C2 61
@@ -301,6 +302,7 @@ struct sxiccmu_ccu_bit sun9i_a80_mmc_gates[] = {
#define H3_CLK_BUS_UART3 65
#define H3_CLK_BUS_EPHY 67
+#define H3_CLK_THS 69
#define H3_CLK_MMC0 71
#define H3_CLK_MMC1 74
#define H3_CLK_MMC2 77
@@ -327,6 +329,7 @@ struct sxiccmu_ccu_bit sun8i_h3_gates[] = {
[H3_CLK_BUS_OHCI2] = { 0x0060, 30 },
[H3_CLK_BUS_OHCI3] = { 0x0060, 31 },
[H3_CLK_BUS_PIO] = { 0x0068, 5 },
+ [H3_CLK_BUS_THS] = { 0x0068, 8 },
[H3_CLK_BUS_I2C0] = { 0x006c, 0, H3_CLK_APB2 },
[H3_CLK_BUS_I2C1] = { 0x006c, 1, H3_CLK_APB2 },
[H3_CLK_BUS_I2C2] = { 0x006c, 2, H3_CLK_APB2 },
@@ -335,6 +338,7 @@ struct sxiccmu_ccu_bit sun8i_h3_gates[] = {
[H3_CLK_BUS_UART2] = { 0x006c, 18, H3_CLK_APB2 },
[H3_CLK_BUS_UART3] = { 0x006c, 19, H3_CLK_APB2 },
[H3_CLK_BUS_EPHY] = { 0x0070, 0 },
+ [H3_CLK_THS] = { 0x0074, 31 },
[H3_CLK_MMC0] = { 0x0088, 31 },
[H3_CLK_MMC1] = { 0x008c, 31 },
[H3_CLK_MMC2] = { 0x0090, 31 },
@@ -582,9 +586,8 @@ struct sxiccmu_ccu_bit sun9i_a80_mmc_resets[] = {
#define H3_RST_BUS_OHCI1 23
#define H3_RST_BUS_OHCI2 24
#define H3_RST_BUS_OHCI3 25
-
#define H3_RST_BUS_EPHY 39
-
+#define H3_RST_BUS_THS 42
#define H3_RST_BUS_I2C0 46
#define H3_RST_BUS_I2C1 47
#define H3_RST_BUS_I2C2 48
@@ -607,6 +610,7 @@ struct sxiccmu_ccu_bit sun8i_h3_resets[] = {
[H3_RST_BUS_OHCI2] = { 0x02c0, 30 },
[H3_RST_BUS_OHCI3] = { 0x02c0, 31 },
[H3_RST_BUS_EPHY] = { 0x02c8, 2 },
+ [H3_RST_BUS_THS] = { 0x02d0, 8 },
[H3_RST_BUS_I2C0] = { 0x02d8, 0 },
[H3_RST_BUS_I2C1] = { 0x02d8, 1 },
[H3_RST_BUS_I2C2] = { 0x02d8, 2 },