Carl-Daniel Hailfinger wrote:
On 25.05.2010 04:00, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
Carl-Daniel Hailfinger wrote:
Handle the following architectures in generic flashrom code:
- x86/x86_64 (little endian)
- PowerPC (big endian)
- MIPS (big+little endian)
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
This patch together with setting flash_base to 0x1fc00000 worked fine on my yeeloong LM8089 (8.9" version, mipsel (little-endian) ). I attach the logs of -Vr, -V and -w together with lspci.
Acked-by: Vladimir 'phcoder/φ-coder' Serbinenko phcoder@gmail.com
Thanks for the review and thanks for testing.
Is there a way to determine the chipset and/or the board from userspace?
I don't think it's actualy necessary. The PCI and LIO bus interfaces as well as address BootROM is mapped to is part of Loongson 2F (CPU) specification. So it's enough to check CPU model. But if you want to be on a safe side you can check "system type" in /proc/cpuinfo as well.
We'll need that to set buses_supported and flash_base correctly.
Regards, Carl-Daniel