~ubuntu-branches/ubuntu/lucid/skyeye/lucid-proposed

« back to all changes in this revision

Viewing changes to arch/arm/mach/skyeye_mach_lpc.c

  • Committer: Bazaar Package Importer
  • Author(s): Yu Guanghui
  • Date: 2007-08-07 13:25:49 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20070807132549-96159k1obat1fxr0
Tags: 1.2.3-1
* New upstream release
* Added NO_BFD=1, don't require libbfd now. (Closes:Bug#423933) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
        lpc_vic_t vic;
134
134
        ARMword pinsel0;
135
135
        lpc_uart_t uart[2];     /* Receive data register */
136
 
        ARMword mmcr;           /*Memory mapping control register */
 
136
        ARMword memmap;         /*Memory mapping control register */
137
137
 
138
138
 
139
139
} lpc_io_t;
555
555
        case 0xe01fc08c:
556
556
                io.pll.feed = data;
557
557
                break;
 
558
 
558
559
                /*memory map control */
559
560
        case 0xe01fc040:
560
 
                io.mmcr = data;
 
561
                io.memmap = data;
 
562
                switch(io.memmap & 0x3){
 
563
#if 0
 
564
                        case 0: /* Bootloader mode, vector is remaped to Boot Block */
 
565
                        case 1: /* User Flash mode, vector is not remapped */
 
566
                        case 3: /* User external memory module, vector is remapped to external memory */
 
567
#endif
 
568
                        case 2: /* User ram mode, vector is remapped to static ram */
 
569
                                state->vector_remap_flag = 1;
 
570
                                state->vector_remap_addr = 0x40000000;
 
571
                                break;
 
572
                        default:
 
573
                                printf ("ERROR:io_write memmap register to invalid value: data = %x\n", data);
 
574
                }
561
575
                break;
562
576
        case 0xe002c000:
563
577
                io.pinsel0 = data;