Here's a new set of patches to modernize Alchemy setup and PM code.
All patches have been compile-tested with db100 and db1200 defconfigs,
and have been runnning on a few custom Au1250 boards for now more than
4 weeks. I've suspended and resumed a few hundred times while stressing
the system (continuously reading from SD cards and playing audio and
compiling GCC) without any problems.
#1 removes unussed functions
#2 removes the cpu_table and replaces it with simpler code (IMHO of course)
#3 enables use of cp0 counter as a fallback,
#4 clockevent/clocksource support using one of the 2 counters of the Au1xxx
this also enables the use of the 'wait' instruction; depends on #3
#5 cleanup made possible with #4
#7 and #8 fix suspend/resume.
I didn't touch the current Alchemy sysctl PM implementation to not change
existing behavior except when necessary (e.g. in #4), although I'm
itching to remove it completely and replace it with something better
suited (and -looking) for 2.6. It is broken for newer Alchemy SoCs anyway.
- swap patches 1 and 2
- minor refinements, no function changes.
- address Sergei's comments wrt. config[OD] handling
- change TOY clocksource to RTC clocksource
- add another patch (#5)