;******************************************************************************
;*
;* System On Chip(SOC)
;*
;* Copyright (c) 2009 Software Center, Samsung Electronics, Inc.
;* All rights reserved.
;*
;* This software is the confidential and proprietary information of Samsung 
;* Electronics, Inc("Confidential Information"). You Shall not disclose such 
;* Confidential Information and shall use it only in accordance with the terms 
;* of the license agreement you entered into Samsung.
;*
;******************************************************************************

    INCLUDE kxarm.h
    INCLUDE register_map.inc
    INCLUDE armmacros.s

    
IDLEMASK            EQU         0x300
ENTER_IDLE          EQU         0x100


    TEXTAREA

;--------------------------------------------------------------------------
; OALCPUIdle_WFI
; - As WM6.x does not support ARMv7, we can't use the ARM instruction 'WFI'
;   So we should use the disassemble value of WFI
;--------------------------------------------------------------------------        
    LEAF_ENTRY OALCPUIdle_WFI

    ;mov     r0, #0
    ;mcr     p15,0,r0,c7,c10,5           ; Data Memory Barrier
    ;mcr     p15,0,r0,c7,c10,4           ; Data Synchronization Barrier
    DCD     0xf57ff05f                  ; DMB (Data Memory Barrier)
    DCD     0xf57ff04f                  ; DSB (Data Synchronization Barrier)
    
    DCD     0xe320f003                  ; WFI
     
    mov     pc, lr
   

    ENTRY_END
    
    END

    
