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::444; helo=mail-pf1-x444.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (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 88A7E21959CB2 for ; Tue, 14 Aug 2018 01:09:32 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id a26-v6so8932380pfo.4 for ; Tue, 14 Aug 2018 01:09:32 -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=NEoa2UEwncZMxWsXsciixKf0E93i8vgvWjNWBpPPDDE=; b=SrTK6WsBiB9T5G9TJy5eB47PifDHZLa8iaXyjgvlLI7z4CpxZZKbM3mVbinxuD+qBs nVAIghwdtG+R6QptDPcol123r75S2yr/DlSt/CSJzOUtnVmHR3zp4jLdbkRNnfxolH54 FcV4HKtfjbPO55pqBXrMt1JkcR0v/9Euu7OkY= 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=NEoa2UEwncZMxWsXsciixKf0E93i8vgvWjNWBpPPDDE=; b=Ad4aNDadRhEd8MRbjNrImZw6nEFWHbzSbnUo8LzoP9yRPhGmHTEdamv57waeF4D0nu ckMUtMC0yofjoZSvoj2wL1arN6mHi/WQvjStkzBO5u0cI5rkTModnJOjG5asuAUYhyG9 Huc7KXvRNa6N/bHJ5PI7pkLvVBGLIIdR/dovTXhajX/Vy/jzRcOcCQ2OZ14Z5vC2jDTJ A6FiDI8Iy//2Er4N1YH2jllgFA/R8ktuLFYux8XGpH33d0nGjLKd7fzKW3OSxeXdKak8 L6EkaS5g9ACHlfwSHFV2os7qZkoaJHXO3WP5hJJ4N+WApTmVk0jGWcAn/Fl4baQRe9+w N8xA== X-Gm-Message-State: AOUpUlEMBggq3CF4RDA/dYAMKtlHDSMVsl0CPd1IxmEIgn1O6I4twwMz p1eO7QPC2S8DKEqF/hwiTuNJ7Q== X-Google-Smtp-Source: AA+uWPxJUpb0LJaM5mBpEFgKClmnWbkdppKfI6bL1puTPuHabqEp+k3QwNsU6N0Plr3/hxS5cOUIlg== X-Received: by 2002:a62:c0a:: with SMTP id u10-v6mr22187198pfi.43.1534234172202; Tue, 14 Aug 2018 01:09:32 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id h130-v6sm72905670pgc.88.2018.08.14.01.09.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 01:09:31 -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, michael.d.kinney@intel.com, lersek@redhat.com, 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 Date: Tue, 14 Aug 2018 16:08:22 +0800 Message-Id: <20180814080903.50466-3-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180814080903.50466-1-ming.huang@linaro.org> References: <20180814080903.50466-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v2 02/43] 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, 14 Aug 2018 08:09:32 -0000 As the macro of PlatformArch.h is platform specific, so separate PlatformArch.h to Hi1610,Hi1616 for unifying D0x. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/{ => Hi1610}/Include/PlatformArch.h | 0 Silicon/Hisilicon/Hi1616/Include/PlatformArch.h | 35 ++++++++++++++++++++ 2 files changed, 35 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..bf0994a5e9 --- /dev/null +++ b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h @@ -0,0 +1,35 @@ +/** @file +* +* Copyright (c) 2018, Hisilicon Limited. All rights reserved. +* Copyright (c) 2018, 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 + -- 2.17.0