LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* GPIO endianness on MPC8349
@ 2006-04-10 19:48 Ben Warren
  2006-04-10 20:06 ` Kumar Gala
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Warren @ 2006-04-10 19:48 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,

I'm a noobie to this CPU, and am utterly confused with how the bits are
ordered on the GPIO ports.  I imagine it's the same as all Freescale
PPCs, but who knows.  Anyway...

Using an MPC8349MDS eval board, I have one LED to play with.  From the
schematic, it's connected to GPIO1[1].  From other processors that I've
worked with, I would have expected to toggle it with either 0x40000000
(IBM 405) or 0x00000002 (68360).  Nope.  To make this bit move, I mess
with bit 0x00000040 in the appropriate DAT register.  This leads me to
believe that either the bit ordering is something
like ...89abcdef01234567 (sorry for the confusing notation, but
hopefully it makes sense) or the schematic has a typo.  Since I'm trying
to write a generic GPIO handler, I'd like to have a little confidence in
my extrapolation from a single point.

Can anybody shed some light on this?

thanks,
Ben

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-10 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 19:48 GPIO endianness on MPC8349 Ben Warren
2006-04-10 20:06 ` Kumar Gala
2006-04-10 20:20   ` Ben Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox