To disable the charger on power-up, connect a micro GPIO that defaults to HI-Z during power-up to the DETBATB pin of the MAX77818. This will ensure the DETBATB pin is open while the micro is booting up and keeps the charger disabled. Then, when the charger is configured to the correct registers, pull the DETBATB pin LOW with the GPIO to enable the charger.