From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by mx.groups.io with SMTP id smtpd.web12.1415.1589146501451334056 for ; Sun, 10 May 2020 14:35:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FYDpU73Q; spf=pass (domain: gmail.com, ip: 209.85.222.193, mailfrom: andrey.warkentin@gmail.com) Received: by mail-qk1-f193.google.com with SMTP id s186so6029836qkd.4 for ; Sun, 10 May 2020 14:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=b7DwZVTo3+uX/5F8gkeqvm4kUW3tNqpb2IPXEhR6BXI=; b=FYDpU73QGj5TJQ2GewKFXECtIqSC6Qp8yOgUBMk5DxzReGpDv6yXum1xKsaBCRh6G0 nzF2UHPLst4oOq0uK/X/DAEQNKB+TnjGAJao9ZwCv+OWezPrWx6XhSmcG8OGQBMQiZPz XIzGa+hr2HX8Y/5Nws+TumJj8n9LitCyY04bLeVNx+CW8W4eyEjLVYfCPns776ezEzbp jT8MDBJ39awEmw+3Wzg9auUopzlGIUw0xvfSjrCIPU+I2DapjN0CnjWYbOcsNaikwu/d 8Lw1BiKa4XtUHm0Jn/SHTnrrqEo7amank0VZytrPhHpLj2DZ+GBi4rznYeaV7xTo2DI9 bGPg== 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=b7DwZVTo3+uX/5F8gkeqvm4kUW3tNqpb2IPXEhR6BXI=; b=XRq7m22L6ifaj9ix8X8kl4ca4cOQ+zzEABiVtjBks7BYM5Kaf7l32q+1si2dw0oPN3 Ty6UeaeqpldaG4UjSRZkN1NDqKhP+yZrjAhK2GKp+hRWInLTssT4ZxWKDuHfZtZr8FN1 vLSDSw1nMdy0Jjj9F5ihmLyhBISaBUMYk5epq/BwLxoS+TgyhwKVQTmHgt6LtrzNXJbM PP4BzfRpJLzBAQ3KB1CmDX0O1K1FF/pdHEJw78B6TkWHnKKHsEVA1ff79sP1CqRXHkJJ SGamyAIai/YM2bdiDTR8+RCOwe4EqJcxXgle84I5lvDWHiipHXkmFRh2i1uKnM6mJkR3 wgyg== X-Gm-Message-State: AGi0PuYGLooEPFZPjf2ICtoiz6Jk2obrRnaoBgjmpnqS7LLk7vi7qgQK Hbq0VYU2/M7ZhTHXwfdFor6ERJt89L4= X-Google-Smtp-Source: APiQypICoQKaEZf9m5qGt8f6MvIvYP1QcVKl64rWBMb4w3CGw+cM7FS6uX7wYH9uLRv2ANYxsBZV+Q== X-Received: by 2002:ae9:dfc5:: with SMTP id t188mr3370789qkf.18.1589146500374; Sun, 10 May 2020 14:35:00 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-98-214-99-181.hsd1.il.comcast.net. [98.214.99.181]) by smtp.gmail.com with ESMTPSA id u3sm1895231qtk.63.2020.05.10.14.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 14:34:59 -0700 (PDT) From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie, philmd@redhat.com Subject: [edk2-platforms][PATCH 0/2] RPi - add DT-only mode Date: Sun, 10 May 2020 14:34:48 -0700 Message-Id: <20200510213450.12642-1-andrey.warkentin@gmail.com> X-Mailer: git-send-email 2.17.1 Today the Pies can be booted in a way where only ACPI is exposed, or both ACPI and DT are exposed. This patch set adds one more mode - DT only, no ACPI. The target audience is developers. When both are exposed, it's up to the OS to decide which gets used, and that choice can differ between OSes. Note: this does _not_ change defaults. Pi 3 still defaults to ACPI + DT, while Pi 4 still defaults to ACPI only. We don't really want to remove DT + ACPI mode - it is the default on Pi 3, and removing it is bound to just annoy users - WoA and NetBSD (voa UEFI) on Pi 3 only work with ACPI, while everything else (Linux, FreeBSD) only work with DT. I'd make an analogy of MPS and ACPI being exposed for the longest time ever together on PCs. Andrei Warkentin (2): RPi: move varstore structure defs to ConfigVars.h RPi: allow selecting DT-only mode .../RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 21 ++- .../Drivers/ConfigDxe/ConfigDxe.inf | 2 +- .../Drivers/ConfigDxe/ConfigDxeHii.uni | 9 +- .../Drivers/ConfigDxe/ConfigDxeHii.vfr | 146 ++---------------- Platform/RaspberryPi/Drivers/FdtDxe/FdtDxe.c | 6 +- .../RaspberryPi/Drivers/FdtDxe/FdtDxe.inf | 2 +- Platform/RaspberryPi/Include/ConfigVars.h | 131 ++++++++++++++++ Platform/RaspberryPi/RPi3/RPi3.dsc | 8 +- Platform/RaspberryPi/RPi4/RPi4.dsc | 8 +- Platform/RaspberryPi/RaspberryPi.dec | 2 +- 10 files changed, 180 insertions(+), 155 deletions(-) create mode 100644 Platform/RaspberryPi/Include/ConfigVars.h -- 2.17.1