diff options
author | 2016-08-21 23:01:57 +0000 | |
---|---|---|
committer | 2016-08-21 23:01:57 +0000 | |
commit | 36bac2bfa3a2bcba8d57573d2d1d07d7f4a93b45 (patch) | |
tree | 81856bd3773c6e4c5868c2d2a8bfc15544344275 /sys | |
parent | Implement some fundamental clocks using the new clock framework. (diff) | |
download | wireguard-openbsd-36bac2bfa3a2bcba8d57573d2d1d07d7f4a93b45.tar.xz wireguard-openbsd-36bac2bfa3a2bcba8d57573d2d1d07d7f4a93b45.zip |
Add support for all the ahb, apb0 and apb1 clock gating devices on sun4i,
sun5i and sun7i.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/armv7/sunxi/sxiccmu.c | 57 |
1 files changed, 56 insertions, 1 deletions
diff --git a/sys/arch/armv7/sunxi/sxiccmu.c b/sys/arch/armv7/sunxi/sxiccmu.c index f8e19b1e54a..5656bd31820 100644 --- a/sys/arch/armv7/sunxi/sxiccmu.c +++ b/sys/arch/armv7/sunxi/sxiccmu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxiccmu.c,v 1.8 2016/08/21 21:39:59 kettenis Exp $ */ +/* $OpenBSD: sxiccmu.c,v 1.9 2016/08/21 23:01:57 kettenis Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2013 Artturi Alm @@ -212,6 +212,61 @@ struct sxiccmu_device sxiccmu_devices[] = { .get_frequency = sxiccmu_apb1_get_frequency, }, { + .compat = "allwinner,sun4i-a10-ahb-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun4i-a10-apb0-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun4i-a10-apb1-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun5i-a10s-ahb-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun5i-a10s-apb0-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun5i-a10s-apb1-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun5i-a13-ahb-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun5i-a13-apb0-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun5i-a13-apb1-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun7i-a20-ahb-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun7i-a20-apb0-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { .compat = "allwinner,sun7i-a20-apb1-gates-clk", .get_frequency = sxiccmu_gen_get_frequency, .enable = sxiccmu_gate_enable |