public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Reading from ISP registers fails
@ 2009-07-21  8:37 matthias schwarz
  2009-07-21 10:14 ` Roger Quadros
  0 siblings, 1 reply; 4+ messages in thread
From: matthias schwarz @ 2009-07-21  8:37 UTC (permalink / raw)
  To: linux-omap

Hello there,

i just wrote a little kernel-module, which only executes the following
lines of code:

u32 syn_mode;
void* iomem;
struct resource* resource_ptr;

resource_ptr = request_mem_region(0x480BC000, 0xFFF, "isp_ccdc");

iomem = ioremap(OMAP3ISP_REG(ISP_SYSCONFIG), 8);
if(iomem == NULL) {
	printk("ioremap returned zero\n");
	return 0;
}
syn_mode = ioread32(iomem);



The resulting behaviour does not depend on which ISP register i am
trying to read, it also happens for "OMAP3ISP_CCDC_REG_BASE +
ISPCCDC_SYN_MODE" for example. And also when using
"omap_readl(address)" to read those registers.

So when this code is executed i get:

Unhandled fault: external abort on non-linefetch (0x1028) at 0xd80bc004
Internal error: : 1028 [#1] PREEMPT
Internal error: : 1028 [#1] PREEMPT
Modules linked in:Modules linked in: camera(+) camera(+) ipv6 ipv6

CPU: 0    Not tainted  (2.6.28-omap1 #15)
[...]


Hope someone can help me with what might be wrong.
Thank you,
Matthias

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-21 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-21  8:37 Reading from ISP registers fails matthias schwarz
2009-07-21 10:14 ` Roger Quadros
2009-07-21 11:01   ` matthias schwarz
2009-07-21 15:45     ` Hiremath, Vaibhav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox