File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,8 @@ void usb_init(void)
335335
336336 if (adt_is_compatible (adt , 0 , "J180dAP" ) && usb_init_i2c ("/arm-io/i2c3" ) < 0 )
337337 return ;
338+ if (adt_is_compatible (adt , 0 , "J773gAP" ) && usb_init_i2c ("/arm-io/i2c2" ) < 0 )
339+ return ;
338340 if (usb_init_i2c ("/arm-io/i2c0" ) < 0 )
339341 return ;
340342
@@ -399,9 +401,13 @@ void usb_i2c_restore_irqs(const char *i2c_path, bool force)
399401
400402void usb_hpm_restore_irqs (bool force )
401403{
402- if (adt_is_compatible (adt , 0 , "J180dAP" ))
404+ if (adt_is_compatible (adt , 0 , "J180dAP" )) {
403405 usb_i2c_restore_irqs ("/arm-io/i2c3" , force );
404- usb_i2c_restore_irqs ("/arm-io/i2c0" , force );
406+ } else if (adt_is_compatible (adt , 0 , "J773gAP" )) {
407+ usb_i2c_restore_irqs ("/arm-io/i2c2" , force );
408+ } else {
409+ usb_i2c_restore_irqs ("/arm-io/i2c0" , force );
410+ }
405411}
406412
407413void usb_iodev_init (void )
You can’t perform that action at this time.
0 commit comments