Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/xscale Enable UART clock in pxauart_attach().
details: https://anonhg.NetBSD.org/src/rev/d76d285a45b1
branches: trunk
changeset: 749707:d76d285a45b1
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sun Dec 06 12:27:33 2009 +0000
description:
Enable UART clock in pxauart_attach().
diffstat:
sys/arch/arm/xscale/pxa2x0_com.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 243ba6d6339d -r d76d285a45b1 sys/arch/arm/xscale/pxa2x0_com.c
--- a/sys/arch/arm/xscale/pxa2x0_com.c Sun Dec 06 12:23:24 2009 +0000
+++ b/sys/arch/arm/xscale/pxa2x0_com.c Sun Dec 06 12:27:33 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pxa2x0_com.c,v 1.11 2009/08/04 12:11:33 kiyohara Exp $ */
+/* $NetBSD: pxa2x0_com.c,v 1.12 2009/12/06 12:27:33 kiyohara Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pxa2x0_com.c,v 1.11 2009/08/04 12:11:33 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pxa2x0_com.c,v 1.12 2009/12/06 12:27:33 kiyohara Exp $");
#include "opt_com.h"
@@ -143,6 +143,7 @@
bus_space_tag_t iot;
bus_space_handle_t ioh;
bus_addr_t iobase;
+ int cken = 0;
sc->sc_dev = self;
iot = &pxa2x0_a4x_bs_tag; /* XXX: This sucks */
@@ -157,6 +158,14 @@
}
COM_INIT_REGS(sc->sc_regs, iot, ioh, iobase);
+ switch (pxa->pxa_addr) {
+ case PXA2X0_FFUART_BASE: cken = CKEN_FFUART; break;
+ case PXA2X0_STUART_BASE: cken = CKEN_STUART; break;
+ case PXA2X0_BTUART_BASE: cken = CKEN_BTUART; break;
+ case PXA2X0_HWUART_BASE: cken = CKEN_HWUART; break;
+ }
+ pxa2x0_clkman_config(cken, 1);
+
com_attach_subr(sc);
pxa2x0_intr_establish(pxa->pxa_intr, IPL_SERIAL, comintr, sc);
Home |
Main Index |
Thread Index |
Old Index