[Freemint-list] Generic power-off functionality

Jo Even Skarstein joska at online.no
Mon Jan 9 01:55:10 MSK 2017


FreeMiNT currently supports power-off on the CT6x and the FireBee. Now,
I have ATX/PicoPSU's in several of my machines, in two of them the PSU
is controlled by a microcontroller so I can switch them off with
software. I'd rather not add direct support for my odd hardware in the
kernel, but it would be nice if the kernel could use an external
function/driver for this.

I suggest that before MiNT access any power-off hardware directly, it
looks for a cookie "cPSU", if available it calls the function pointed to
by the cookie. Then it would be up to the provider of the hardware to
provide the code that does the actual power-off.

Any objections/suggestions?

Jo Even



More information about the Freemint-list mailing list