mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-12-20 02:18:37 +00:00
* Refresh fileenv patch for U-Boot 2025.01 * Update Tinker to U-Boot 2025.01 Needs minor patch adjustment, also fixed patch numbering. * Update ODROID-N2 to U-Boot 2025.01, move eMMC patch Move the patch for eMMC so it's applied only for N2 specifically and update it for 2025.01. * Update ODROID-C/XU to U-Boot 2025.01 No changes in patches necessary after moving the N2 patch. * Update RPi boards to U-Boot 2025.01 Changes needed in bcmstb PCIe driver due to upstream refactoring, rest only refreshed. All patches now target the same version, so we can drop one of the series. * Update VIM3 to U-Boot 2025.01 No patches here, just version bump. * Update Green to U-Boot 2025.01 Updated and refreshed patches, added a patch to disable OF_UPSTREAM which is now needed. * Update ODROID-M1 to U-Boot 2025.01 Drop patch that has been mostly merged upstream. The change is that HS400 would stay enabled but let's get back to what upstream does. * Update ODROID-M1 to U-Boot 2025.01 Drop all patches as M1S support should be now merged to U-Boot and DTS taken from upstream. * Disable DFU and mkeficapsule to fix build mkeficapsule requires gnutls to be built first but it's not among dependencies. Since we don't need the tool, we can disable it. DFU is also not used on HAOS and it implies EFI_LOADER that we already disable. Moreover, that also sets SET_DFU_ALT_INFO and leads to linker failure on some platforms where it's not implemented. * fixup! Update Green to U-Boot 2025.01 There were more changes needed in the Green config to use correct memory layout due to upstream changes, otherwise we'll have malloc failures in U-Boot proper. * Move N2 eMMC patch to more generic patches-meson To stay on the safe side, move the eMMC hack to more generic folder that's used for all targets using the meson_gx eMMC driver (i.e. C2, C4 and N2). This is still better than keeping it in hardkernel/patches which is applied only to some hardkernel boards (like it was before bump to U-Boot 20205.01).
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
From c77c55c6975af3ff5210559b1c5a89e76de0cceb Mon Sep 17 00:00:00 2001
|
|
From: Stefan Agner <stefan@agner.ch>
|
|
Date: Mon, 24 Apr 2023 15:44:15 +0200
|
|
Subject: [PATCH] Revert "pci: Check region ranges are addressable"
|
|
|
|
This reverts commit ec8eba8c2d4e10e77699c56918d2078210aa1339.
|
|
|
|
This commit seems to cause boot hangs when USB via XHCI is enabled on
|
|
Raspberry Pi 4 32-bit. Reverting the commit fixes USB device detection
|
|
and makes the devices boot again.
|
|
|
|
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
|
---
|
|
drivers/pci/pci-uclass.c | 17 +----------------
|
|
1 file changed, 1 insertion(+), 16 deletions(-)
|
|
|
|
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
|
|
index 59894d2430b..f1f7e525efe 100644
|
|
--- a/drivers/pci/pci-uclass.c
|
|
+++ b/drivers/pci/pci-uclass.c
|
|
@@ -1038,22 +1038,7 @@ static int decode_regions(struct pci_controller *hose, ofnode parent_node,
|
|
|
|
if (!IS_ENABLED(CONFIG_SYS_PCI_64BIT) &&
|
|
type == PCI_REGION_MEM && upper_32_bits(pci_addr)) {
|
|
- debug(" - pci_addr beyond the 32-bit boundary, ignoring\n");
|
|
- continue;
|
|
- }
|
|
-
|
|
- if (!IS_ENABLED(CONFIG_PHYS_64BIT) && upper_32_bits(addr)) {
|
|
- debug(" - addr beyond the 32-bit boundary, ignoring\n");
|
|
- continue;
|
|
- }
|
|
-
|
|
- if (~((pci_addr_t)0) - pci_addr < size) {
|
|
- debug(" - PCI range exceeds max address, ignoring\n");
|
|
- continue;
|
|
- }
|
|
-
|
|
- if (~((phys_addr_t)0) - addr < size) {
|
|
- debug(" - phys range exceeds max address, ignoring\n");
|
|
+ debug(" - beyond the 32-bit boundary, ignoring\n");
|
|
continue;
|
|
}
|
|
|