From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f176.google.com (mail-pz0-f176.google.com [209.85.222.176]) by ozlabs.org (Postfix) with ESMTP id 7CB58B7B68 for ; Mon, 28 Sep 2009 12:43:02 +1000 (EST) Received: by pzk6 with SMTP id 6so1952968pzk.17 for ; Sun, 27 Sep 2009 19:43:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <87y6o6rvvc.fsf@macbook.be.48ers.dk> <87r5txrkfz.fsf@macbook.be.48ers.dk> Date: Mon, 28 Sep 2009 10:43:00 +0800 Message-ID: Subject: Re: GPIO driver for MPC8313. From: Johnny Hung To: Peter Korsgaard Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@lists.ozlabs.org, linux-embedded@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The kerne source I used now is 2.6.23 with MPC8313-erdb pached. I think I should port 2.6.28 gpio function back to 2.6.23. Is it a common way to implement it in the kernel I used or I should port MPC8313-erdb pached to 2.6.28 opposite? BRs, H. Johnny 2009/9/23 Johnny Hung : > Many thanks for your help. I will try it. > > 2009/9/23 Peter Korsgaard : >>>>>>> "Johnny" =3D=3D Johnny Hung writes: >> >> =A0Johnny> Thanks, got it. BTW, how to trigger GPIO level in user space >> =A0Johnny> application? I also found >> =A0Johnny> arch/powerpc/platforms/52xx/mpc52xx_gpio.c is a good >> =A0Johnny> example. Any reply is appreciate. >> >> Through sysfs. See 'Sysfs Interface for Userspace' section of >> Documentation/gpio.txt >> >> -- >> Bye, Peter Korsgaard >> >