r3838 - branches/src/target/kernel/2.6.24.x/patches

werner at sita.openmoko.org werner at sita.openmoko.org
Tue Jan 15 11:49:34 CET 2008


Author: werner
Date: 2008-01-15 11:49:31 +0100 (Tue, 15 Jan 2008)
New Revision: 3838

Modified:
   branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch
Log:
Applied "glamo-core-interrupt-enable-b9-madness.patch",
http://git.openmoko.org/?p=kernel.git;a=commit;h=110f15e3db695251bbc1367c10cebbc2cea44f80

Setting "General Interrupt Register 1" to 0xffff not only enabled all
irqs, but also routed interrupts to the internal RISC processor, which
isn't what we want.

Signed-off-by: Andy Green <andy at openmoko.com>

smedia-glamo.patch:
- drivers/mfd/glamo/glamo-core.c (glamo_init_script): enable all 9 irqs, but
  route interrupts to the base band processor
- drivers/mfd/glamo/glamo-core.c (glamo_init_script): only set bits that are
  actually used in "Host Bus Controller Register 2"



Modified: branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch	2008-01-15 10:45:37 UTC (rev 3837)
+++ branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch	2008-01-15 10:49:31 UTC (rev 3838)
@@ -1137,13 +1137,13 @@
 +	{ GLAMO_REG_PLL_GEN1,		0x05db },	/* 48MHz */
 +	{ GLAMO_REG_PLL_GEN3,		0x09c3 },	/* 80MHz */
 +		{ 0xfffe, 300 },
-+	{ GLAMO_REG_IRQ_ENABLE,		0xffff },
++	{ GLAMO_REG_IRQ_ENABLE,		0x01ff }, /* all 9 irqs, irq to base */
 +	{ GLAMO_REG_CLOCK_GEN6,		0x2000 },
 +	{ GLAMO_REG_CLOCK_GEN7,		0x0101 },
 +	{ GLAMO_REG_CLOCK_GEN8,		0x0100 },
 +	{ GLAMO_REG_CLOCK_HOST,		0x000d },
 +	{ 0x200,	0x0ef0 },
-+	{ 0x202, 	0x7fff },
++	{ 0x202, 	0x07ff },
 +	{ 0x212,	0x0000 },
 +	{ 0x214,	0x4000 },
 +	{ 0x216,	0xf00e },





More information about the commitlog mailing list