usb: xhci-mtk: add optional frame count clock
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 7 Apr 2023 06:24:06 +0000 (14:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 08:13:39 +0000 (10:13 +0200)
Add optional clock frmcnt_ck used on 4nm or advanced process SoC

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20230407062406.12575-2-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk.c
drivers/usb/host/xhci-mtk.h

index f7cbb08..90cf40d 100644 (file)
@@ -398,6 +398,7 @@ static int xhci_mtk_clks_get(struct xhci_hcd_mtk *mtk)
        clks[2].id = "ref_ck";
        clks[3].id = "mcu_ck";
        clks[4].id = "dma_ck";
+       clks[5].id = "frmcnt_ck";
 
        return devm_clk_bulk_get_optional(mtk->dev, BULK_CLKS_NUM, clks);
 }
index 1174a51..faaaf05 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "xhci.h"
 
-#define BULK_CLKS_NUM  5
+#define BULK_CLKS_NUM  6
 #define BULK_VREGS_NUM 2
 
 /* support at most 64 ep, use 32 size hash table */