-/* $OpenBSD: rkclock.c,v 1.68 2023/03/12 14:29:50 kettenis Exp $ */
+/* $OpenBSD: rkclock.c,v 1.69 2023/03/19 09:32:11 kettenis Exp $ */
/*
* Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org>
*
{ RK3568_XIN24M, RK3568_GPLL_400M, RK3568_GPLL_300M,
RK3568_CPLL_100M, RK3568_CPLL_50M, RK3568_CLK_OSC0_DIV_750K }
},
+ {
+ RK3568_CLK_SDMMC2, RK3568_CRU_CLKSEL_CON(32),
+ SEL(10, 8), 0,
+ { RK3568_XIN24M, RK3568_GPLL_400M, RK3568_GPLL_300M,
+ RK3568_CPLL_100M, RK3568_CPLL_50M, RK3568_CLK_OSC0_DIV_750K }
+ },
{
RK3568_ACLK_GMAC0, 0, 0, 0,
{ RK3568_ACLK_PHP }
case RK3568_CLK_PCIEPHY0_REF:
case RK3568_CLK_PCIEPHY1_REF:
case RK3568_CLK_PCIEPHY2_REF:
+ case RK3568_CLK_PCIE30PHY_REF_M:
+ case RK3568_CLK_PCIE30PHY_REF_N:
case RK3568_CLK_I2C0:
case RK3568_SCLK_UART0:
case RK3568_PCLK_I2C0:
#define RK3568_CLK_GMAC0_PTP_REF 185
#define RK3568_ACLK_USB 186
#define RK3568_PCLK_USB 188
+#define RK3568_CLK_SDMMC2 194
#define RK3568_ACLK_GMAC1 195
#define RK3568_PCLK_GMAC1 196
#define RK3568_CLK_MAC1_2TOP 197
#define RK3568_CLK_PCIEPHY2_DIV 35
#define RK3568_CLK_PCIEPHY2_OSC0 36
#define RK3568_CLK_PCIEPHY2_REF 37
+#define RK3568_CLK_PCIE30PHY_REF_M 38
+#define RK3568_CLK_PCIE30PHY_REF_N 39
#define RK3568_PCLK_I2C0 45
#define RK3568_CLK_PDPMU 49