From 6cf369932ee052b536e828c2f79fd91aad84c506 Mon Sep 17 00:00:00 2001 From: Maximilian Rehkopf Date: Tue, 30 Aug 2011 15:38:15 +0200 Subject: [PATCH] firmware/bootloader: prevent premature entry of SuperCIC pair mode --- src/bootldr/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootldr/main.c b/src/bootldr/main.c index 438604e..8ada71d 100644 --- a/src/bootldr/main.c +++ b/src/bootldr/main.c @@ -27,7 +27,8 @@ int (*chain)(void) = (void*)(FW_START+0x000001c5); int main(void) { LPC_GPIO2->FIODIR = BV(0) | BV(1) | BV(2); - LPC_GPIO1->FIODIR = 0; + BITBAND(SNES_CIC_PAIR_REG->FIOSET, SNES_CIC_PAIR_BIT) = 1; + LPC_GPIO1->FIODIR = BV(25); LPC_GPIO0->FIODIR = BV(16); /* connect UART3 on P0[25:26] + SSP0 on P0[15:18] + MAT3.0 on P0[10] */