From patchwork Tue Jul 24 07:08:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 142705 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp6929672ljj; Tue, 24 Jul 2018 00:10:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeCoGSusrO0aE+ky6EiC1ZxnEjKyKNuVRhvXGFNeaYXsZBlvXmbKCgi0FiNMww0GfdFXrge X-Received: by 2002:a63:2644:: with SMTP id m65-v6mr14996216pgm.371.1532416247043; Tue, 24 Jul 2018 00:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532416247; cv=none; d=google.com; s=arc-20160816; b=CRmX1ozewA6swyqnBko+DOSsfRKkiqV5MlSJkUiHr+qGEycdryWKl1LfZGFgRmRG23 rS6vOXK1HIKKOZv7LChBQyOOm267iVVru/tri1lAQZirhUMo/jQQMeD1yHBoFOHkUrM3 Eyol94N/fqtOsfRXqxBb6YO5a+Jsurz4LIwx6Dqr3yTpcjriH+SyNr8LkujhQoHiT7+A ybVSNwDA8FOcktuaKkmT6k5nx/EetvzoKJVZ2WTH1oKIO/YXe+VBlKTYzV5LqywBkryP 6VyG8rsomSAnoGfVQbyWZNX2MIQuyERuQm7mLF87GwqVEwpPIhlf9KN1tzyWqNbclXC7 Q+GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=fptiJdHYqBFeLpuD1Cbpoq8OrhE5d6AxS2l08T5+d5o=; b=fP2+Uk1oe7u8gLNCWuXOv2OvW3hU8pPWtJ4AfUFLojGeu3no0r2kJCCSIBjUjJjjvb FO68GuGesGGeCiI4M5aoBspd2TZ7XTqevCdRY3aadWQFXhqaw6aCPeoATjvu8onFZIil A4A7C9+Yx+76DOViU+Lil3ocoau4SZJUvBonilzaOIhxnq1FG3CFpLPAZ8RMc2z7e5aI ppAd3NnqiO3pOmgM4mdBGEqx92WwnVbwstrcT5+M3Vx5y1mfjV0rsv9/EscQHWOzXS/E LR+93GZSAgU0C6/UNBVFwlVOeF5CJXDF5JGQl6CSCVlLuLMZRLk9+XJNESPs9T+lb7KP REvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BS4xds4c; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id r73-v6si10203789pfr.231.2018.07.24.00.10.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 00:10:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BS4xds4c; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A1829210C1225; Tue, 24 Jul 2018 00:10:46 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::544; helo=mail-pg1-x544.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2321C210C0F7B for ; Tue, 24 Jul 2018 00:10:46 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id n7-v6so2217006pgq.4 for ; Tue, 24 Jul 2018 00:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aV4R1nUqyR6uLEgp6Dz9yTMt8zE9ROZcKTnHMCtP8fM=; b=BS4xds4cVggXMZaAsFCrXMQqh9ZmHzG4GYQgTfb9taOazZrgXHRORToOckocnuGiH0 ybPZur/P/AaWBbEqT+O14JiIYtk8hmzlb/5JQJPqDuyefuVCp07myUdcIjLsAb9Rs/y2 rsYJRzqzpjfaGGmxSNoOjmR1wsoXCp8WPMW1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aV4R1nUqyR6uLEgp6Dz9yTMt8zE9ROZcKTnHMCtP8fM=; b=BZ7nblLeRq9gR1El+9JK6Sp8S6cDNLA4zqf/5s8QZA4lZY2nk24vJF4wpARp4Y+Hti xYO39Th4upEHCqHSfrHpn8g4UxyXsxAWH0bponeabNLO+zm32r3Eo0tpeCRQ1GzUHdhb rGii3117RwQioGXnNzLyDxJ31Cg4pzSRI8mwmC7gyeDB3QvhaY3SrCTlQHlXdyIupGkc YLTyBum4dx6xDAogYvueaVxZmd4anhrvdqfO9pdS55H/GyLM9VXDIA8iqsoiABXBtxj1 gGdBInfvT4L4wPTO0YSExPJK+IgredSyBINmXirLC95kOCv/2M0pykmyHfUc8YEAvVrE eNuw== X-Gm-Message-State: AOUpUlGDN3zQvq5biNMH+ge7gFlSAmrk9T7DscB2MOfmwRs/RMUEtGNa e/5oGf8GXaZGEyvFKdSKpBKTJg== X-Received: by 2002:a62:789:: with SMTP id 9-v6mr16587679pfh.213.1532416245815; Tue, 24 Jul 2018 00:10:45 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id t14-v6sm11449788pgu.0.2018.07.24.00.10.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jul 2018 00:10:45 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Tue, 24 Jul 2018 15:08:46 +0800 Message-Id: <20180724070922.63362-3-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180724070922.63362-1-ming.huang@linaro.org> References: <20180724070922.63362-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v1 02/38] Silicon/Hisilicon: Separate PlatformArch.h X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, Zhou You , huangdaode@hisilicon.com, guoheyi@huawei.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" As the mocro of PlatformArch.h is platform special, so Separate PlatformArch.h to Hi1610,Hi1616,Hi1620 for unifying D0x. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhou You Signed-off-by: Ming Huang --- Silicon/Hisilicon/{ => Hi1610}/Include/PlatformArch.h | 0 Silicon/Hisilicon/Hi1616/Include/PlatformArch.h | 35 ++++++++++++++++++++ Silicon/Hisilicon/Hi1620/Include/PlatformArch.h | 34 +++++++++++++++++++ 3 files changed, 69 insertions(+) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h similarity index 100% rename from Silicon/Hisilicon/Include/PlatformArch.h rename to Silicon/Hisilicon/Hi1610/Include/PlatformArch.h diff --git a/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h new file mode 100644 index 0000000000..45995c5893 --- /dev/null +++ b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h @@ -0,0 +1,35 @@ +/** @file +* +* Copyright (c) 2015, Hisilicon Limited. All rights reserved. +* Copyright (c) 2015, Linaro Limited. All rights reserved. +* +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* +**/ + + + +#ifndef _PLATFORM_ARCH_H_ +#define _PLATFORM_ARCH_H_ + +#define MAX_SOCKET 2 +#define MAX_DIE 4 +#define MAX_DDRC 2 +#define MAX_NODE (MAX_SOCKET * MAX_DIE) +#define MAX_CHANNEL 4 +#define MAX_DIMM 3 +#define MAX_RANK_CH 12 +#define MAX_RANK_DIMM 4 +// Max NUMA node number for each node type +#define MAX_NUM_PER_TYPE 8 + +#define S1_BASE 0x40000000000 + +#endif + diff --git a/Silicon/Hisilicon/Hi1620/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1620/Include/PlatformArch.h new file mode 100644 index 0000000000..7243a9ec35 --- /dev/null +++ b/Silicon/Hisilicon/Hi1620/Include/PlatformArch.h @@ -0,0 +1,34 @@ +/** @file +* +* Copyright (c) 2015, Hisilicon Limited. All rights reserved. +* Copyright (c) 2015, Linaro Limited. All rights reserved. +* +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* +**/ + + + +#ifndef _PLATFORM_ARCH_H_ +#define _PLATFORM_ARCH_H_ + +#define MAX_SOCKET 2 +#define MAX_DIE 4 +#define MAX_DDRC 4 +#define MAX_NODE (MAX_SOCKET * MAX_DIE) +#define MAX_CHANNEL 8 +#define MAX_DIMM 2 +#define MAX_RANK_CH 8 +#define MAX_RANK_DIMM 4 +// Max NUMA node number for each node type +#define MAX_NUM_PER_TYPE 8 + + +#endif +