Add support for the usb clock on sun5i-a13 as well.
authorkettenis <kettenis@openbsd.org>
Tue, 23 Aug 2016 19:13:37 +0000 (19:13 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 23 Aug 2016 19:13:37 +0000 (19:13 +0000)
sys/arch/armv7/sunxi/sxiccmu.c

index 67a97d5..26c330d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sxiccmu.c,v 1.13 2016/08/22 19:43:49 kettenis Exp $   */
+/*     $OpenBSD: sxiccmu.c,v 1.14 2016/08/23 19:13:37 kettenis Exp $   */
 /*
  * Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
  * Copyright (c) 2013 Artturi Alm
@@ -186,6 +186,12 @@ struct sxiccmu_device sxiccmu_devices[] = {
                .get_frequency = sxiccmu_gen_get_frequency,
                .enable = sxiccmu_gate_enable
        },
+       {
+               .compat = "allwinner,sun5i-a13-usb-clk",
+               .get_frequency = sxiccmu_gen_get_frequency,
+               .enable = sxiccmu_gate_enable,
+               .reset = sxiccmu_reset
+       },
        {
                .compat = "allwinner,sun7i-a20-ahb-gates-clk",
                .get_frequency = sxiccmu_gen_get_frequency,