# HG changeset patch # User Michael Spacefalcon # Date 1374816813 0 # Node ID a323b4cc69e648cafa0286bfba7db5908288c4f6 # Parent b8f335553000eca56ffaee1d817d225084ef31ea pirexplore: XRAM/flash access init like in the pirelli.init script diff -r b8f335553000 -r a323b4cc69e6 target-utils/pirexplore/main.c --- a/target-utils/pirexplore/main.c Fri Jul 26 04:57:03 2013 +0000 +++ b/target-utils/pirexplore/main.c Fri Jul 26 05:33:33 2013 +0000 @@ -13,6 +13,14 @@ uart_name, rom_vars.baud_rate_code); printf("TCXO clock input autodetected to be %d MHz\n", rom_vars.clktcxo_13mhz ? 13 : 26); + /* + * Make the same register settings as in the init script used by + * fc-loadtool and fc-xram: ../../loadtools/scripts/pirelli.init + */ + *(volatile u16 *)0xfffffb00 = 0x00A4; + *(volatile u16 *)0xfffffb02 = 0x00A4; + *(volatile u16 *)0xfffffb06 = 0x00A4; + *(volatile u16 *)0xfffef006 = 0x0008; for (;;) { putchar('='); if (command_entry())