Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2723390ybl; Thu, 19 Dec 2019 19:47:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwK2Rsqy3DMK/BO843B4ZlPv/mIQWc69fTgeR8BkmUtpP9PvU7WN3aCeMaM6Hx5p2IeG/C+ X-Received: by 2002:a05:6830:1251:: with SMTP id s17mr12392724otp.108.1576813656273; Thu, 19 Dec 2019 19:47:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576813656; cv=none; d=google.com; s=arc-20160816; b=O/HX8ug0BYCSTSfQHPcL1RAv+1l/ESMh0L1ClIRoJVqmYJ3B5MxcZKvmdaVF2qtkRY vPTDhyzI4JbSObrulD/jz6MwWsLwCXk/0OtitCLSXNoOIm177mAYkMGGgSuyN6Q59th5 mouHI15tjQmHqcN5dkaBOyv1eGCHp14VD6JvWHbOxrNS42GjaMzyACvUG5BkeGx6JOud TF6TXbsTeBSFkEI6GJTj81LmNOMf4xUyM1Q0x39twFX2DrjxbXvmWRXgp+m+QCBFiv7f xKmiGH/n12pi3T8pNm+PNpMBip/H4AkSzQHl8kL/cG1/mvqQ+u817X9oILWhApw80ure SosA== 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=GBfYh0omHP0jJqQxlEbn3Za4MRyi1I+fnL2nqkmg2X0=; b=AlotvXnFvpCLuEveZ6zV8/wI4wFMeTpX7fRVnadAu1uf6DHw6GVHLUgykMBAK5Cjfp qHjGl5bNBE9/LUY5Un0zfCMofeb0BQkwGEJmN712QdO1/shGL6L6J42FsWrnEBThiuEm v9hyTPg/kXj9sPye9zkfVduVyLpTok7kzGEKzvJlwNYXp7r+uYh6GEutuPXsNSL08XtV pACuIQYV56WtIvl/H7u7ob2ShRNGp/lf3cdumhuvgyffQzNmvh4/vgfaSK3IDYgkkfpd 7WVEh9TRUBKcXeQiabEJ2afgpw1lQZeFpvMpTQglpOdTiMd2qBf/HIqxPiVY7PxT0FeL UbJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aKJK2z4A; 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 s14si4593047otq.37.2019.12.19.19.47.25; Thu, 19 Dec 2019 19:47:36 -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=aKJK2z4A; 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 S1727431AbfLTDqf (ORCPT + 99 others); Thu, 19 Dec 2019 22:46:35 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40750 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727084AbfLTDqZ (ORCPT ); Thu, 19 Dec 2019 22:46:25 -0500 X-UUID: ba0fe60dd1bf4ec88a4d673aa9aeb42b-20191220 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=GBfYh0omHP0jJqQxlEbn3Za4MRyi1I+fnL2nqkmg2X0=; b=aKJK2z4AfQtC7XOPb5c4hQATtx92LJSJQW5CDEe6oESqOUKfo87cAtmX3+SpnxbU/udZhY8VlJtwHOFi50f7F0zo/gG7k4EYveJD8aMlYk3t7vrNrC/v3CMFZUQUX4Tec2JBttDlWE83xw5HyDU38YZuqY2nI4h3b/QnaIYLI28=; X-UUID: ba0fe60dd1bf4ec88a4d673aa9aeb42b-20191220 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1198377756; Fri, 20 Dec 2019 11:46:14 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 20 Dec 2019 11:45:34 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 20 Dec 2019 11:46:07 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Rob Herring , Sascha Hauer CC: James Liao , Fan Chen , , , , , Weiyi Lu Subject: [PATCH v11 07/10] soc: mediatek: Add extra sram control Date: Fri, 20 Dec 2019 11:46:01 +0800 Message-ID: <1576813564-23927-8-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1576813564-23927-1-git-send-email-weiyi.lu@mediatek.com> References: <1576813564-23927-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 IG5lZWQgdG8NCmRvIGNsb2NrIGFuZCBpbnRlcm5hbCBpc29sYXRpb24gd2hpbGUgc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