Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1244486ybk; Thu, 21 May 2020 02:08:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmQFqOZd3KASYJpC776MSbdEleZOlKjNDEIWkYOv0FHPCuaFHWsFh7Qf1cx5+MNd5U+8iZ X-Received: by 2002:aa7:d2d0:: with SMTP id k16mr6851140edr.272.1590052111069; Thu, 21 May 2020 02:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590052111; cv=none; d=google.com; s=arc-20160816; b=mKwTn0qr57WBVa7HM8YRB/Yfm4bKcc0EvQOr2EV/5cx6cervL812p1cu4sinH+Fp1L nKmZNXWQAY3ZOVLxW/5NECYMkILHto2EFN3vemcJ8ht8SB5t/E6VAvzLYlTKmzngWJ5n edr/BGbmCvRFunOAB08RJLqKmITJNwiYHjEeMOkVwvYZRgfKKCauea2h/V2MmWETFsR0 YWmjfNAmH8N/ZWNCPC1EmeqO59ttQ3FCPdEHyyPu9efMlECwV85ut3UhPQXZgOuhUayu CY9jBF0rKENT0E662fLou7xJph+qhvpJaIvopqkraMw620dvZcdBSogNvbBOQnT9Shgw Wdrg== 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=3x5Iw82ou/x1N5CV0omJ9HHBcPff4hQyQEtB2GzJ3Fw=; b=T2Tl/6qwMcvNR4ZryRG5QLv/NcaXm732NG384WqaA+plr9YayfG+EM43ciKerTvXKe ktGdRj25wPMG07860+deo3imNSUtmdlm6X5iOxU+rK//nV64qidiaQiDE4gS0oTGq9F1 hYh4CGPSEbsNrn5T4xJQ6j5W4APf2oYrCRGyUIOJK6ugFWeskUqnG0OMD+6rs3bQmH5e DwGP2rmRNHZy7ugN5gNAcL/8Du28xbSUHM8iiiovXXI8c1CbtkdXmVfOZyrD3odLGspr 10wuAWnrKSS0C3Q4HW8kcbxiJtRxpmil2oBhsjxXziURI8FVtbP68IOypKJs3KFyBY5p I4kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tVtk+X1E; 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 lu18si3056773ejb.482.2020.05.21.02.08.08; Thu, 21 May 2020 02:08:31 -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=tVtk+X1E; 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 S1728794AbgEUJGk (ORCPT + 99 others); Thu, 21 May 2020 05:06:40 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:11823 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728758AbgEUJGh (ORCPT ); Thu, 21 May 2020 05:06:37 -0400 X-UUID: a9358ea6306d4c398ad3eb8f190fe0c1-20200521 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=3x5Iw82ou/x1N5CV0omJ9HHBcPff4hQyQEtB2GzJ3Fw=; b=tVtk+X1E/6vyZtdGiN4zS1sKpnzNH282hFJEZU/JYov7IXtcsOzZkhKzSKrhdfQv9BJJpM+Pc2ZbV5SKTy909slONpPcsZSh4aG4uVSH91sHOUNNiknbSGpi6PRpYQ5Wz9crX8t2VZC3GlZTjcl7FtHE/0KgvdkLvj8IJa3sWfs=; X-UUID: a9358ea6306d4c398ad3eb8f190fe0c1-20200521 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1939490110; Thu, 21 May 2020 17:06:33 +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, 21 May 2020 17:06:30 +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, 21 May 2020 17:06:29 +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 v15 07/11] soc: mediatek: Add extra sram control Date: Thu, 21 May 2020 17:06:20 +0800 Message-ID: <1590051985-29149-8-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1590051985-29149-1-git-send-email-weiyi.lu@mediatek.com> References: <1590051985-29149-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 8A68BC54DB990D2FB9B11722A56D7492BA8022A5A3032961A936EEEE1C81B39A2000: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 IG5lZWQgdG8NCmRvIGNsb2N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