Skip to content

Commit 1ae2742

Browse files
jannaumarcan
authored andcommitted
kboot: Transfer touchbar calibration for t8112-j493
Signed-off-by: Janne Grunau <[email protected]>
1 parent 88b1866 commit 1ae2742

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/kboot.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,17 @@ static int dt_set_multitouch(void)
653653
if (node < 0)
654654
bail("FDT: alias points at nonexistent node");
655655

656-
int anode = adt_path_offset(adt, "/arm-io/spi0/multi-touch");
656+
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);
657665
if (anode < 0)
658-
bail("ADT /arm-io/spi0/multi-touch not found\n");
666+
bail("ADT: touchbar node %s not found\n", adt_touchbar);
659667

660668
u32 len;
661669
const u8 *cal_blob = adt_getprop(adt, anode, "multi-touch-calibration", &len);

0 commit comments

Comments
 (0)