Hi,
I am working on OMAP. In the PMIC chip, there are power scripts (e.g. in our case High frequency oscillator clk is coming from PMIC). I want to understand more about .type and .type2 initialization for resources. I have gone through also TRM of PMIC chip which it programs to registers.
e.g., This is sample code:
static struct twl4030_resconfig twl4030_rconfig[] __initdata = {
{ .resource = RES_VDD1, .devgroup = -1,
.type = 1, .type2 = -1, .remap_off = RES_STATE_OFF,
.remap_sleep = RES_STATE_OFF
},
I want to understand the .type and .type2 fields? How can we choose these fields while configuration? Another question is "is it mandatory for all OMAP family processors to configure these scripts?"
Regards,
Raj