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::542; helo=mail-pg1-x542.google.com; envelope-from=haojian.zhuang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 CA001210F92B5 for ; Tue, 21 Aug 2018 04:35:54 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id h17-v6so2097671pgv.3 for ; Tue, 21 Aug 2018 04:35:54 -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=oM2CuTQ398BtmId27o9qnYp7mBshE6q7OnNqPiHrbhY=; b=kULbtpb6JvqsgeFtGpQ7ykH6a5Mk4AiLeJweyJUXTnsVAhb0+r+GIDi6FdnRC0gX7m lZUpve3fP6x8z7cH4liH8zd6ZwWnhAltg8btXh03PIpz00KQKWn9ip6Bib7Skr+NarPv G6YCP7g4uhi+qizlGNfom1c7WOQxfKN64NjDo= 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=oM2CuTQ398BtmId27o9qnYp7mBshE6q7OnNqPiHrbhY=; b=s9lxOjI1Du2grSMnEkyG6A4w3VkirbtTaPK6+5bae/EyYoC8IoEBLtJM7Io6484fRh F+VRYXvjcqtqlgqDHbb6y/ALX/xfrhha1A8PrrdXTkNoyJmF3Nxw+PD9OnnvAGXKAh4k G+MRi5LB6Ss6lalZjDwRlfP0saSSSMnsYJ5kdPkOh6hHbap+BGkvKa9XwtZWk749BNN/ 4nMWS+7PL5z3HB8M4wpPLGk8pjtzHygHxdE9O0VKlraafKU8C0JGe7oWXDCTtFCKXF9+ dJQBEDQ6dlhNorBpDi+higurdaYuZAoTqQA0xsFPKDpQSdQ0NsuqAiC5EgzHsbgUYGuX JRyg== X-Gm-Message-State: AOUpUlEWfS2hn7eJMPLMXk5IMmuR8QC+LzRR03waaf0i9qkmLUGTnYOH YHkhLDmIrMQT7aON2rpn0+8F040aNf9aVg== X-Google-Smtp-Source: AA+uWPyf6dDeeRz1UGCPRjUw16MLASxlFZbNVV3OXxDwOvO1N6+XpBpvTsmKd+Co758Rx5AHzJB7Jg== X-Received: by 2002:a63:2fc6:: with SMTP id v189-v6mr46962518pgv.61.1534851353943; Tue, 21 Aug 2018 04:35:53 -0700 (PDT) Received: from localhost.localdomain ([64.64.108.219]) by smtp.gmail.com with ESMTPSA id s14-v6sm21678388pfj.105.2018.08.21.04.35.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Aug 2018 04:35:53 -0700 (PDT) From: Haojian Zhuang To: edk2-devel@lists.01.org Date: Tue, 21 Aug 2018 19:35:38 +0800 Message-Id: <1534851338-21419-5-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534851338-21419-1-git-send-email-haojian.zhuang@linaro.org> References: <1534851338-21419-1-git-send-email-haojian.zhuang@linaro.org> Subject: [PATCH edk-platforms v1 4/4] Platform/HiKey: enable usb driver X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2018 11:35:55 -0000 Enable Designware USB 2.0 device driver on HiKey platform. It's used in Android Fastboot App. Cc: Leif Lindholm Cc: Ard Biesheuvel Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Haojian Zhuang --- Platform/Hisilicon/HiKey/HiKey.dec | 2 ++ Platform/Hisilicon/HiKey/HiKey.dsc | 13 +++++++++++++ Platform/Hisilicon/HiKey/HiKey.fdf | 3 +++ 3 files changed, 18 insertions(+) diff --git a/Platform/Hisilicon/HiKey/HiKey.dec b/Platform/Hisilicon/HiKey/HiKey.dec index d5de1a165910..ed9eab7ff2a9 100644 --- a/Platform/Hisilicon/HiKey/HiKey.dec +++ b/Platform/Hisilicon/HiKey/HiKey.dec @@ -36,3 +36,5 @@ [PcdsFixedAtBuild.common] gHiKeyTokenSpaceGuid.PcdAndroidBootFile|{ 0x36, 0x8b, 0x73, 0x3a, 0xc5, 0xb9, 0x63, 0x47, 0xab, 0xbd, 0x6c, 0xbd, 0x4b, 0x25, 0xf9, 0xff }|VOID*|0x00000002 gHiKeyTokenSpaceGuid.PcdAndroidFastbootFile|{ 0x2a, 0x50, 0x88, 0x95, 0x70, 0x53, 0xe3, 0x11, 0x86, 0x31, 0xd7, 0xc5, 0x95, 0x13, 0x64, 0xc8 }|VOID*|0x00000003 gHiKeyTokenSpaceGuid.PcdSdBootDevicePath|L""|VOID*|0x00000004 + gHiKeyTokenSpaceGuid.PcdAndroidFastbootNvmDevicePath|L""|VOID*|0x00000005 + gHiKeyTokenSpaceGuid.PcdArmFastbootFlashLimit|L""|VOID*|0x00000006 diff --git a/Platform/Hisilicon/HiKey/HiKey.dsc b/Platform/Hisilicon/HiKey/HiKey.dsc index 4b5b73c15afe..93b981767681 100644 --- a/Platform/Hisilicon/HiKey/HiKey.dsc +++ b/Platform/Hisilicon/HiKey/HiKey.dsc @@ -53,12 +53,16 @@ [LibraryClasses.common] # USB Requirements UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf + UsbSerialNumberLib|Platform/Hisilicon/Library/UsbSerialNumberLib/UsbSerialNumberLib.inf + # Network Libraries NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf + DmaLib|EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf + [LibraryClasses.common.SEC] PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf @@ -85,6 +89,7 @@ [PcdsFeatureFlag.common] [PcdsFixedAtBuild.common] gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4 + gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|"hikey" gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Alpha" # System Memory (1GB) @@ -126,6 +131,11 @@ [PcdsFixedAtBuild.common] gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000 # + # DW USB controller + # + gDwUsbDxeTokenSpaceGuid.PcdDwUsbDxeBaseAddress|0xF72C0000 + + # # # Fastboot # @@ -222,6 +232,9 @@ [Components.common] # # USB Peripheral Support # + Platform/Hisilicon/HiKey/HiKeyUsbDxe/HiKeyUsbDxe.inf + EmbeddedPkg/Drivers/DwUsbDxe/DwUsbDxe.inf + Platform/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf # diff --git a/Platform/Hisilicon/HiKey/HiKey.fdf b/Platform/Hisilicon/HiKey/HiKey.fdf index 89d3e9280ff6..aedf71667903 100644 --- a/Platform/Hisilicon/HiKey/HiKey.fdf +++ b/Platform/Hisilicon/HiKey/HiKey.fdf @@ -152,6 +152,9 @@ [FV.FvMain] # # USB Peripheral Support # + INF Platform/Hisilicon/HiKey/HiKeyUsbDxe/HiKeyUsbDxe.inf + INF EmbeddedPkg/Drivers/DwUsbDxe/DwUsbDxe.inf + INF Platform/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf INF EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf # -- 2.7.4