Revision: 565
http://svn.sourceforge.net/hackndev/?rev=565&view=rev
Author: bobofdoom
Date: 2006-09-15 06:58:12 -0700 (Fri, 15 Sep 2006)
Log Message:
-----------
Fixed typo in AC97 shutoff.
Modified Paths:
--------------
cocoboot/trunk/arm/cpu.c
Modified: cocoboot/trunk/arm/cpu.c
===================================================================
--- cocoboot/trunk/arm/cpu.c 2006-09-10 19:37:09 UTC (rev 564)
+++ cocoboot/trunk/arm/cpu.c 2006-09-15 13:58:12 UTC (rev 565)
@@ -5,6 +5,7 @@
#define GCR __REG(0x4050000C) /* Global Control Register */
#define GCR_ACLINK_OFF (1 << 3) /* AC-link Shut Off */
+#define GCR_PRIRDY_IEN (1 << 8) /* Primary Ready Interrupt Enable */
#define ICMR __REG(0x40D00004) /* Interrupt Controller Mask Register */
#define ICLR __REG(0x40D00008) /* Interrupt Controller Level Register */
@@ -25,7 +26,8 @@
void setup_xscale_cpu(void)
{
- GCR |= ~GCR_ACLINK_OFF; // shut off the AC97 audio controlller
+ GCR |= GCR_ACLINK_OFF; // shut off the AC97 audio controlller
+ GCR &= ~GCR_PRIRDY_IEN; // mask an interrupt that causes sound driver to hang
/* mask all interrupts */
ICMR = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|