linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Using gpiolib to power off my system
@ 2008-11-12 10:51 Juergen Beisert
  0 siblings, 0 replies; only message in thread
From: Juergen Beisert @ 2008-11-12 10:51 UTC (permalink / raw)
  To: linuxppc-dev

Hi list,

I want to use the gpiolib API in a routine that should poweroff the system=
=20
(MPC5200B). I register my poweroff routine in the define_machine() macro as:

[...]
=2Epower_off	=3D my_power_off,
[...]

In this routine I'm using gpio_request(...), gpio_direction_output(...) and=
=20
gpio_set_value(...) ---- but nothing happens.

When I set the GPIOs in the hard way (ioremap() + playing with the register=
s)=20
the system switches off as expected.

How to get some useful debug output at this late system state (printk does =
not=20
work anymore)?

Regards,
Juergen
=2D-=20
Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
=A0Pengutronix - Linux Solutions for Science and Industry
=A0   Handelsregister: Amtsgericht Hildesheim, HRA 2686
=A0 =A0 =A0    Vertretung Sued/Muenchen, Germany
   Phone: +49-8766-939 228 |  Fax: +49-5121-206917-9

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-12 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 10:51 Using gpiolib to power off my system Juergen Beisert

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).