Two power sources for charging lithium batteries