From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kontron-modular.com (mail.kontron-modular.com [213.179.130.140]) by ozlabs.org (Postfix) with ESMTP id 76140DDF22 for ; Fri, 30 Jan 2009 04:47:17 +1100 (EST) Message-ID: <4981EBA1.2060902@kontron.com> Date: Thu, 29 Jan 2009 18:47:13 +0100 From: =?ISO-8859-1?Q?R=E9gis_Odey=E9?= MIME-Version: 1.0 To: Kumar Gala Subject: Re: [RFC/example] powerpc: add the mpic global timer support References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thanks for this. Regards Kumar Gala wrote: > From: Dave Liu > > The mpic timer works as wake up source for power management, > the max timer period is 336 seconds when the CCB freq is 400MHz. > > to setup timer, type > echo 30 > /sys/devices/ffe00000.soc8572/ffe41100.timer/timeout > > before the system enter to sleep mode. > > Signed-off-by: Dave Liu > --- > > Posting this both as a example of timer code for Regis as well as code for > partial review.. need to clean up a number of things. > > - k > -- Régis ODEYE Kontron Modular Computers SA 150, rue M. Berthelot / ZI Toulon Est / BP 244 / Fr 83078 TOULON Cedex 9 Phone: (33) 4 98 16 34 86 Fax: (33) 4 98 16 34 01 E-mail: regis.odeye@kontron.com Web : www.kontron.com