base + IODFT_TLGC);
}
+/* this flashes the Panda LEDs forever, if called after muxconf */
+
+void spam_leds(void)
+{
+ unsigned int v = __raw_readl(OMAP44XX_GPIO_BASE1 + 0x134);
+
+ /* set both LED gpio to output */
+ __raw_writel((v & ~(0x03 << 7)), OMAP44XX_GPIO_BASE1 + 0x134);
+
+ v = __raw_readl(OMAP44XX_GPIO_BASE1 + 0x13c);
+ while (1) {
+ __raw_writel((v & ~(0x03 << 7)), OMAP44XX_GPIO_BASE1 + 0x13c);
+ big_delay(3000000);
+ __raw_writel((v | (0x03 << 7)), OMAP44XX_GPIO_BASE1 + 0x13c);
+ big_delay(3000000);
+ }
+}
+
/* TODO: FREQ update method is not working so shadow registers programming
* is just for same of completeness. This would be safer if auto
* trasnitions are working
sr32(0x4A30a110, 2, 2, 0x3);
}
}
-
}
/*******************************************************
}
#define OMAP44XX_WKUP_CTRL_BASE 0x4A31E000
+
#if 1
#define M0_SAFE M0
#define M1_SAFE M1