]> Zhao Yanbai Git Server - minix.git/commitdiff
tps65950: allow 0 as id for qemu beaglexm 13/2813/1
authorBen Gras <ben@minix3.org>
Thu, 4 Sep 2014 11:46:02 +0000 (13:46 +0200)
committerBen Gras <ben@minix3.org>
Thu, 4 Sep 2014 11:46:02 +0000 (13:46 +0200)
makes booting on qemu beaglexm a lot prettier.

Change-Id: I45d0383abbf0d21227a95f538ed78ca6c1ed7871

minix/drivers/power/tps65950/tps65950.c

index e1dd0814bdfb2e34ea21b2f66794c0fb5e6805f4..16cd4951f70bb3c6cc186478d801e5e867df8af2 100644 (file)
@@ -136,6 +136,9 @@ check_revision(void)
        case IDCODE_REV_1_2:
                log_debug(&log, "TPS65950 rev 1.2\n");
                break;
+       case 0:
+               log_debug(&log, "TPS65950 missing in qemu\n");
+               break;
        default:
                log_warn(&log, "Unexpected IDCODE: 0x%x\n", idcode);
                return -1;