From: kettenis Date: Tue, 23 Aug 2016 19:13:37 +0000 (+0000) Subject: Add support for the usb clock on sun5i-a13 as well. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=749a423d830e437dcdb1e4ba0ee83b400d6009db;p=openbsd Add support for the usb clock on sun5i-a13 as well. --- diff --git a/sys/arch/armv7/sunxi/sxiccmu.c b/sys/arch/armv7/sunxi/sxiccmu.c index 67a97d5afe5..26c330d2c10 100644 --- a/sys/arch/armv7/sunxi/sxiccmu.c +++ b/sys/arch/armv7/sunxi/sxiccmu.c @@ -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 * 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,