edk2: Load vendor_boot in ramload scenario

Load vendor_boot image in ramloading case if boot header
version is 0 as boot image is not loaded in the authentication
flow.

Change-Id: Ia20c13dbdebc551d991a214abc93a57000e94a1a
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
diff --git a/QcomModulePkg/Library/avb/VerifiedBoot.c b/QcomModulePkg/Library/avb/VerifiedBoot.c
index d913e11..759078d 100644
--- a/QcomModulePkg/Library/avb/VerifiedBoot.c
+++ b/QcomModulePkg/Library/avb/VerifiedBoot.c
@@ -1210,8 +1210,15 @@
         CurrentSlot = GetCurrentSlotSuffix ();
     }
 
+    /* Load vendor boot in following conditions
+     * 1. In Ram load case where Header version is 0 because
+     * boot image is not loaded in the flow& Valid partition.
+     * 2. In Case of header version 3 & valid partititon.
+     */
+
     if (IsValidPartition (&CurrentSlot, L"vendor_boot") &&
-       (HeaderVersion >= BOOT_HEADER_VERSION_THREE)) {
+       (HeaderVersion == BOOT_HEADER_VERSION_ZERO ||
+        HeaderVersion >= BOOT_HEADER_VERSION_THREE)) {
       AddRequestedPartition (RequestedPartitionAll, IMG_VENDOR_BOOT);
       NumRequestedPartition += 1;
        if (SlotData != NULL) {