From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AAOMgpeGljox5sh0T2gjYfs2xTe1PmKZa+IononubDOC06ZcJb/jvu1ck969j+fNkVGAGxzwXeyLOA== 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 Cc: ard.biesheuvel@linaro.org, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, Ming Huang , Zhou You 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: [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: , X-List-Received-Date: Tue, 24 Jul 2018 07:10:46 -0000 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(+) 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 + -- 2.17.0