Module Name: src Committed By: marty Date: Tue Dec 15 23:13:51 UTC 2015
Modified Files: src/sys/arch/arm/samsung: exynos_fdt.c exynos_var.h Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/samsung/exynos_fdt.c cvs rdiff -u -r1.19 -r1.20 src/sys/arch/arm/samsung/exynos_var.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/samsung/exynos_fdt.c diff -u src/sys/arch/arm/samsung/exynos_fdt.c:1.1 src/sys/arch/arm/samsung/exynos_fdt.c:1.2 --- src/sys/arch/arm/samsung/exynos_fdt.c:1.1 Mon Dec 14 22:51:42 2015 +++ src/sys/arch/arm/samsung/exynos_fdt.c Tue Dec 15 23:13:51 2015 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ exynosfdt_attach(device_t parent, device 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) Index: src/sys/arch/arm/samsung/exynos_var.h diff -u src/sys/arch/arm/samsung/exynos_var.h:1.19 src/sys/arch/arm/samsung/exynos_var.h:1.20 --- src/sys/arch/arm/samsung/exynos_var.h:1.19 Fri Dec 11 04:03:44 2015 +++ src/sys/arch/arm/samsung/exynos_var.h Tue Dec 15 23:13:51 2015 @@ -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 bus_space exynos_a4x_bs_ta 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;