Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/samsung Adapt for clock domain support
details: https://anonhg.NetBSD.org/src/rev/abdf30f391a9
branches: trunk
changeset: 352967:abdf30f391a9
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Apr 16 15:52:43 2017 +0000
description:
Adapt for clock domain support
diffstat:
sys/arch/arm/samsung/exynos5422_clock.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 635173d00934 -r abdf30f391a9 sys/arch/arm/samsung/exynos5422_clock.c
--- a/sys/arch/arm/samsung/exynos5422_clock.c Sun Apr 16 15:52:16 2017 +0000
+++ b/sys/arch/arm/samsung/exynos5422_clock.c Sun Apr 16 15:52:43 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos5422_clock.c,v 1.4 2015/12/26 22:57:09 jmcneill Exp $ */
+/* $NetBSD: exynos5422_clock.c,v 1.5 2017/04/16 15:52:43 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "locators.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos5422_clock.c,v 1.4 2015/12/26 22:57:09 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos5422_clock.c,v 1.5 2017/04/16 15:52:43 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -433,6 +433,8 @@
device_t sc_dev;
bus_space_tag_t sc_bst;
bus_space_handle_t sc_bsh;
+
+ struct clk_domain sc_clkdom;
};
static void exynos5422_clock_print_header(void);
@@ -483,7 +485,11 @@
aprint_naive("\n");
aprint_normal(": Exynos5422 Clock Controller\n");
- clk_backend_register("exynos5422", &exynos5422_clock_funcs, sc);
+ sc->sc_clkdom.funcs = &exynos5422_clock_funcs;
+ sc->sc_clkdom.priv = sc;
+ for (u_int n = 0; n < __arraycount(exynos5422_clocks); n++) {
+ exynos5422_clocks[n].base.domain = &sc->sc_clkdom;
+ }
fdtbus_register_clock_controller(self, faa->faa_phandle,
&exynos5422_car_fdtclock_funcs);
Home |
Main Index |
Thread Index |
Old Index