identifying s5p based devices
After thinking about previous discussions with Samsng SystemLSI group about the newer SoC and lack of continuty in the placement of the device identification register I was thinking the following:
Woud it be possible to probe each possible ID register location to see if there is a valid identity there and stop once a valid one is read?
IE:
void __iomem *idplaces = {
...
....
}
...
for (r in idplaces) {
id = __raw_readl(r);
cpu = cpu_find(r);
if (cpu) {
print_cpu_id(cpu);
break;
}
}Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.