We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b1866 commit 1ae2742Copy full SHA for 1ae2742
1 file changed
src/kboot.c
@@ -653,9 +653,17 @@ static int dt_set_multitouch(void)
653
if (node < 0)
654
bail("FDT: alias points at nonexistent node");
655
656
- int anode = adt_path_offset(adt, "/arm-io/spi0/multi-touch");
+ const char *adt_touchbar;
657
+ if (fdt_node_check_compatible(dt, 0, "apple,j293") == 0)
658
+ adt_touchbar = "/arm-io/spi0/multi-touch";
659
+ else if (fdt_node_check_compatible(dt, 0, "apple,j493") == 0)
660
+ adt_touchbar = "/arm-io/spi3/touch-bar";
661
+ else
662
+ return 0;
663
+
664
+ int anode = adt_path_offset(adt, adt_touchbar);
665
if (anode < 0)
- bail("ADT /arm-io/spi0/multi-touch not found\n");
666
+ bail("ADT: touchbar node %s not found\n", adt_touchbar);
667
668
u32 len;
669
const u8 *cal_blob = adt_getprop(adt, anode, "multi-touch-calibration", &len);
0 commit comments