From patchwork Mon Jan 16 12:18:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 91558 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2432obz; Mon, 16 Jan 2017 04:18:38 -0800 (PST) X-Received: by 10.107.199.68 with SMTP id x65mr11482485iof.216.1484569118031; Mon, 16 Jan 2017 04:18:38 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l26si2660597iti.43.2017.01.16.04.18.37; Mon, 16 Jan 2017 04:18:37 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 843B160A0E; Mon, 16 Jan 2017 12:18:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5F7AB607DE; Mon, 16 Jan 2017 12:18:33 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D348E60820; Mon, 16 Jan 2017 12:18:31 +0000 (UTC) Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by lists.linaro.org (Postfix) with ESMTPS id 6F9D0607DB for ; Mon, 16 Jan 2017 12:18:30 +0000 (UTC) Received: by mail-pg0-f45.google.com with SMTP id 14so15452684pgg.1 for ; Mon, 16 Jan 2017 04:18:30 -0800 (PST) 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; bh=eoPHqbxYsn1tiT0l+aRJ9HHA8/NW1LOx8evUE+aELUk=; b=s2C5Y2XbjQUXD69czgRGwQf3ZdEYx39FyLL9JMekbvkEbQ+jyajVWUpwypnaz6Hm/3 sqlOABd1Kz9/kK0wK8L8AAK1yR4nsVRhBlYv3xuiCr91iP5dgbFG4FyGaf/oVGH2K7lS HYyxDIoC/MmfO6BXZLyscsrTUIqpaJrzj4HoBg+SDLktjhEgCFtM3fsIn9tuxZeKG1xa u1nDTkmDT1sM2nIX603T4Qh2+O8zZX7Pj1qGCve6TcVuDk0JJ7lcE4kjYGdO+WbXcW34 Y/M14tuXz87w9P29A+PVms5AohMkp5eBACA62LuW8m8i0abUZB6L+R7jJCOICY0eFVgB BhVg== X-Gm-Message-State: AIkVDXK9ks17tX8VefDDWgl/pNVvalDnQBTUPY1WIBJCVIVv0EAJLqjMlRsfhPjNzF5uaJTL4a4= X-Received: by 10.98.218.9 with SMTP id c9mr35612163pfh.99.1484569109674; Mon, 16 Jan 2017 04:18:29 -0800 (PST) Received: from localhost.localdomain ([45.56.159.104]) by smtp.gmail.com with ESMTPSA id w65sm47452328pfw.9.2017.01.16.04.18.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Jan 2017 04:18:29 -0800 (PST) From: Haojian Zhuang To: linaro-uefi@lists.linaro.org, ard.biesheuvel@linaro.org, leif.lindholm@linaro.org Date: Mon, 16 Jan 2017 20:18:19 +0800 Message-Id: <1484569102-15944-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [Linaro-uefi] [PATCH v6 0/3] add hikey platform X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" v6: 1. Fix ident. 2. Fix the memory layout register offset. v5: 1. Optimize on identifying memory size. 2. Remove PcdFdtDevicePath. v4: 1. Add bit definition of MDDRC_AXI_MAP register. 2. Clean patches with comments. v3: 1. Clean patches with comments. v2: 1. Fix UniApp in hikey DSC file. v1: 1. Add hikey platform with DwEmmc Driver. Haojian Zhuang (3): Platforms: add skeleton of hikey platform Drivers/Mmc/DwEmmc: add designware emmc support Platforms/Hisilicon/HiKey: enable emmc Chips/Hisilicon/Hi6220/Hi6220.dec | 32 + Chips/Hisilicon/Hi6220/Include/Hi6220.h | 77 +++ Drivers/Mmc/DwEmmcDxe/DwEmmc.h | 127 ++++ Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.c | 648 +++++++++++++++++++++ Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.dec | 42 ++ Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.inf | 54 ++ Platforms/Hisilicon/HiKey/HiKey.dec | 36 ++ Platforms/Hisilicon/HiKey/HiKey.dsc | 480 +++++++++++++++ Platforms/Hisilicon/HiKey/HiKey.fdf | 351 +++++++++++ Platforms/Hisilicon/HiKey/Include/ArmPlatform.h | 26 + Platforms/Hisilicon/HiKey/Library/HiKeyLib/HiKey.c | 159 +++++ .../Hisilicon/HiKey/Library/HiKeyLib/HiKeyHelper.S | 49 ++ .../Hisilicon/HiKey/Library/HiKeyLib/HiKeyLib.inf | 51 ++ .../Hisilicon/HiKey/Library/HiKeyLib/HiKeyMem.c | 204 +++++++ 14 files changed, 2336 insertions(+) create mode 100644 Chips/Hisilicon/Hi6220/Hi6220.dec create mode 100644 Chips/Hisilicon/Hi6220/Include/Hi6220.h create mode 100644 Drivers/Mmc/DwEmmcDxe/DwEmmc.h create mode 100644 Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.c create mode 100644 Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.dec create mode 100644 Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.inf create mode 100644 Platforms/Hisilicon/HiKey/HiKey.dec create mode 100644 Platforms/Hisilicon/HiKey/HiKey.dsc create mode 100644 Platforms/Hisilicon/HiKey/HiKey.fdf create mode 100644 Platforms/Hisilicon/HiKey/Include/ArmPlatform.h create mode 100644 Platforms/Hisilicon/HiKey/Library/HiKeyLib/HiKey.c create mode 100644 Platforms/Hisilicon/HiKey/Library/HiKeyLib/HiKeyHelper.S create mode 100644 Platforms/Hisilicon/HiKey/Library/HiKeyLib/HiKeyLib.inf create mode 100644 Platforms/Hisilicon/HiKey/Library/HiKeyLib/HiKeyMem.c