Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/imx31 make this compile again. Need to revi...
details: https://anonhg.NetBSD.org/src/rev/1b39a6608bea
branches: trunk
changeset: 758689:1b39a6608bea
user: bsh <bsh%NetBSD.org@localhost>
date: Sat Nov 13 06:29:12 2010 +0000
description:
make this compile again. Need to revisit for UART support.
diffstat:
sys/arch/evbarm/imx31/imx31lk_machdep.c | 37 +++++++++-----------------------
1 files changed, 11 insertions(+), 26 deletions(-)
diffs (105 lines):
diff -r 3e24e31841c9 -r 1b39a6608bea sys/arch/evbarm/imx31/imx31lk_machdep.c
--- a/sys/arch/evbarm/imx31/imx31lk_machdep.c Sat Nov 13 06:28:20 2010 +0000
+++ b/sys/arch/evbarm/imx31/imx31lk_machdep.c Sat Nov 13 06:29:12 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imx31lk_machdep.c,v 1.9 2009/12/26 16:01:24 uebayasi Exp $ */
+/* $NetBSD: imx31lk_machdep.c,v 1.10 2010/11/13 06:29:12 bsh Exp $ */
/*
* Startup routines for the ZOOM iMX31 LITEKIT.
@@ -110,7 +110,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.9 2009/12/26 16:01:24 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.10 2010/11/13 06:29:12 bsh Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -153,6 +153,7 @@
#include <arm/arm32/pte.h>
#include <arm/arm32/machdep.h>
+#include <arm/imx/imx31reg.h>
#include <arm/imx/imxuartreg.h>
#include <arm/imx/imxuartvar.h>
#include <evbarm/imx31/imx31lk_reg.h>
@@ -340,7 +341,7 @@
static const struct pmap_devmap imx31lk_devmap[] = {
{
IMX31LITEKIT_UART1_VBASE,
- _A(IMX_UART1_BASE),
+ _A(UART1_BASE),
_S(L1_S_SIZE),
VM_PROT_READ|VM_PROT_WRITE,
PTE_NOCACHE,
@@ -398,7 +399,7 @@
/* Calibrate the delay loop. */
#endif
- imx31lk_consinit(1);
+ consinit();
#ifdef KGDB
kgdb_port_init();
@@ -672,7 +673,7 @@
cpu_setttb(kernel_l1pt.pv_pa);
cpu_tlb_flushID();
cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
- imx31lk_consinit(2);
+ //imx31lk_consinit(2);
/*
* Moved from cpu_startup() as data_abort_handler() references
@@ -809,6 +810,7 @@
#endif /* KGDB */
+#if 0
void
imx31lk_consinit(int phase)
{
@@ -819,39 +821,22 @@
ophase = phase;
switch (phase) {
case 1:
- imxuart_init(0, IMX_UART1_BASE);
+ imxuart_init(0, UART1_BASE);
break;
case 2:
bh = IMX31LITEKIT_UART1_VBASE;
- bh |= (IMX_UART1_BASE & ~_A(IMX_UART1_BASE));
+ bh |= (UART1_BASE & ~_A(UART1_BASE));
imxuart_init(0, bh);
break;
}
}
}
+#endif
void
consinit(void)
{
- imx31lk_consinit(2);
-}
-
-void consinit_test(void);
-void
-consinit_test(void)
-{
- imxuart_softc_t *sc, softc;
- extern int imxuart_puts(imxuart_softc_t *sc, const char *s);
-
- printf("\n%s start\n", __func__);
- sc = &softc;
- sc->sc_init_cnt = 0;
- imxuart_init(sc, IMX_UART1_BASE);
- imxuart_puts(sc, "test1\r\n");
- imxuart_init(sc,
- IMX31LITEKIT_UART1_VBASE|(IMX_UART1_BASE & ~_A(IMX_UART1_BASE)));
- imxuart_puts(sc, "test2\r\n");
- printf("%s done\n", __func__);
+ // imx31lk_consinit(2);
}
#ifdef KGDB
Home |
Main Index |
Thread Index |
Old Index