comparison target-utils/pirexplore/main.c @ 74:8138a6380ae3

pirexplore: attempt to play with SPCA552E
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 27 Jul 2013 07:30:08 +0000
parents a323b4cc69e6
children 07b686248ab7
comparison
equal deleted inserted replaced
73:c54c6ad1c66f 74:8138a6380ae3
19 */ 19 */
20 *(volatile u16 *)0xfffffb00 = 0x00A4; 20 *(volatile u16 *)0xfffffb00 = 0x00A4;
21 *(volatile u16 *)0xfffffb02 = 0x00A4; 21 *(volatile u16 *)0xfffffb02 = 0x00A4;
22 *(volatile u16 *)0xfffffb06 = 0x00A4; 22 *(volatile u16 *)0xfffffb06 = 0x00A4;
23 *(volatile u16 *)0xfffef006 = 0x0008; 23 *(volatile u16 *)0xfffef006 = 0x0008;
24 /*
25 * Other register settings replicating what OsmocomBB does
26 * in board/pirelli_dpl10/init.c
27 */
28 *(volatile u16 *)0xfffef008 = 0x7090;
29 *(volatile u16 *)0xfffef00a = 0x021F;
30 *(volatile u16 *)0xfffe4804 = 0xFF6D;
31 *(volatile u16 *)0xfffe4802 = 0x0000;
32 *(volatile u16 *)0xfffe4802 = 0x0012;
33 /* nCS4 setup for SPCA552E */
34 *(volatile u16 *)0xfffffb0a = 0x00A7;
24 for (;;) { 35 for (;;) {
25 putchar('='); 36 putchar('=');
26 if (command_entry()) 37 if (command_entry())
27 command_dispatch(); 38 command_dispatch();
28 } 39 }