@@ -103,6 +103,10 @@ int board_init(void)
kirkwood_mpp_conf(kwmpp_config);
+ /* PERST# should be asserted for at least 100 us */
+ udelay(100);
+ writel(readl(KW_GPIO0_BASE) | (1<<7), KW_GPIO0_BASE);
+
/*
* arch number of board
*/
@@ -30,10 +30,10 @@
#ifndef __OPENRD_BASE_H
#define __OPENRD_BASE_H
-#define OPENRD_OE_LOW (~(1<<28)) /* RS232 / RS485 */
-#define OPENRD_OE_HIGH (~(1<<2)) /* SD / UART1 */
-#define OPENRD_OE_VAL_LOW (0) /* Sel RS232 */
-#define OPENRD_OE_VAL_HIGH (1 << 2) /* Sel SD */
+#define OPENRD_OE_LOW (~((1<<28) | (1<<7))) /* RS232 / RS485, PCIe */
+#define OPENRD_OE_HIGH (~(1<<2)) /* SD / UART1 */
+#define OPENRD_OE_VAL_LOW 0 /* Sel RS232, PCIe reset */
+#define OPENRD_OE_VAL_HIGH (1 << 2) /* Sel SD */
/* PHY related */
#define MV88E1116_LED_FCTRL_REG 10