From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by ozlabs.org (Postfix) with ESMTP id DBBA7DDE42 for ; Fri, 18 Jan 2008 05:25:49 +1100 (EST) Received: by wx-out-0506.google.com with SMTP id h27so459687wxd.15 for ; Thu, 17 Jan 2008 10:25:46 -0800 (PST) Message-ID: <478F9DA7.6060501@gmail.com> Date: Thu, 17 Jan 2008 13:25:43 -0500 From: Ben Warren MIME-Version: 1.0 To: Bruce_Leonard@selinc.com Subject: Re: Endian problem when accessing internel regs on 8347 References: In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Bruce_Leonard@selinc.com wrote: > Ben Warren wrote on 01/17/2008 07:01:10 AM: > > >> I've attached a poorly-written-yet-functional GPIO driver that I wrote a >> > > >> while ago for the MPC8349 (same as what you have for all intents and >> purposes). It uses in_be32() and out_be32(). >> >> > Ben, > > Thanks for the answer. Hummmm, at first glance it looks like you're doing > the same thing I am. Only difference I can see is you use get_immrbase() > to figure out the address to ask for and I've got it hardcoded. Other > than that we're both using request_mem_region() in in/out_be32(). Yet > your's works for you and mine doesn't. Well, I'll take a closer look > tonight and see if there's something you're doing that I missed. > Unfortunately, I've gotten a higher level interrupt this morning and it > may ba a day or so before I get back to this and can give you any > feedback. Thanks again. > > See 'ya! > > Bruce > > Something else to consider is that I've never tried this beyond 2.6.19. Maybe things have changed since then. Anyway, glad to help if I can. cheers, Ben