From cec0770f996f2ffb045664c5537f6c2431f5471b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 8 Nov 2016 20:22:27 +0000 Subject: Add a few more easy sun9i-a80 clocks. --- sys/arch/armv7/sunxi/sxiccmu.c | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/arch/armv7/sunxi/sxiccmu.c b/sys/arch/armv7/sunxi/sxiccmu.c index 744e83e3441..c61f02df711 100644 --- a/sys/arch/armv7/sunxi/sxiccmu.c +++ b/sys/arch/armv7/sunxi/sxiccmu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxiccmu.c,v 1.23 2016/11/08 19:44:42 kettenis Exp $ */ +/* $OpenBSD: sxiccmu.c,v 1.24 2016/11/08 20:22:26 kettenis Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2013 Artturi Alm @@ -286,6 +286,36 @@ struct sxiccmu_device sxiccmu_devices[] = { .get_frequency = sxiccmu_gen_get_frequency, .enable = sxiccmu_gate_enable }, + { + .compat = "allwinner,sun9i-a80-ahb0-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun9i-a80-ahb1-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun9i-a80-ahb2-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun9i-a80-apb0-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun9i-a80-apb1-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, + { + .compat = "allwinner,sun9i-a80-apbs-gates-clk", + .get_frequency = sxiccmu_gen_get_frequency, + .enable = sxiccmu_gate_enable + }, { .compat = "allwinner,sun9i-a80-mmc-clk", .set_frequency = sxiccmu_mmc_set_frequency, -- cgit v1.2.3