Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2897163pxb; Sun, 8 Nov 2020 18:11:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxz6MRqnslsYBLNZ3DYeMEdrBVRH2jS5Kg5O19GQlB3NoqA6KhkJu8+0WTixsJqaqenv6vc X-Received: by 2002:a17:906:cc8c:: with SMTP id oq12mr13379131ejb.177.1604887898330; Sun, 08 Nov 2020 18:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604887898; cv=none; d=google.com; s=arc-20160816; b=a3yc2dpTJVRupiWlmEY27f8quOJ7Nt1PNUv14sLLJAVZ3KjP1+1fGfCmCW0skDkdP5 lCMoyAF1dFwQ4H1CszFTNum5qsP2h5zw/cuR2e3aG92KrrG3s+pwXbxTv9o2JmAmmaXD P2FqRVFxjzTSmLfgE/jg2ZSircDUiRmxxGUnzEZl7pEP/cP2V2Op51fh4W3WIEWteZQq VpbXig37muBjSv7/RV/nnI+qmACPkEYGq+1MvuN/sQKysY8P+W6DCeDDmvvtpnt5rlx4 yoIKt+oegW80fQ3iOGSn6dCDkoI07cpfCW3pBKAg4F5XV/VI9hhbl8FWgpVOMRMyZnG2 HS6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/53KP0EYdw5JU7zxPUW+drJ+Q2WuH0O3+BHxH2GAjUI=; b=YThR+O1YbytKgOLW9MyMKR3nEAAgGxt2YNX2xtRCF5Lmv4WQI0A7GJXAUcOCkpwXE9 nF5W9uODBlD1ToJzNHRufDUN7OnfX45e1GyHLVHowLRXs1kekBi1OizTicSi75mdEFYI XmcZcEuSGor8L6cJ/YQMyTy0EGIkKA9vkCcxiSwZ14IOSkiYHgOvrbPY4qfE9RcZnBot QJhtjuFwdHc/Efy+WwxfV81z+sf5ZXzCNzdnTGgA8gIOhG2vKekALrbWTgIpVmC1UbZl KOkBHV7UQFrzdFjlwcNLi44hNG4RCNakqvmXtdQM9Lxagrzs667jm5wmomZz2uJowJPu R1dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jutwj7w6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si6269077edp.497.2020.11.08.18.11.15; Sun, 08 Nov 2020 18:11:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jutwj7w6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729179AbgKICJb (ORCPT + 99 others); Sun, 8 Nov 2020 21:09:31 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58243 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729148AbgKICJ3 (ORCPT ); Sun, 8 Nov 2020 21:09:29 -0500 X-UUID: 642511382b204ebeb3073ec8181c2877-20201109 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=/53KP0EYdw5JU7zxPUW+drJ+Q2WuH0O3+BHxH2GAjUI=; b=jutwj7w6VRrbi6J+fW/gv3M0ps+QLPeNHMS/BM6XzJaheSn/SknUFEU33CmeXAIxfFfp0WlZAhKLXzXPcQpfbi92RqiISjFEYLQI4lq+J/3NWzahq1KFMO5OGz6oxhH8iZblps4Eu6pymx66l5o2+4phJ05iLxJZqAzGJ1OPfSw=; X-UUID: 642511382b204ebeb3073ec8181c2877-20201109 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1616393468; Mon, 09 Nov 2020 10:03:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Nov 2020 10:03:54 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 9 Nov 2020 10:03:54 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu , Yingjoe Chen Subject: [PATCH v5 19/24] clk: mediatek: Add MT8192 msdc clock support Date: Mon, 9 Nov 2020 10:03:44 +0800 Message-ID: <1604887429-29445-20-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> References: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIE1UODE5MiBtc2RjIGFuZCBtc2RjIHRvcCBjbG9jayBwcm92aWRlcnMNCg0KU2lnbmVkLW9m Zi1ieTogV2VpeWkgTHUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMv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