t642: add battery template support.