Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27564pxu; Thu, 22 Oct 2020 14:23:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyde/QIYlsWblwH911wlcTrhJzOVhORfUEYVzZLHz+BKgYerum5LzaRo9ds6kiDQUt6ExjN X-Received: by 2002:aa7:d844:: with SMTP id f4mr4050996eds.194.1603401808049; Thu, 22 Oct 2020 14:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401808; cv=none; d=google.com; s=arc-20160816; b=GwDfbDqOd9wH+CxB1YgJ0MsIdpnYqGQFjH2sIWddBdvpvBvDuzXySSS0yUckmDzzSc Bc+KgJk0plUkJsoHYFi8+ZoigcXlH+YBP05MhPJoD9Ajt3hVEJSTOEufjZoFi5409fhw vC+SMYgEwLjON2+0RsnZOfJ08Wx67ye1gmVMojz59BU3eLbY0FgcLLHB2Je7xZbBfJjx Qswm2C7F00x99DCL5MUKWaL9IFusv18fv+a8cJsZZKs5ImEQxNkvIUihGHsy0d+zbjSt xOIsIz7mZtqWVp/mdSAmyWaEwoCP14HY7JVEwuM8kG/LdJCm4ILEMvv2na8CG81/FvXB mjiw== 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=UvmuHyXMIzk6YC53NsSnOcfDqYgzE3L3Z4nQ/Gc4Pdg=; b=UJnwM+YNxIvdLWZ6XhX7SMkaXkCEeUZKzCGFhXsnC20N9tcgBN/cIMYZrwzgMVf/j9 x9vmUoUlOB+9A+PWC0Ck8wmf1oJNt8YJ6B2HGbKi71ICo/YwdaW8dNz5m8y1sNi0+TuS otQutzVT6UTJ+5AfmbnrAXrcC2l7ZcdhO7KONPlQ5XjrF1rw5KPuDhDcywTN6OqbkuaW QyTPN9+n0vs9e41jZ6gC36idqGA4k2613W9xaIgjbgQRPpcHyUEMzW2cJ8NMbG8lD5rY zrjqrviTCCzuIHRmycYhBR5qOZcpbjkV+o5l+38U55mEalqRtsu8dHMuZAtVk6hRiaEs mL5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XeDmU3bo; 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 bt21si1830299ejb.368.2020.10.22.14.23.04; Thu, 22 Oct 2020 14:23:28 -0700 (PDT) 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=XeDmU3bo; 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 S2898395AbgJVMia (ORCPT + 99 others); Thu, 22 Oct 2020 08:38:30 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33670 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898356AbgJVMiO (ORCPT ); Thu, 22 Oct 2020 08:38:14 -0400 X-UUID: da3952ba47c74c5baac2d57773f972bb-20201022 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=UvmuHyXMIzk6YC53NsSnOcfDqYgzE3L3Z4nQ/Gc4Pdg=; b=XeDmU3bopaO6q3bq4MGBvTGTA14Yr445E3kXRhbDw+NnviDRlu1PsJ3kqwFefiT/HPIXSaFdrX2Acc3hfR+3RzfX/VZnRrz6LvRi9UZw1/d/1HvLgwm+Xn0qBPjNneCTVMTnO6J2uOl3w0sGvt/pNo1vOtBVMSccNZoPCdeNSNk=; X-UUID: da3952ba47c74c5baac2d57773f972bb-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 1018281805; Thu, 22 Oct 2020 20:37:57 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 20:37:56 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 22 Oct 2020 20:37:56 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 30/34] clk: mediatek: Add MT8192 msdc clock support Date: Thu, 22 Oct 2020 20:37:23 +0800 Message-ID: <1603370247-30437-31-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1603370247-30437-1-git-send-email-weiyi.lu@mediatek.com> References: <1603370247-30437-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 QWRkIE1UODE5MiBtc2RjIGNsb2NrIHByb3ZpZGVyDQoNClNpZ25lZC1vZmYtYnk6IFdlaXlpIEx1 IDx3ZWl5aS5sdUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJzL2Nsay9tZWRpYXRlay9LY29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