Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to load extra SSDTs from file, to support HATs #133

Closed
Googulator opened this issue Jul 1, 2019 · 5 comments
Closed

Ability to load extra SSDTs from file, to support HATs #133

Googulator opened this issue Jul 1, 2019 · 5 comments

Comments

@Googulator
Copy link

In the Linux world, HATs are supported using device tree overlays loaded either manually through config.txt, or automatically from an onboard EEPROM.
The analogous functionality to device tree overlays in ACPI is SSDTs. It would be great if UEFI provided a way of loading a custom SSDT from file, or even from the HAT EEPROM.

@andreiw
Copy link
Owner

andreiw commented Jul 1, 2019

Sure, but, what's ACPI Linux on the Pi 3? It's possible, but no one is doing it (that I am aware of). And the value proposition of that is pretty low (esp. because of HAT EEPROM, and because Pi 3 is so non-standard... Pi 4 would be better suited to ACPI).

Assuming you booted in ACPI mode, you'd be better off converting the HAT EEPROM DTB overlay on the fly to a SSDT with _DSD

I'll keep this open for others to see and comment on (though the upstream edk2 mailing list is likely a better place for a call-for-action)

@Googulator
Copy link
Author

I was primarily thinking of Windows here, not Linux. Linux can continue to support HATs using the existing DTB overlay mechanism, but Windows has no chance of ever supporting DTB, so an ACPI analog is needed.

@driver1998
Copy link
Contributor

For Windows, you can take a look at how Microsoft do that in IoT Core.
This is the sample driver for a SPI LCD display:

https://www.hackster.io/windows-iot/windows-10-iot-core-for-adafruit-spi-touchscreen-bb3795

@andreiw
Copy link
Owner

andreiw commented Jul 2, 2019 via email

@andreiw
Copy link
Owner

andreiw commented Feb 19, 2020

This repo is deprecated and I don't check these conversations.

@andreiw andreiw closed this as completed Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants