From owner-svn-src-projects@FreeBSD.ORG Sun Feb 26 10:52:58 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15605106566C; Sun, 26 Feb 2012 10:52:58 +0000 (UTC) (envelope-from dmarion@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 04FA08FC08; Sun, 26 Feb 2012 10:52:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1QAqvY9061753; Sun, 26 Feb 2012 10:52:57 GMT (envelope-from dmarion@svn.freebsd.org) Received: (from dmarion@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1QAqvAF061751; Sun, 26 Feb 2012 10:52:57 GMT (envelope-from dmarion@svn.freebsd.org) Message-Id: <201202261052.q1QAqvAF061751@svn.freebsd.org> From: Damjan Marion Date: Sun, 26 Feb 2012 10:52:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232173 - projects/armv6/sys/arm/ti X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2012 10:52:58 -0000 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); }