From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=oR0tUTXN; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.208.196, mailfrom: mw@semihalf.com) Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by groups.io with SMTP; Thu, 25 Apr 2019 04:29:38 -0700 Received: by mail-lj1-f196.google.com with SMTP id y16so9117023ljg.1 for ; Thu, 25 Apr 2019 04:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sa95LdN7ux/pb0dQDL92KrkyjMTCy0v4nJNzsGvx60o=; b=oR0tUTXNwd0s0sbRq/P9JbvOlgeXW4LI2SEdO3w57LxduOa2VLmjDmV/JfQUQxICQJ kkOCdZPHcoZJ6IUceGz1LPmwo7Ge7fQzAjxNJsZsQk0Mbx+CGJieLkRzrdlo6ia5NQTY 5zTnXFRox6JVfpaWsFUxWjQhXkr81xfb9pywlz6T2w8wqzgolUbf7ryddEM3no1lsEgk bTYoHOQpU9TE2FYQ5Jq3fuuTWHcwcpo+J2G9b1HKxRq3cUlLE+U4H3Udrvhf49tkd8/P 3nvvJcSBoWslbq+ojTKKPZIo7wbUbf/gYYqw3U3m3CBYArJ9zeGlDHftngVq/CrT9ami txyw== 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=sa95LdN7ux/pb0dQDL92KrkyjMTCy0v4nJNzsGvx60o=; b=pFepPHEjX0Z1XgDCYyQcc7hIUvn8oNkdjBd7F/dzFg5DMWSI17r0bjpKUGL6xL5iYp pY9pI86dtOqitX+s7qyTFOA9/TjZF032y89FOvmWs48Vtuterwo2RyHW3nlxmC/EkFHB v94ZVMbbkEiqPlxbwahx1EqzPx2X9HR2bCc8WGMdGdb6AfvKZf4Va2sts+puhBATYvmH ZhUCcrleaAsYdV5/8RQVjRVP0ih3TzslNlbJveP7AnAjIV7AhHhE4wYJpgS63dO/eGU9 POAyPg14eILhqCy0SGgMp582ictrDPPdYpYWHmF+tr5Z13/k8d110TVCJrDKbCRoE4IC UocA== X-Gm-Message-State: APjAAAXQmdn2BBIHYIUNsHyX+62893Lmw00PlGxIqQ9vKThjzTXYC3a8 E5zb0QnZJdCRs5Uq3iBbd6NbXipmOBg= X-Google-Smtp-Source: APXvYqxoUp9TAnaQb0LyAMRhbBKZQtU6AciLI/PzTT85Ufh8HFNkww6WaxwAUaDGI7m1hDmBklfCVw== X-Received: by 2002:a2e:974d:: with SMTP id f13mr20731619ljj.140.1556191775506; Thu, 25 Apr 2019 04:29:35 -0700 (PDT) Return-Path: Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id c7sm5448111lja.90.2019.04.25.04.29.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Apr 2019 04:29:34 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com, Jici.Gao@arm.com Subject: [edk2-platforms: PATCH v3 3/4] Marvell/Drivers/Spi: Improve modules dependencies Date: Thu, 25 Apr 2019 13:28:23 +0200 Message-Id: <1556191704-28834-4-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556191704-28834-1-git-send-email-mw@semihalf.com> References: <1556191704-28834-1-git-send-email-mw@semihalf.com> Currently the Marvell SPI DXE drivers depexes are specified with explicit modules' GUIDs and BEFORE/AFTER expressions. Replace it with the actual protocol dependencies. Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Marvell.dec | 3 --- Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.inf | 4 +++- Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.inf | 5 +---- Silicon/Marvell/Drivers/Spi/MvSpiOrionDxe/MvSpiOrionDxe.inf | 5 +---- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Silicon/Marvell/Marvell.dec b/Silicon/Marvell/Marvell.dec index 7210ba2..641c53b 100644 --- a/Silicon/Marvell/Marvell.dec +++ b/Silicon/Marvell/Marvell.dec @@ -56,9 +56,6 @@ gShellFUpdateHiiGuid = { 0x9b5d2176, 0x590a, 0x49db, { 0x89, 0x5d, 0x4a, 0x70, 0xfe, 0xad, 0xbe, 0x24 } } gShellSfHiiGuid = { 0x03a67756, 0x8cde, 0x4638, { 0x82, 0x34, 0x4a, 0x0f, 0x6d, 0x58, 0x81, 0x39 } } - gMarvellFvbDxeGuid = { 0x42903750, 0x7e61, 0x4aaf, { 0x83, 0x29, 0xbf, 0x42, 0x36, 0x4e, 0x24, 0x85 } } - gMarvellSpiFlashDxeGuid = { 0x49d7fb74, 0x306d, 0x42bd, { 0x94, 0xc8, 0xc0, 0xc5, 0x4b, 0x18, 0x1d, 0xd7 } } - [LibraryClasses] ArmadaBoardDescLib|Include/Library/ArmadaBoardDescLib.h ArmadaIcuLib|Include/Library/ArmadaIcuLib.h diff --git a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.inf b/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.inf index ef10bfd..e222075 100644 --- a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.inf +++ b/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.inf @@ -85,4 +85,6 @@ gMarvellTokenSpaceGuid.PcdSpiMemoryBase [Depex] - gEfiCpuArchProtocolGuid + gEfiCpuArchProtocolGuid AND + gMarvellSpiMasterProtocolGuid AND + gMarvellSpiFlashProtocolGuid diff --git a/Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.inf b/Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.inf index 20939bf..ce843e9 100644 --- a/Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.inf +++ b/Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.inf @@ -64,7 +64,4 @@ gMarvellSpiMasterProtocolGuid [Depex] - # - # MvSpiFlashDxe must be loaded prior to variables driver MvFvbDxe - # - BEFORE gMarvellFvbDxeGuid + gMarvellSpiMasterProtocolGuid diff --git a/Silicon/Marvell/Drivers/Spi/MvSpiOrionDxe/MvSpiOrionDxe.inf b/Silicon/Marvell/Drivers/Spi/MvSpiOrionDxe/MvSpiOrionDxe.inf index 4779371..628ab39 100644 --- a/Silicon/Marvell/Drivers/Spi/MvSpiOrionDxe/MvSpiOrionDxe.inf +++ b/Silicon/Marvell/Drivers/Spi/MvSpiOrionDxe/MvSpiOrionDxe.inf @@ -67,7 +67,4 @@ gMarvellSpiMasterProtocolGuid [Depex] - # - # MvSpiDxe must be loaded prior to MvSpiFlash driver - # - BEFORE gMarvellSpiFlashDxeGuid + TRUE -- 2.7.4