Skip to contentSkip to conversation

identifying s5p based devices

DISCUSSION Ben Dooks 1 participant 1 message Jan 14, 2010 Arm Samsung Exynos

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

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.