OSDN Git Service

soc: mediatek: add dependent clock jpgdec/audio for scpsys
authorweiyi.lu@mediatek.com <weiyi.lu@mediatek.com>
Tue, 28 Nov 2017 07:28:19 +0000 (15:28 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 21 Dec 2017 10:49:23 +0000 (11:49 +0100)
There are dependent clock jpgdec/audio in scpsys on MT2712,
and will exist three dependent clocks on MT2712 VDEC.

Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-scpsys.c

index 4c484b1..c0f3219 100644 (file)
@@ -84,6 +84,8 @@ enum clk_id {
        CLK_ETHIF,
        CLK_VDEC,
        CLK_HIFSEL,
+       CLK_JPGDEC,
+       CLK_AUDIO,
        CLK_MAX,
 };
 
@@ -96,10 +98,12 @@ static const char * const clk_names[] = {
        "ethif",
        "vdec",
        "hif_sel",
+       "jpgdec",
+       "audio",
        NULL,
 };
 
-#define MAX_CLKS       2
+#define MAX_CLKS       3
 
 struct scp_domain_data {
        const char *name;