I'm writing a Linux platform driver for a couple of Geode based boards, and was thinking that it would be nice if there was a canonical/prototypical stub routine that came with coreboot that detected the signature on a target system.
That is, I could paste this code into a platform driver (for instance) in Linux that would locate the mainboard vendor and model, and I could use that to confirm that I'm running on the correct target and not a mismatched kernel configuration.
I looked at flashrom's coreboot_init() and find_lb_table() and it looks like something could be cobbled from there.
Can someone please piece that together?
Thanks,
-Philip