summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2020-04-22 15:27:27 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2020-04-22 15:27:27 +0000
commit4b00def2b6f73ed5e3919016aab5a21699032849 (patch)
tree555fc3ec38e8237ae52327915bdc88390deffbc3 /sys
parent5346b3a3604f8a13c1326a5fe917f260b5b1ec57 (diff)
Add clock gates for OCOTP and TMU on i.MX8MQ and i.MX8MM.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/imxccm_clocks.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/fdt/imxccm_clocks.h b/sys/dev/fdt/imxccm_clocks.h
index 06a641bdf6f..1d98ebd930f 100644
--- a/sys/dev/fdt/imxccm_clocks.h
+++ b/sys/dev/fdt/imxccm_clocks.h
@@ -317,6 +317,7 @@ struct imxccm_mux imx7d_muxs[] = {
#define IMX8MM_CLK_I2C2_ROOT 0xa5
#define IMX8MM_CLK_I2C3_ROOT 0xa6
#define IMX8MM_CLK_I2C4_ROOT 0xa7
+#define IMX8MM_CLK_OCOTP_ROOT 0xa8
#define IMX8MM_CLK_UART1_ROOT 0xbc
#define IMX8MM_CLK_UART2_ROOT 0xbd
#define IMX8MM_CLK_UART3_ROOT 0xbe
@@ -349,6 +350,7 @@ struct imxccm_gate imx8mm_gates[] = {
[IMX8MM_CLK_I2C2_ROOT] = { 0x4180, 0, IMX8MM_CLK_I2C2 },
[IMX8MM_CLK_I2C3_ROOT] = { 0x4190, 0, IMX8MM_CLK_I2C3 },
[IMX8MM_CLK_I2C4_ROOT] = { 0x41a0, 0, IMX8MM_CLK_I2C4 },
+ [IMX8MM_CLK_OCOTP_ROOT] = { 0x4220, 0 },
[IMX8MM_CLK_UART1_ROOT] = { 0x4490, 0, IMX8MM_CLK_UART1 },
[IMX8MM_CLK_UART2_ROOT] = { 0x44a0, 0, IMX8MM_CLK_UART2 },
[IMX8MM_CLK_UART3_ROOT] = { 0x44b0, 0, IMX8MM_CLK_UART3 },
@@ -478,6 +480,8 @@ struct imxccm_mux imx8mm_muxs[] = {
#define IMX8MQ_CLK_USB2_PHY_ROOT 0xd1
#define IMX8MQ_CLK_USDHC1_ROOT 0xd2
#define IMX8MQ_CLK_USDHC2_ROOT 0xd3
+#define IMX8MQ_CLK_TMU_ROOT 0xf6
+#define IMX8MQ_CLK_OCOTP_ROOT 0xfa
#define IMX8MQ_CLK_ARM 0x102
struct imxccm_gate imx8mq_gates[] = {
@@ -537,6 +541,8 @@ struct imxccm_gate imx8mq_gates[] = {
[IMX8MQ_CLK_USB2_PHY_ROOT] = { 0x4500, 0, IMX8MQ_CLK_USB_PHY_REF },
[IMX8MQ_CLK_USDHC1_ROOT] = { 0x4510, 0, IMX8MQ_CLK_USDHC1 },
[IMX8MQ_CLK_USDHC2_ROOT] = { 0x4520, 0, IMX8MQ_CLK_USDHC2 },
+ [IMX8MQ_CLK_TMU_ROOT] = { 0x4620, 0 },
+ [IMX8MQ_CLK_OCOTP_ROOT] = { 0x4220, 0 },
};
struct imxccm_divider imx8mq_divs[] = {