From patchwork Thu Feb 9 14:11:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 93702 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp19660qgi; Thu, 9 Feb 2017 06:12:12 -0800 (PST) X-Received: by 10.36.19.133 with SMTP id 127mr3278713itz.3.1486649532321; Thu, 09 Feb 2017 06:12:12 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d15si17985339ioj.51.2017.02.09.06.12.11; Thu, 09 Feb 2017 06:12:12 -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 85E8C62D63; Thu, 9 Feb 2017 14:12:11 +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_H2, 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 D5E2A609A9; Thu, 9 Feb 2017 14:12:06 +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 6C785609A9; Thu, 9 Feb 2017 14:12:05 +0000 (UTC) Received: from mail-pf0-f176.google.com (mail-pf0-f176.google.com [209.85.192.176]) by lists.linaro.org (Postfix) with ESMTPS id 1D3F96091D for ; Thu, 9 Feb 2017 14:12:04 +0000 (UTC) Received: by mail-pf0-f176.google.com with SMTP id e4so1035931pfg.1 for ; Thu, 09 Feb 2017 06:12:04 -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=B2VGY7W5hkywoEJUZQ9zNMaakOkY2IRYcvOVA83dCKg=; b=ESlK1gaguNG6Anr/O1lBFJdqHpOxARuPwk3Rb5/AbYPQ7ElrbWCWeq5h4fOTNcdFL3 hxoLhoPsWV+XpSddhUlwkmhNve5iPlyRZtbuZOXvOZ0wq9ezlMfNtS83J5Iw3Hc/LxWe Zy6NB/lM4b/U/u0Nxrx7/j6wFLuiV/fwqypZ6PZnEN2SIOev/ksyXKOZWSGuXHlFQIUf tqTwBIHlLVZnuCLG/o5FGv6G0eOtljz+ClJ9ZXaWKO66HsmKMdoy1m1rJw1xTq5TQnno gIjHLp4OoqYN1776SkzXFCFUN6+PLSjyJL8srxUFhBpX+v1Agl4g3kJRWS3Sj+cb1pBU nMNQ== X-Gm-Message-State: AMke39lYAorHnAyVEWAoyTJO8b9X11dpbPxM1q3TGc58kDpw5KGN3oL2Et3Led9DrA7qhJ94bPs= X-Received: by 10.98.49.198 with SMTP id x189mr4014678pfx.20.1486649523262; Thu, 09 Feb 2017 06:12:03 -0800 (PST) Received: from localhost.localdomain ([45.56.159.216]) by smtp.gmail.com with ESMTPSA id m6sm29529920pfm.22.2017.02.09.06.12.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Feb 2017 06:12:02 -0800 (PST) From: Haojian Zhuang To: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, linaro-uefi@lists.linaro.org Date: Thu, 9 Feb 2017 22:11:42 +0800 Message-Id: <1486649511-4149-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [Linaro-uefi] [PATCH v2 0/9] enable Android Fastboot App on Hikey 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" v2: * Fix the register offset sequence in Hi6220 head file. * Remove the unnecessary dependency. Set them in DSC & FDF file instead. v1: * Enable Android Fastboot App on HiKey platform. Haojian Zhuang (9): Platforms/Hisilicon/HiKey: append more register definitions Platforms/Hisilicon/HiKey: add HiKey variable space Drivers/Usb/DwUsb: support designware usb Platforms/Hisilicon/HiKey: append GUID in dec Platforms/Hisilicon/HiKey: support GPIO controller Platforms/Hisilicon/HiKey: support designware USB controller Platforms/Hisilicon/HiKey: support fastboot driver Platforms/Hisilicon/HiKey: add platform boot manager Platforms/Hisilicon/HiKey: enable Android Fastboot Chips/Hisilicon/Hi6220/Include/Hi6220.h | 29 + Drivers/Usb/DwUsbDxe/DwUsbDxe.c | 796 +++++++++++++++++++++ Drivers/Usb/DwUsbDxe/DwUsbDxe.dec | 46 ++ Drivers/Usb/DwUsbDxe/DwUsbDxe.h | 627 ++++++++++++++++ Drivers/Usb/DwUsbDxe/DwUsbDxe.inf | 52 ++ Include/Protocol/DwUsb.h | 81 +++ OpenPlatformPkg.dec | 1 + Platforms/Hisilicon/HiKey/HiKey.dec | 1 + Platforms/Hisilicon/HiKey/HiKey.dsc | 17 +- Platforms/Hisilicon/HiKey/HiKey.fdf | 6 +- .../HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.c | 705 ++++++++++++++++++ .../HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf | 61 ++ .../Hisilicon/HiKey/HiKeyGpioDxe/HiKeyGpioDxe.c | 68 ++ .../Hisilicon/HiKey/HiKeyGpioDxe/HiKeyGpioDxe.inf | 37 + .../Hisilicon/HiKey/HiKeyUsbDxe/HiKeyUsbDxe.c | 266 +++++++ .../Hisilicon/HiKey/HiKeyUsbDxe/HiKeyUsbDxe.inf | 46 ++ .../Hisilicon/HiKey/Include/Guid/HiKeyVariable.h | 24 + .../Library/PlatformBootManagerLib/PlatformBm.c | 485 +++++++++++++ .../Library/PlatformBootManagerLib/PlatformBm.h | 59 ++ .../PlatformBootManagerLib.inf | 88 +++ .../Library/PlatformBootManagerLib/QuietBoot.c | 680 ++++++++++++++++++ 21 files changed, 4172 insertions(+), 3 deletions(-) create mode 100644 Drivers/Usb/DwUsbDxe/DwUsbDxe.c create mode 100644 Drivers/Usb/DwUsbDxe/DwUsbDxe.dec create mode 100644 Drivers/Usb/DwUsbDxe/DwUsbDxe.h create mode 100644 Drivers/Usb/DwUsbDxe/DwUsbDxe.inf create mode 100644 Include/Protocol/DwUsb.h create mode 100644 Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.c create mode 100644 Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf create mode 100644 Platforms/Hisilicon/HiKey/HiKeyGpioDxe/HiKeyGpioDxe.c create mode 100644 Platforms/Hisilicon/HiKey/HiKeyGpioDxe/HiKeyGpioDxe.inf create mode 100644 Platforms/Hisilicon/HiKey/HiKeyUsbDxe/HiKeyUsbDxe.c create mode 100644 Platforms/Hisilicon/HiKey/HiKeyUsbDxe/HiKeyUsbDxe.inf create mode 100644 Platforms/Hisilicon/HiKey/Include/Guid/HiKeyVariable.h create mode 100644 Platforms/Hisilicon/Library/PlatformBootManagerLib/PlatformBm.c create mode 100644 Platforms/Hisilicon/Library/PlatformBootManagerLib/PlatformBm.h create mode 100644 Platforms/Hisilicon/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf create mode 100644 Platforms/Hisilicon/Library/PlatformBootManagerLib/QuietBoot.c