tkernel_2/kernel/sysdepend/device/tef_em1d/power.c | bare source | permlink (0.00 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T-Kernel 2.0 Software Package 4: * 5: * Copyright 2011 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17. 10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01. 11: * 12: *---------------------------------------------------------------------- 13: */ 14: 15: /* 16: * power.c (EM1-D512) 17: * Power-Saving Function 18: */ 19: 20: #include "sysmgr.h" 21: 22: /* 23: * Switch to power-saving mode 24: */ 25: EXPORT void low_pow( void ) 26: { 27: Asm("mcr p15, 0, %0, cr7, c0, 4":: "r"(0)); 28: } 29: 30: /* 31: * Move to suspend mode 32: */ 33: EXPORT void off_pow( void ) 34: { 35: Asm("mcr p15, 0, %0, cr7, c0, 4":: "r"(0)); 36: }