diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-10-13 20:43:30 +0200 |
---|---|---|
committer | James Cameron <quozl@laptop.org> | 2020-03-12 14:17:55 +1100 |
commit | cd0ab0165a466754241d4596c95aadd6096f92c0 (patch) | |
tree | e7c29ef3dd6cfd2e1df000cf334b4569488e42b9 | |
parent | 6174f068081c13080125c012820b02bf4d5f405b (diff) | |
download | openfirmware-cd0ab0165a466754241d4596c95aadd6096f92c0.tar.gz |
pc/olpc: link /camera to /image-sensor
Draw a device graph edge between the two, so that the driver will be
able to discover how are they connected. We need to do this after the
PCI device is scanned, because the CAFE function drop-in will create the
necessary nodes, but the FCode does not have a provision for drawing
device graphs.
-rw-r--r-- | cpu/x86/pc/olpc/fw.bth | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu/x86/pc/olpc/fw.bth b/cpu/x86/pc/olpc/fw.bth index ac15a106..1bcfdfc3 100644 --- a/cpu/x86/pc/olpc/fw.bth +++ b/cpu/x86/pc/olpc/fw.bth @@ -599,6 +599,11 @@ true ' client-symbols? set-config-int-default then ; +: camera-dt-fixup + " /camera/port/endpoint" " /image-sensor/port/endpoint" + ['] link-endpoints catch if 2drop 2drop then +; + : startup ( -- ) standalone? 0= if exit then @@ -625,6 +630,7 @@ true ' client-symbols? set-config-int-default " probe-" do-drop-in probe-pci + camera-dt-fixup show-child install-alarm sound |