use armv7_generic_space

This commit is contained in:
hkenken 2015-05-07 04:13:47 +00:00
parent 2434428a74
commit 275055545e
7 changed files with 23 additions and 26 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.imx51,v 1.12 2015/03/27 05:31:23 hkenken Exp $
# $NetBSD: files.imx51,v 1.13 2015/05/07 04:13:47 hkenken Exp $
#
# Configuration info for the Freescale i.MX5x
#
@ -9,7 +9,12 @@ defflag opt_imx.h IMX50
define bus_dma_generic
file arch/arm/imx/imx_space.c
file arch/arm/arm32/arm32_boot.c
file arch/arm/arm32/arm32_kvminit.c
file arch/arm/arm32/arm32_reboot.c
file arch/arm/arm32/irq_dispatch.S
file arch/arm/arm32/armv7_generic_space.c
file arch/arm/arm/bus_space_a4x.S
file arch/arm/imx/imx_dma.c bus_dma_generic needs-flag
# iMX51 AXI/AHB bus interface and SoC domains
@ -22,7 +27,6 @@ include "arch/arm/pic/files.pic"
device tzic: pic, pic_splfuncs
attach tzic at axi
file arch/arm/imx/imx51_tzic.c tzic needs-flag
file arch/arm/arm32/irq_dispatch.S
# iMX51 Enhanced Periodic Interrupt Timer
device imxclock

View File

@ -1,4 +1,4 @@
/* $NetBSD: imx51_axi.c,v 1.4 2014/03/10 04:25:51 htodd Exp $ */
/* $NetBSD: imx51_axi.c,v 1.5 2015/05/07 04:13:47 hkenken Exp $ */
/*-
* Copyright (c) 2010 SHIMIZU Ryo <ryo@nerv.org>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: imx51_axi.c,v 1.4 2014/03/10 04:25:51 htodd Exp $");
__KERNEL_RCSID(0, "$NetBSD: imx51_axi.c,v 1.5 2015/05/07 04:13:47 hkenken Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -76,7 +76,7 @@ axi_attach(device_t parent __unused, device_t self, void *aux __unused)
aprint_naive("\n");
sc = device_private(self);
sc->sc_iot = &imx_bs_tag;
sc->sc_iot = &armv7_generic_bs_tag;
#if NBUS_DMA_GENERIC > 0
sc->sc_dmat = &imx_bus_dma_tag;
#else

View File

@ -1,9 +1,10 @@
/* $NetBSD: imx51var.h,v 1.2 2010/11/30 13:05:27 bsh Exp $ */
/* $NetBSD: imx51var.h,v 1.3 2015/05/07 04:13:47 hkenken Exp $ */
#ifndef _ARM_IMX_IMX51VAR_H
#define _ARM_IMX_IMX51VAR_H
extern struct bus_space imx_bs_tag;
extern struct bus_space armv7_generic_bs_tag;
extern struct bus_space armv7_generic_a4x_bs_tag;
extern struct arm32_bus_dma_tag imx_bus_dma_tag;
void gpio_set_direction(uint32_t, uint32_t);

View File

@ -1,12 +1,8 @@
# $NetBSD: files.kobo,v 1.1 2014/07/25 11:22:50 hkenken Exp $
# $NetBSD: files.kobo,v 1.2 2015/05/07 04:13:47 hkenken Exp $
#
# KOBO evaluation board configuration info
#
file arch/arm/arm32/arm32_boot.c
file arch/arm/arm32/arm32_kvminit.c
file arch/arm/arm32/arm32_reboot.c
file arch/evbarm/kobo/kobo_machdep.c
# Kernel boot arguments

View File

@ -1,12 +1,8 @@
# $NetBSD: files.netwalker,v 1.8 2014/05/06 12:02:52 hkenken Exp $
# $NetBSD: files.netwalker,v 1.9 2015/05/07 04:13:47 hkenken Exp $
#
# Sharp Netwalker configuration info
#
file arch/arm/arm32/arm32_boot.c
file arch/arm/arm32/arm32_kvminit.c
file arch/arm/arm32/arm32_reboot.c
file arch/evbarm/netwalker/netwalker_machdep.c
# Kernel boot arguments

View File

@ -1,4 +1,4 @@
/* $NetBSD: kobo_machdep.c,v 1.2 2014/07/25 16:04:27 hkenken Exp $ */
/* $NetBSD: kobo_machdep.c,v 1.3 2015/05/07 04:13:47 hkenken Exp $ */
/*
* Copyright (c) 2002, 2003, 2005, 2010 Genetec Corporation.
@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kobo_machdep.c,v 1.2 2014/07/25 16:04:27 hkenken Exp $");
__KERNEL_RCSID(0, "$NetBSD: kobo_machdep.c,v 1.3 2015/05/07 04:13:47 hkenken Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_arm_debug.h"
@ -525,7 +525,7 @@ consinit(void)
#else
consaddr = IMX51_UART2_BASE;
#endif
imxuart_cons_attach(&imx_bs_tag, consaddr, consrate, consmode);
imxuart_cons_attach(&armv7_generic_bs_tag, consaddr, consrate, consmode);
return;
}
#endif
@ -561,7 +561,7 @@ kgdb_port_init(void)
{
#if (NIMXUART > 0)
if (strcmp(kgdb_devname, "imxuart") == 0) {
imxuart_kgdb_attach(&imx_bs_tag, kgdb_addr,
imxuart_kgdb_attach(&armv7_generic_bs_tag, kgdb_addr,
kgdb_rate, kgdb_mode);
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: netwalker_machdep.c,v 1.17 2014/07/25 16:04:27 hkenken Exp $ */
/* $NetBSD: netwalker_machdep.c,v 1.18 2015/05/07 04:13:47 hkenken Exp $ */
/*
* Copyright (c) 2002, 2003, 2005, 2010 Genetec Corporation.
@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netwalker_machdep.c,v 1.17 2014/07/25 16:04:27 hkenken Exp $");
__KERNEL_RCSID(0, "$NetBSD: netwalker_machdep.c,v 1.18 2015/05/07 04:13:47 hkenken Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_arm_debug.h"
@ -671,7 +671,7 @@ consinit(void)
#else
consaddr = IMX51_UART1_BASE;
#endif
imxuart_cons_attach(&imx_bs_tag, consaddr, consrate, consmode);
imxuart_cons_attach(&armv7_generic_bs_tag, consaddr, consrate, consmode);
return;
}
#endif
@ -707,7 +707,7 @@ kgdb_port_init(void)
{
#if (NIMXUART > 0)
if (strcmp(kgdb_devname, "imxuart") == 0) {
imxuart_kgdb_attach(&imx_bs_tag, kgdb_addr,
imxuart_kgdb_attach(&armv7_generic_bs_tag, kgdb_addr,
kgdb_rate, kgdb_mode);
return;
}