Hi all,
I am using Beagle board rev C4 with android 2.0 .to shut down (power off ) the omap +tps completly i used the following piece of code,
err = twl4030_i2c_read_u8(TWL4030_MODULE_PM_MASTER, &val, PWR_P1_SW_EVENTS);
if (err)
{
printk(KERN_WARNING "I2C error %d while reading TWL4030" "PM_MASTER P1_SW_EVENTS\n", err);
}
val |= PWR_DEVOFF;
err = twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, val, PWR_P1_SW_EVENTS);
if (err)
{
printk(KERN_WARNING "I2C error %d while writing TWL4030" "PM_MASTER P1_SW_EVENTS\n", err);
}
it seems above piece of code works. instead of power OFF omap restarts.
1.do i have to setup some other registers in tps65950 before do the above SW device off?
2.Other electrical design consideration i have look in to?
Thanks!