public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/4] Platform/RaspberryPi: new GPIO and DT menu items
@ 2021-11-11  6:57 lintonrjeremy
  2021-11-11  6:57 ` [PATCH 1/1] Platform/RaspberryPi: Add menu item to enable/disable GPIO Jeremy Linton
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lintonrjeremy @ 2021-11-11  6:57 UTC (permalink / raw)
  To: devel
  Cc: pete, ardb+tianocore, leif, awarkentin, Sunny.Wang,
	samer.el-haj-mahmoud, Jeremy Linton

Its been reported that some kernel versions still need the XHCI reload
while others only work if the reload isn't present. Lets give the user
the ability to control that for DT systems.

Further, there is now an example persistent variable store implementation
that uses the on-board SPI flash rather than trying to rewrite the UEFI
firmware image on SD/etc late in the boot cycle. The problem is that
we now need to control the GPIO pin mux. This isn't a problem for
Linux as such, because it only messes with the pin mux under DT, but
windows has some drivers which export the GPIO devices using the
ACPI definition. Lets add a menu item to enable the GPIO and default
it to off on the RPi4 under the assumption that we can't fix a GPIO
pin mux war reliably and instead will simply revert to a mode that
fails to persist variables written while the OS is active if the
GPIO is enabled.

This set also cleans up the ACPI/DT visiblity of a couple
nearby menu items as well.

Jeremy Linton (4):
  Platform/RaspberryPi: Cleanup menu visibility
  Platform/RaspberryPi: Give the user control over the XHCI mailbox
  Platform/RaspberryPi: Move GPIO/SPI/I2C to SSDT
  Platform/RaspberryPi: Add menu item to enable/disable GPIO

 Platform/RaspberryPi/AcpiTables/AcpiTables.inf     |   1 +
 Platform/RaspberryPi/AcpiTables/Dsdt.asl           |   7 -
 Platform/RaspberryPi/AcpiTables/GpuDevs.asl        | 125 ----------------
 Platform/RaspberryPi/AcpiTables/SsdtGpio.asl       | 157 +++++++++++++++++++++
 Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c |  31 ++++
 .../RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf    |   2 +
 .../RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni |  10 ++
 .../RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.vfr |  36 ++++-
 Platform/RaspberryPi/Drivers/FdtDxe/FdtDxe.c       |   4 +
 Platform/RaspberryPi/Drivers/FdtDxe/FdtDxe.inf     |   1 +
 Platform/RaspberryPi/Include/ConfigVars.h          |   4 +
 Platform/RaspberryPi/RPi3/RPi3.dsc                 |  12 ++
 Platform/RaspberryPi/RPi4/RPi4.dsc                 |  14 ++
 Platform/RaspberryPi/RaspberryPi.dec               |   2 +
 14 files changed, 271 insertions(+), 135 deletions(-)
 create mode 100644 Platform/RaspberryPi/AcpiTables/SsdtGpio.asl

-- 
2.13.7


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-11  6:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-11  6:57 [PATCH 0/4] Platform/RaspberryPi: new GPIO and DT menu items lintonrjeremy
2021-11-11  6:57 ` [PATCH 1/1] Platform/RaspberryPi: Add menu item to enable/disable GPIO Jeremy Linton
2021-11-11  6:57 ` [PATCH 1/4] Platform/RaspberryPi: Cleanup menu visibility Jeremy Linton
2021-11-11  6:57 ` [PATCH 2/4] Platform/RaspberryPi: Give the user control over the XHCI mailbox Jeremy Linton
2021-11-11  6:57 ` [PATCH 3/4] Platform/RaspberryPi: Move GPIO/SPI/I2C to SSDT Jeremy Linton
2021-11-11  6:57 ` [PATCH 4/4] Platform/RaspberryPi: Add menu item to enable/disable GPIO Jeremy Linton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox