linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 823 ports access question
@ 2000-08-28 11:18 Christopher Huffine
  2000-08-28 14:26 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Huffine @ 2000-08-28 11:18 UTC (permalink / raw)
  To: linuxppc-embedded


Sorry to write another simplistic question; hopefully
there is a simplistic answer as well:

I'm trying to figure out to write to specific
PPC ports.  For example, the Bright Star
ipEngine I have has LEDs connected to the LCD ports
from the PowerPC.  I'm looking for the right
sequence to actually write to these ports and
get these LEDs to turn on and off.

I've looked in 8xx_immap.h and I start to see
what I need to make this work (im_lcd), but I'm missing
the bigger picture.  Anyone have any example
code for anything like this?

Thanks,

Chris


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* RE: 823 ports access question
@ 2000-08-28 14:05 Brown, David (dbrown03)
  0 siblings, 0 replies; 3+ messages in thread
From: Brown, David (dbrown03) @ 2000-08-28 14:05 UTC (permalink / raw)
  To: 'Christopher Huffine', linuxppc-embedded


Port D:
  immr->pio.pdpar = 0;
  immr->pio.pddir = 0x1F0;
  if (turnOn)
    immr->pio.pddat |= (1<<(8-led));
  else
    immr->pio.pddat &= ~(1<<(8-led));
--
Dave Brown <dbrown03@harris.com>

> -----Original Message-----
> From: Christopher Huffine [mailto:huffine@wopr.nrl.navy.mil]
> Sent: Monday, August 28, 2000 7:19 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: 823 ports access question
>
>
>
> Sorry to write another simplistic question; hopefully
> there is a simplistic answer as well:
>
> I'm trying to figure out to write to specific
> PPC ports.  For example, the Bright Star
> ipEngine I have has LEDs connected to the LCD ports
> from the PowerPC.  I'm looking for the right
> sequence to actually write to these ports and
> get these LEDs to turn on and off.
>
> I've looked in 8xx_immap.h and I start to see
> what I need to make this work (im_lcd), but I'm missing
> the bigger picture.  Anyone have any example
> code for anything like this?
>
> Thanks,
>
> Chris
>
>
>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: 823 ports access question
  2000-08-28 11:18 823 ports access question Christopher Huffine
@ 2000-08-28 14:26 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2000-08-28 14:26 UTC (permalink / raw)
  To: Christopher Huffine; +Cc: linuxppc-embedded


In message <Pine.LNX.3.96.1000828071718.5707A-100000@wopr.nrl.navy.mil> you wrote:
>
> Sorry to write another simplistic question; hopefully
> there is a simplistic answer as well:

There is :-)

> PPC ports.  For example, the Bright Star
> ipEngine I have has LEDs connected to the LCD ports
> from the PowerPC.  I'm looking for the right
> sequence to actually write to these ports and
> get these LEDs to turn on and off.
>
> I've looked in 8xx_immap.h and I start to see
> what I need to make this work (im_lcd), but I'm missing
> the bigger picture.  Anyone have any example
> code for anything like this?

See the tqm_led demo driver code under
http://www.denx.de/solutions-en.html#drivers

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"Do we define evil as the absence of goodness? It seems only  logical
that shit happens--we discover this by the process of elimination."
                                                        -- Larry Wall

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-08-28 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-28 11:18 823 ports access question Christopher Huffine
2000-08-28 14:26 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2000-08-28 14:05 Brown, David (dbrown03)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).