Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp274585ybt; Wed, 17 Jun 2020 00:08:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqxu7sKX/RM3nxV5tybGkgBB7YeCw1z4cw+R/imYKXiVp0j5chaP4WIqIQ1OnKBDWuuCgm X-Received: by 2002:a17:907:40ed:: with SMTP id nn21mr6341469ejb.71.1592377697307; Wed, 17 Jun 2020 00:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592377697; cv=none; d=google.com; s=arc-20160816; b=pGcNBjwiLGl1AUkG58jcaaG6FhyfvC1jLGgLJzZAxT31kEdhKq63ZPFxfI82/yVXbO jTyft2gDZZ4kHlqsCoUyIOW+ZzUeqUU27ZCYzWLn2KPx6X1x74sq7auy4rNCieDuVkJQ ZCVZF14nkmdad8XomwyVgrQXSBI/EJGsyhZr9eVKYrZMrFqyTd4pjSC+xpdRxLCRU1S4 +hC1T/SkhG69LhXMJ6bRkKC4ToTokDKr2nzf8tNoxt2eLSPnvdrXtsF0b2ECw1/hsZzf QZD5dt6yE7JhSIRYGV41IeTj+PFBQF8qrpPSrepjj4UG277gL0UkQiB+qwawwnXBzwjo ua3A== 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=ERBWBQKk5eOWSM1XMJj30bh4UNq1SbvG0GoU5eyQTK8=; b=OwrU8mmzCdKUW9CcHbF9ov86Fx7PB/mxKGBQctIFSViiWe5VmSm4P5udV/IFxxu7ea ZN7uqnZ2gDziJYiv45i+GixFR1OtZsvKjfYVaA1tOgBwsSXxxhqUtAQx1rdRpvo62eGz 7jqr+fN19Btv04MPUElj/dE2aSAQ2zKTQzXROZ5Y+ytv4pvcUMH2JpaMIVRH/rP5MsAL K9jj3d6absdTgAsxMAk2mJvFgecn4xI27Pug0sJKisj8gKBW1ECqayEhxj+QyZWe+k3O VSZXCt7zOjgKK2hKzihsSCVT73qVtIt1sgg1ly109w7yYSZJdp04rfE82FFcgXT1cGxr uRqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rA0C9VDE; 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 f12si12315984edl.157.2020.06.17.00.07.55; Wed, 17 Jun 2020 00:08:17 -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=rA0C9VDE; 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 S1726773AbgFQHFe (ORCPT + 99 others); Wed, 17 Jun 2020 03:05:34 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:11651 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726694AbgFQHFb (ORCPT ); Wed, 17 Jun 2020 03:05:31 -0400 X-UUID: 8f2a5072ee2b4105897eef148c312773-20200617 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=ERBWBQKk5eOWSM1XMJj30bh4UNq1SbvG0GoU5eyQTK8=; b=rA0C9VDEPFBOKybp5KFrtF95vKNWErZgzHLHzQJ7NAydhw3rBAdJT5mv+9Sz8YjBHpRK21ord//N/lgG7zhepRvFVuoPCcgVL/1ftMkyNNVIdeUlPHEEqpV0b1isbYcIeXJvUFu2ysh+1t2ilTK56NOCd29mO3cogOYnwzMlRtc=; X-UUID: 8f2a5072ee2b4105897eef148c312773-20200617 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 835948152; Wed, 17 Jun 2020 15:05:25 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 17 Jun 2020 15:05:22 +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.1497.2 via Frontend Transport; Wed, 17 Jun 2020 15:05:23 +0800 From: Weiyi Lu To: Enric Balletbo Serra , Matthias Brugger , Nicolas Boichat , Rob Herring , Sascha Hauer CC: James Liao , Fan Chen , , , , , , Weiyi Lu , Wendell Lin Subject: [PATCH v16 07/11] soc: mediatek: Add extra sram control Date: Wed, 17 Jun 2020 15:05:13 +0800 Message-ID: <1592377517-14817-8-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1592377517-14817-1-git-send-email-weiyi.lu@mediatek.com> References: <1592377517-14817-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 IG5lZWQgdG8NCmRvIGNsb2NrIGFuZCBpbnRlcm5hbCBpc29sYXRpb24gd2hpbG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