]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: imx: clk-imxrt1050: introduce IMXRT1050_CLK_USBOH3
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Thu, 20 May 2021 14:10:14 +0000 (16:10 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jun 2021 11:03:41 +0000 (13:03 +0200)
Usb needs IMXRT1050_CLK_USBOH3 clock to be enabled, so let's add it to
clock driver.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
drivers/clk/imx/clk-imxrt1050.c
include/dt-bindings/clock/imxrt1050-clock.h

index eb6847f8656f424f85ace7c8f0624c2850bb9b35..3e1716100240ec5c4e38255d8446941a98d91423 100644 (file)
@@ -259,6 +259,8 @@ static int imxrt1050_clk_probe(struct udevice *dev)
               imx_clk_gate2("lcdif", "lcdif_podf", base + 0x70, 28));
        clk_dm(IMXRT1050_CLK_LCDIF_PIX,
               imx_clk_gate2("lcdif_pix", "lcdif", base + 0x74, 10));
+       clk_dm(IMXRT1050_CLK_USBOH3,
+              imx_clk_gate2("usboh3", "pll3_usb_otg", base + 0x80, 0));
 
        struct clk *clk, *clk1;
 
index 09b65e5df2702105eed48771299c257a387f55cd..f74dbbcf9377b3983a79ac131cc1272c84d35c73 100644 (file)
@@ -61,6 +61,7 @@
 #define IMXRT1050_CLK_PLL6_ENET                        52
 #define IMXRT1050_CLK_PLL7_USB_HOST            53
 #define IMXRT1050_CLK_LCDIF_PIX                        54
-#define IMXRT1050_CLK_END                      55
+#define IMXRT1050_CLK_USBOH3                   55
+#define IMXRT1050_CLK_END                      56
 
 #endif /* __DT_BINDINGS_CLOCK_IMXRT1050_H */