First off: please do _not_ apply this patch. Thanks ;-)
This moves all/most generic SPD-only functions (which are not chipset-specific) into an extra spd.c file. The second step would be to merge all near-identical functions into one generic version which all chipsets can use.
This is _not_ a working patch, yet, it's merely here to illustrate what I'm working on.
I repeat: - This should _not_ be committed in this form. - It probably doesn't compile and breaks a ton of boards - It's not yet abuild-tested - It's not tested on real hardware - It's incomplete
Preliminary comments are welcome, though...
Uwe.