Kevin Hester kevinh@ispiri.com writes:
Yep,
When I went to go add the rtc init I discovered this. I added a call to the existing rtc_init(0) from the via southbridge setup and all was well. It seems like the consenous is to move this call into hardwaremain with some sort of option driven ifdef. True?
The consensus is that rtc_init is good. I am leary about moving the actual call into mainboard.c so boards don't even have a real time clock.
And I definitely need a wrapper for it on the boards I use. Leaving the call in mainboard.c/southbridge.c is probably good for the moment.
There is some hardware description work I was playing with, and it may be worth enhancing that architecture so that you just specify which hardware you have and how it is all hooked up.
But I certainly don't have the time to work through what that would take to have things work reliably.
Eric