From patchwork Tue Aug 14 08:08:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144110 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4047977ljj; Tue, 14 Aug 2018 01:09:34 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwDyOvLAUPwcJufd8VxL85sHJEjmvqGcSkl1VTV5iIptirUsspyCyCpps6oaw54SP/l4vKD X-Received: by 2002:a65:6398:: with SMTP id h24-v6mr20159838pgv.245.1534234174660; Tue, 14 Aug 2018 01:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534234174; cv=none; d=google.com; s=arc-20160816; b=osmg0TeXMFxTufXGEr9LpOqtettIwKieNkUGkkmA9yqlxv4A+g3+aemgbkJ4lyrrEp GHxSiLjqkb+G/WNrjbw1vlMZfEwHvbbTrVX7ZrDHQFRxlj1CxSzoaQY5nj+eMj8Yuida WBGSkAgm1F7qNmQH7qHp/NEJwSamD4T8+xAIfF3ISkCf7n7PouUgdfdFeuDmWK9ZHDFo t6Nr/Lq1FcfEuHH2dAFDxUJGMlXM/t/kYp45/9FDucaxdH66/w9PjeFXuxe1+UPxYvpd 45lvfY9bK21CmZO8G/XPWYnXeLB3dPINftXQYZhC5UXOjHCl9SP+uOvuXM7gH8/KmIfM bK7w== 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=+3CSWFHVlIn6KgpyzbHmZ5cJL/nOC24/0LcR4OcA+cM=; b=eslS3azTwdcD+vU2qUB1nD8ll6eZGponu2KLPpJoyZFUfn0Q5uPgDSLUj3bjGVqI2e m7qlBxufnt4HEqeEV1JM5pWNYvSEnrwrF9IJ5F3CfFD+PLTIjN52MyV4qBx4eWzgMUGq BPHkWQPaf9E6+X0185Quk9Zxko/E7HaQ1g1QIFvncK/BPGZ0vgTBoPEAjxHgnlCM3+nO ZwrG7FySSZ2tDb4QSpO2Lebas7t2Ys534tOmEQeSBeDVAnERYchcKWS4WLTPJoEsXwXu w0EYJqMgIR+Hv5gL9aX/P4gFAQG/LejIwFI56BHzQmoyhOTTvhtgiVBXeeN9M9sxicij niiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SrTK6WsB; 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 b18-v6si19391058pgd.185.2018.08.14.01.09.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 01:09:34 -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=SrTK6WsB; 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 99B33210F154C; Tue, 14 Aug 2018 01:09:33 -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::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-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 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: [edk2] [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: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, guoheyi@huawei.com, huangdaode@hisilicon.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 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..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 +