Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2012 10:52:57 +0000 (UTC)
From:      Damjan Marion <dmarion@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r232173 - projects/armv6/sys/arm/ti
Message-ID:  <201202261052.q1QAqvAF061751@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dmarion
Date: Sun Feb 26 10:52:57 2012
New Revision: 232173
URL: http://svn.freebsd.org/changeset/base/232173

Log:
  Reset AINTC during attach.
  
  Approved by:  cognet (mentor)

Modified:
  projects/armv6/sys/arm/ti/aintc.c

Modified: projects/armv6/sys/arm/ti/aintc.c
==============================================================================
--- projects/armv6/sys/arm/ti/aintc.c	Sun Feb 26 10:20:55 2012	(r232172)
+++ projects/armv6/sys/arm/ti/aintc.c	Sun Feb 26 10:52:57 2012	(r232173)
@@ -110,6 +110,16 @@ ti_aintc_attach(device_t dev)
 
 	x = aintc_read_4(INTC_REVISION);
 	device_printf(dev, "Revision %u.%u\n",(x >> 4) & 0xF, x & 0xF);
+
+	/* SoftReset */
+	aintc_write_4(INTC_SYSCONFIG, 2);
+
+	/* Wait for reset to complete */
+	while(!(aintc_read_4(INTC_SYSSTATUS) & 1));
+
+	/*Set Priority Threshold */
+	aintc_write_4(INTC_THRESHOLD, 0xFF);
+
 	return (0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202261052.q1QAqvAF061751>