Hello Vikram,
On Thu, 20 Dec 2007, Pandita, Vikram wrote:
> Following is the error log with your debug patch on 3430 ES2.0
Cool.
> [snip]
> <7>clock: recalc'ing clksel clk sgx_fck
> <7>clock: in omap2_get_clksel_by_parent: clk sgx_fck
> <1>Unable to handle kernel NULL pointer dereference at virtual address 0000000c
Hmph, I forgot to init the parent of sgx_fck on boot. Could you try the
attached patch and see if it fixes the problem?
- Paul
---
arch/arm/mach-omap2/clock34xx.h | 1 +
1 file changed, 1 insertion(+)
Index: linux-omap/arch/arm/mach-omap2/clock34xx.h
===================================================================
--- linux-omap.orig/arch/arm/mach-omap2/clock34xx.h 2007-12-20 00:14:22.000000000 -0700
+++ linux-omap/arch/arm/mach-omap2/clock34xx.h 2007-12-20 00:15:37.000000000 -0700
@@ -898,6 +898,7 @@
static struct clk sgx_fck = {
.name = "sgx_fck",
+ .init = &omap2_init_clksel_parent,
.enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_SGX_MOD, CM_FCLKEN),
.enable_bit = OMAP3430ES2_EN_SGX_SHIFT,
.clksel_reg = OMAP_CM_REGADDR(OMAP3430ES2_SGX_MOD, CM_CLKSEL),