s5pc1xx: universal: modify init TZPC
authorJoonyoung Shim <jy0922.shim@samsung.com>
Fri, 7 Aug 2009 07:49:26 +0000 (16:49 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Fri, 7 Aug 2009 07:49:26 +0000 (16:49 +0900)
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
board/samsung/universal/lowlevel_init.S

index cdcfc8b..551d8f6 100644 (file)
@@ -131,8 +131,8 @@ lowlevel_init:
        /* for UART */
        bl      uart_asm_init
 
-       /* for DMA */
-       bl      dma_asm_init
+       /* for TZPC */
+       bl      tzpc_asm_init
 #endif
 
 #ifdef CONFIG_ONENAND_IPL
@@ -384,9 +384,9 @@ uart_asm_init:
        mov     pc, lr
 
 /*
- * dma_asm_init: Initialize DMA
+ * tzpc_asm_init: Initialize TZPC
  */
-dma_asm_init:
+tzpc_asm_init:
        cmp     r7, r8
        ldreq   r0, =0xE3800000                 @ TZPC0
        ldrne   r0, =0xF1500000                 @ TZPC0
@@ -395,6 +395,7 @@ dma_asm_init:
        mov     r1, #0xff
        str     r1, [r0, #0x804]
        str     r1, [r0, #0x810]
+       strne   r1, [r0, #0x81C]
 
        cmp     r7, r8
        ldreq   r0, =0xE2800000                 @ TZPC1
@@ -408,6 +409,13 @@ dma_asm_init:
        ldrne   r0, =0xE0600000                 @ TZPC2
        str     r1, [r0, #0x804]
        str     r1, [r0, #0x810]
+       strne   r1, [r0, #0x81C]
+
+       cmp     r7, r8
+       ldrne   r0, =0xE1C00000                 @ TZPC3 S5PC110 only
+       strne   r1, [r0, #0x804]
+       strne   r1, [r0, #0x810]
+       strne   r1, [r0, #0x81C]
 
        mov     pc, lr