Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5047627ybl; Mon, 9 Dec 2019 22:49:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwj8d+AWFmEx/fBGu/29gSDPNVpzaCszkt9XhZPIrLNtb99mVrWulXKaY1PsvIqHLTLdGph X-Received: by 2002:a9d:7ccc:: with SMTP id r12mr25634196otn.22.1575960542265; Mon, 09 Dec 2019 22:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575960542; cv=none; d=google.com; s=arc-20160816; b=oRSe0Z1PwtTsOTTdgg2t671jDRDcemcJDI/MXd7Go6YSJgN1A+GTwyfdBrKaFaqwMU aqrpnPKGVrlov60WZKIRZRuMD57m9iq170RdQV80NNGb0piKRzyMOU+Jj2+w/bhZA0BK am8i4pVVs8KVBodj7vAm0f1t5qHAo8B+coOT+v/sVf1QVURh2UfNmVg/zQyJadmnkX6J Dkg7RUYQJolwXpgCfzhuN1fGvEXTfns6Djx0mhCgTdLbszb9qVTV2GsaNjeAQn9Dfwq9 +EUQivx5XTMqKDBAOgkAAZj5Nnr4NlQOxtzebfLli2Tg/K9kYN/AEilFqu9NdD8qEBsa 7SVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AM4klYb7yCh8DLgLsvXyxgJHtcik12wFYLAScG39BXg=; b=XCxsp9Mon+FZErzjQ+mpnQOb/YUlCBMAUCKp6dkYNvFgSA+akOmHShbAJTHVrj37Gm uP3PZZZbyXt630wis8G6ZhEeH2MsTn9VOTaz7jUsLJukhbYDzg67qIoE0So1U/jCEfVP vH4Jvh6VjHrmlBJGpVxQFQ1zCySzyRidxwmioPviCrpdNOxsfltph4+ghezN/TVYGLjq gARA+/8FP1K8fUOJH8hxMS2VJopvhZQioyFdGsAR1LRK2dKwXcwJNjNVk6eakt1y8RSa EQ2KA5BmyI1zen+oH9C4MvLz1CNwhHzTUH0l9mNy+FJCascH5MOo5zJLv1lVnDqLzTAW n+zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=sJZrI6zH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v15si1468649otn.100.2019.12.09.22.48.50; Mon, 09 Dec 2019 22:49:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=sJZrI6zH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727225AbfLJGrS (ORCPT + 99 others); Tue, 10 Dec 2019 01:47:18 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:11717 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727024AbfLJGrR (ORCPT ); Tue, 10 Dec 2019 01:47:17 -0500 X-UUID: 855c82a3196849a0a7aae2ccc33bb042-20191210 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=AM4klYb7yCh8DLgLsvXyxgJHtcik12wFYLAScG39BXg=; b=sJZrI6zHq3uGC5o0cpJZOsOAVfofL45pgCN6lDarGXhHtbOp9FXQQJlXqksaTE4y2pPYfa2ouivUCspB6FHRc8vDhErdMk43qHNZTCGRh4T4CXMBjGTpCi8dKcaYfRU5z5oAfAJ7jwu3MEfUI/XUlpPMoH1yw0BP8LSvk8SFMaQ=; X-UUID: 855c82a3196849a0a7aae2ccc33bb042-20191210 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1817536322; Tue, 10 Dec 2019 14:47:13 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 10 Dec 2019 14:47:05 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 10 Dec 2019 14:47:17 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Rob Herring CC: James Liao , Fan Chen , , , , , Weiyi Lu , Yong Wu Subject: [PATCH v9 6/9] soc: mediatek: Add extra sram control Date: Tue, 10 Dec 2019 14:46:50 +0800 Message-ID: <1575960413-6900-7-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1575960413-6900-1-git-send-email-weiyi.lu@mediatek.com> References: <1575960413-6900-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rm9yIHNvbWUgcG93ZXIgZG9tYWlucyBsaWtlIHZwdV9jb3JlIG9uIE1UODE4MyB3aG9zZSBzcmFt IG5lZWQgdG8NCmRvIGNsb2NrIGFuZCBpbnRlcm5hbCBpc29sYXRpb24gd2hpbGUgcG93ZXIgb24v b2Z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