The TPS65510 offers a suitable solution for power switch to select the main battery or the backup battery.