diff target-utils/c139explore/main.c @ 949:df1dccc0ef9c

c139explore: GPIO init and backlight on/off control implemented
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Wed, 04 Nov 2015 00:46:36 +0000
parents c73516dd50bb
children cd34e0d534b9
line wrap: on
line diff
--- a/target-utils/c139explore/main.c	Mon Nov 02 22:11:06 2015 +0000
+++ b/target-utils/c139explore/main.c	Wed Nov 04 00:46:36 2015 +0000
@@ -9,6 +9,10 @@
 	osmo_delay_ms(30);
 	uart_base = (struct ns16550_regs *) 0xFFFF5800;
 	printf("C139 hardware exploration utility running\n");
+	/* GPIO init */
+	*(volatile u16 *)0xfffe4802 = 0x0002;
+	*(volatile u16 *)0xfffe4804 = 0xFFF5;
+	abb_init();
 	for (;;) {
 		putchar('=');
 		if (command_entry())