comparison target-utils/pln-ppb-test/main.c @ 985:d50df222c274

pln-ppb-test: set up Calypso MEMIF
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 02 Dec 2023 23:39:33 +0000
parents cec20c461b3a
children
comparison
equal deleted inserted replaced
984:cec20c461b3a 985:d50df222c274
1 /* 1 /*
2 * main() function for our little test program 2 * main() function for our little test program
3 */ 3 */
4
5 #include "types.h"
4 6
5 main() 7 main()
6 { 8 {
7 uart_select_init(); 9 uart_select_init();
8 printf("PL-N flash PPB test program running\n"); 10 printf("PL-N flash PPB test program running\n");
9 print_boot_rom_info(); 11 print_boot_rom_info();
12 /* Calypso MEMIF setup: support memory on any chip select */
13 *(volatile u16 *)0xfffffb00 = 0x00A4;
14 *(volatile u16 *)0xfffffb02 = 0x00A4;
15 *(volatile u16 *)0xfffffb04 = 0x00A4;
16 *(volatile u16 *)0xfffffb06 = 0x00A4;
17 *(volatile u16 *)0xfffffb0a = 0x00A4;
18 *(volatile u16 *)0xfffef006 = 0x0008;
10 for (;;) { 19 for (;;) {
11 putchar('='); 20 putchar('=');
12 if (command_entry()) 21 if (command_entry())
13 command_dispatch(); 22 command_dispatch();
14 } 23 }