diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-10-12 16:16:39 +0200 |
---|---|---|
committer | James Cameron <quozl@laptop.org> | 2020-03-12 14:17:55 +1100 |
commit | 4b4957222635465127437cca7e2f98d74e66baf7 (patch) | |
tree | d5d64b20639ed43db189f45a829e14ec730f063a | |
parent | cd0ab0165a466754241d4596c95aadd6096f92c0 (diff) | |
download | openfirmware-4b4957222635465127437cca7e2f98d74e66baf7.tar.gz |
pc/olpc: link /dcon with the /display and /panel
Draw a device graph edge between the three, so that the drivers will be
able to discover how are the devices connected.
We need to do this after the PCI device is scanned, because some of the
nodes are created by the PCI drop-ins.
-rw-r--r-- | cpu/x86/pc/olpc/fw.bth | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu/x86/pc/olpc/fw.bth b/cpu/x86/pc/olpc/fw.bth index 1bcfdfc3..8aada013 100644 --- a/cpu/x86/pc/olpc/fw.bth +++ b/cpu/x86/pc/olpc/fw.bth @@ -604,6 +604,13 @@ true ' client-symbols? set-config-int-default ['] link-endpoints catch if 2drop 2drop then ; +: display-dt-fixup + " /display/ports/port@1/endpoint" " /dcon/ports/port@0/endpoint" + ['] link-endpoints catch if 2drop 2drop then + " /dcon/ports/port@1/endpoint" " /panel/port/endpoint" + ['] link-endpoints catch if 2drop 2drop then +; + : startup ( -- ) standalone? 0= if exit then @@ -631,6 +638,7 @@ true ' client-symbols? set-config-int-default probe-pci camera-dt-fixup + display-dt-fixup show-child install-alarm sound |