Skip to contentSkip to conversation

prcm_34xx.c--compiler error

DISCUSSION Sam Duan 1 participant 1 message Nov 25, 2008

lore
Share & tools
lore

Sam Duan

author
#0 lore raw

Hi All,

I am new here, pardon me if this mail is not suitable and please point out to me.
When CONFIG_OMAP3_PM was enabled with omapkernel2.6.27 for omapzoom board(configured with "omap_ldp_pm_defconfig"), I got errors: "initializer element is not constant" from line 66 to line 467 in prcm_34xx.c. All errors relates to initialization for dom_reg[].regdef[].reg_addr, dpll_reg[].regdef[].reg_addr, clksel_reg[].reg_addr..if we missed some initialization in prcm-regs.h(line 40) for "typedef struct { volatile u32 offset[4096]; } __regbase32;"? I am not clear how the initialization working.
The kernel can be built OK with "omap_ldp_defconfig" following steps in "Getting Started with Linux OMAP Kernel".
I googled this error but couldn't find any information useful for this issue. Did anybody meet the same problem?

Appreciate for your attention.

Sam Duan