Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1218757pxa; Thu, 6 Aug 2020 02:31:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7Cztd0vvqPVuh1jCPTNcGaEE6pTlZNh75uyLve5a+IvjHO0fWBtjX+d8jhkLMtvMVXnWd X-Received: by 2002:a50:cf09:: with SMTP id c9mr3363823edk.90.1596706308145; Thu, 06 Aug 2020 02:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596706308; cv=none; d=google.com; s=arc-20160816; b=En6rmDHkE3tquZtzv+JiAlYZCqlNJfK707mvfJfsEQ+VbzrPnT63m7lRH9YTG7GruC H4llveBJgvOLNaEsEhEpSUGAyWXTC3idSu28I1o9m8TDgqGaCxPv6+2xNjD++8sqC0a1 r7436U3F2RXPr5mnAGfxk1S2R2HJzg60CZv2LzM1excqRY/qPRjwC/4jZZESK5HiZd8S x28tHBP/TBvw+32OPZqnXq14yPZbCn2bgMiCrOlMhL8EhLAp3kUXVKIXFHUORspLXFji iRyfCMBXJBtaXQwifyeasBGgr8Hk820QjZK4E5itZt86waugj4WjRr7M5oid/p7guzFv lH7g== 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=dAz5+dikMY45dDgsG5MgvToc8YR8PWJHsZfl2lLC1rs=; b=hdbCWN4WykLHvenAHD9u6eBdFUsgZ02XDLaHlrrzNFnSQPaFj3ZVhtOX+3QoUxZDN7 0oDC9lM639jOSeAqTozkUUJjbr9nJdF/b5qwO2SsDBH0ue3oQdAMHAYgQ9ef3XlcyeRe JIRVHmQJ5VzHB583bWbqsCYuiKAsmTFe1zW2iJQfv3Pnhbv5FWnlHey5nMnUCFqC17Rs ZoqK3Js5VLv5l4e6iSxBm22TcDGas1q9ElpqncJAg6faYOO+vb0yYiZ8QCAiawTxiVOi JRp69cGbn6KPGNtPyJNhnLDDFPKkagKQGrnr6TwyWzjuXrWH3zXIKRv4ajShhwPdkSrw zu6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="LOB/IZab"; 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 i6si2831607ejc.494.2020.08.06.02.31.25; Thu, 06 Aug 2020 02:31:48 -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="LOB/IZab"; 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 S1729189AbgHFJ3w (ORCPT + 99 others); Thu, 6 Aug 2020 05:29:52 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38463 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729157AbgHFJXy (ORCPT ); Thu, 6 Aug 2020 05:23:54 -0400 X-UUID: cffde7ae370a4f24a6aa521c9dd52791-20200806 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=dAz5+dikMY45dDgsG5MgvToc8YR8PWJHsZfl2lLC1rs=; b=LOB/IZabiPTsKLZdckI2YeZYgnUF7ubZYCiDTvad1xcuxONCXhtNFlp1m1oxW4+xXSkixTta1hPJwUlR6RJJF7oFRw9PwY6PWGhTIJ7nqHS+3jFI1c22VJqqUm4qpS3rLsbw7Fzx5iadLySxP9s7ikEM0ij4GXLqdRr0vz1mNng=; X-UUID: cffde7ae370a4f24a6aa521c9dd52791-20200806 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 866418727; Thu, 06 Aug 2020 17:22:03 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 6 Aug 2020 17:22:00 +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.1497.2 via Frontend Transport; Thu, 6 Aug 2020 17:22:00 +0800 From: Weiyi Lu To: Enric Balletbo Serra , Matthias Brugger , Nicolas Boichat , Rob Herring , Sascha Hauer CC: James Liao , Fan Chen , , , , , , Weiyi Lu Subject: [PATCH v17 08/12] soc: mediatek: Add extra sram control Date: Thu, 6 Aug 2020 17:21:51 +0800 Message-ID: <1596705715-15320-9-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1596705715-15320-1-git-send-email-weiyi.lu@mediatek.com> References: <1596705715-15320-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 136E1D456467830D06C2796C988E92E6E87735DDE12877E946BEB67FF3B99FB22000:8 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 IG5lZWQgdG8NCm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