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 XU4 FDT -- fix bus tags
details: https://anonhg.NetBSD.org/src/rev/58b734e271fb
branches: trunk
changeset: 342303:58b734e271fb
user: marty <marty%NetBSD.org@localhost>
date: Tue Dec 15 23:13:51 2015 +0000
description:
XU4 FDT -- fix bus tags
I got away with not having the generic bus tags for getting minimum fdt to
work; but for real drivers have to actually have them. Make necessary
corrections.
diffstat:
sys/arch/arm/samsung/exynos_fdt.c | 10 +++++-----
sys/arch/arm/samsung/exynos_var.h | 4 +++-
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r 270e9d60c7d0 -r 58b734e271fb sys/arch/arm/samsung/exynos_fdt.c
--- a/sys/arch/arm/samsung/exynos_fdt.c Tue Dec 15 21:45:21 2015 +0000
+++ b/sys/arch/arm/samsung/exynos_fdt.c Tue Dec 15 23:13:51 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_fdt.c,v 1.1 2015/12/14 22:51:42 marty Exp $ */
+/* $NetBSD: exynos_fdt.c,v 1.2 2015/12/15 23:13:51 marty Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_exynos.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos_fdt.c,v 1.1 2015/12/14 22:51:42 marty Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos_fdt.c,v 1.2 2015/12/15 23:13:51 marty Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -84,9 +84,9 @@
struct fdt_attach_args faa = {
.faa_name = "",
- // .faa_bst = &armv7_generic_bs_tag,
- //.faa_a4x_bst = &armv7_generic_a4x_bs_tag,
- //.faa_dmat = &exynos_dma_tag,
+ .faa_bst = &armv7_generic_bs_tag,
+ .faa_a4x_bst = &armv7_generic_a4x_bs_tag,
+ .faa_dmat = &exynos_bus_dma_tag,
.faa_phandle = OF_peer(0),
.faa_init = exynosfdt_init,
.faa_ninit = __arraycount(exynosfdt_init)
diff -r 270e9d60c7d0 -r 58b734e271fb sys/arch/arm/samsung/exynos_var.h
--- a/sys/arch/arm/samsung/exynos_var.h Tue Dec 15 21:45:21 2015 +0000
+++ b/sys/arch/arm/samsung/exynos_var.h Tue Dec 15 23:13:51 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_var.h,v 1.19 2015/12/11 04:03:44 marty Exp $ */
+/* $NetBSD: exynos_var.h,v 1.20 2015/12/15 23:13:51 marty Exp $ */
/*-
* Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -115,6 +115,8 @@
extern struct arm32_bus_dma_tag exynos_bus_dma_tag;
extern struct arm32_bus_dma_tag exynos_coherent_bus_dma_tag;
+extern struct bus_space armv7_generic_bs_tag;
+extern struct bus_space armv7_generic_a4x_bs_tag;
extern bus_space_handle_t exynos_core_bsh;
extern bus_space_handle_t exynos_wdt_bsh;
extern bus_space_handle_t exynos_pmu_bsh;
Home |
Main Index |
Thread Index |
Old Index