removed obsolete code
authorlothar <lothar>
Wed, 8 Jul 2009 10:47:54 +0000 (10:47 +0000)
committerlothar <lothar>
Wed, 8 Jul 2009 10:47:54 +0000 (10:47 +0000)
added WinCE data structure
changed ARM clock to 399MHz

packages/hal/arm/mx25/karo/v1_0/include/hal_platform_setup.h

index ebd9b6f..f8f9931 100644 (file)
 
        ldr     r0, UART1_UBMR_W
        str     r0, [r1, #0xa8]         @ UBMR
-#if 0
-1:
-#if 0
-       ldr     r0, [r1, #0x94]         @ USR1
-       tst     r0, #(1 << 4)           @ AWAKE
-       beq     1b
-#else
-       ldr     r0, [r1, #0x98]         @ USR2
-       tst     r0, #(1 << 15)          @ ADET
-       beq     1b
-#endif
-       mov     r0, #'*'
-       str     r0, [r1, #0x40]         @TXFIFO
-#if 0
-       mov     r2, #RAM_BANK1_BASE
-       ldr     r0, [r1, #0xa4]         @ UBIR
-       str     r0, [r2], #4
-       ldr     r0, [r1, #0xa8]         @ UBMR
-       str     r0, [r2], #4
-#endif
-#endif
        .endm
 
        .macro  uart_putc,c
@@ -752,6 +731,21 @@ setup_sdram_bank:
 
 #define PLATFORM_VECTORS        _platform_vectors
        .macro  _platform_vectors
+       .globl  _KARO_MAGIC
+_KARO_MAGIC:
+       .ascii  "KARO_CE6"
+       .globl  _KARO_STRUCT_SIZE
+_KARO_STRUCT_SIZE:
+       .word   0       // reserve space structure length
+
+       .globl  _KARO_CECFG_START
+_KARO_CECFG_START:
+       .rept   1024/4
+       .word   0       // reserve space for CE configuration
+       .endr
+
+       .globl  _KARO_CECFG_END
+_KARO_CECFG_END:
        .endm
 
 //Internal Boot, from MMC/SD cards or NAND flash
@@ -879,7 +873,7 @@ CCM_CGR0_W:         .word   0x1FFFFFFF
 CCM_CGR1_W:            .word   0xFFFFFFFF
 CCM_CGR2_W:            .word   0x000FDFFF
 CCM_BASE_ADDR_W:       .word   CCM_BASE_ADDR
-CCM_CCTL_VAL_W:                .word   0x30030000
+CCM_CCTL_VAL_W:                .word   0x20034000
 /*-----------------------------------------------------------------------*/
 /* end of hal_platform_setup.h                                          */
 #endif /* CYGONCE_HAL_PLATFORM_SETUP_H */