diff 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
line wrap: on
line diff
--- a/target-utils/pirexplore/main.c	Fri Jul 26 21:12:03 2013 +0000
+++ b/target-utils/pirexplore/main.c	Sat Jul 27 07:30:08 2013 +0000
@@ -21,6 +21,17 @@
 	*(volatile u16 *)0xfffffb02 = 0x00A4;
 	*(volatile u16 *)0xfffffb06 = 0x00A4;
 	*(volatile u16 *)0xfffef006 = 0x0008;
+	/*
+	 * Other register settings replicating what OsmocomBB does
+	 * in board/pirelli_dpl10/init.c
+	 */
+	*(volatile u16 *)0xfffef008 = 0x7090;
+	*(volatile u16 *)0xfffef00a = 0x021F;
+	*(volatile u16 *)0xfffe4804 = 0xFF6D;
+	*(volatile u16 *)0xfffe4802 = 0x0000;
+	*(volatile u16 *)0xfffe4802 = 0x0012;
+	/* nCS4 setup for SPCA552E */
+	*(volatile u16 *)0xfffffb0a = 0x00A7;
 	for (;;) {
 		putchar('=');
 		if (command_entry())