From patchwork Sun Oct 4 05:50:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Chang X-Patchwork-Id: 1376380 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mediatek.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=JN5Kf1it; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4C3tBB4k4fz9sSC for ; Sun, 4 Oct 2020 16:50:42 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725822AbgJDFui (ORCPT ); Sun, 4 Oct 2020 01:50:38 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:39660 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725819AbgJDFui (ORCPT ); Sun, 4 Oct 2020 01:50:38 -0400 X-UUID: 30dced02d66d411b88bb2734d2ad1759-20201004 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:Message-ID:Date:Subject:CC:To:From; bh=R1eNNkVeR51W23UaO/9D2srShKgkSQlKxuAx45eQzEE=; b=JN5Kf1it8RML7AQiqpfdrEha/XerUBDXU10DLO5QLjnuIFI1dgNXYK0mdJ6A0HxuKyYYlJ8iEBLZiu533OLJs0x1xpPbXdgqtwEQ5cz3ogNQg1nzjJeHXWEp+3VdkYPUjHK3NenIFk2coA5NgODLgIDbqz4e6HhqoD3B8ybpt8w=; X-UUID: 30dced02d66d411b88bb2734d2ad1759-20201004 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1485577375; Sun, 04 Oct 2020 13:50:28 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 4 Oct 2020 13:50:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 4 Oct 2020 13:50:26 +0800 From: Phil Chang To: CC: Rob Herring , Frank Rowand , Matthias Brugger , , , , Phil Chang , YJ Chiang , Alix Wu , Joe Liu Subject: [PATCH] [PATCH] of_reserved_mem: Increase the number of reserved regions Date: Sun, 4 Oct 2020 13:50:24 +0800 Message-ID: <20201004055024.23542-1-phil.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Certain SoCs need to support large amount of reserved memory regions, especially to follow the GKI rules from Google. In MTK new SoC requires more than 68 regions of reserved memory for each IP's usage, such as load firmware to specific sapce, so that need to reserve more regisions Signed-off-by: Joe Liu Signed-off-by: YJ Chiang Signed-off-by: Alix Wu Signed-off-by: Phil Chang --- drivers/of/of_reserved_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 46b9371c8a33..595f0741dcef 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers/of/of_reserved_mem.c @@ -22,7 +22,7 @@ #include #include -#define MAX_RESERVED_REGIONS 64 +#define MAX_RESERVED_REGIONS 128 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS]; static int reserved_mem_count;