/* SPDX-License-Identifier: GPL-2.0-or-later */

#include <baseboard/variants.h>

void variant_devtree_update(void)
{
	struct soc_amd_picasso_config *cfg;

	cfg = config_of_soc();

	/*
	 * Enable eMMC if eMMC bit is set in FW_CONFIG or device is unprovisioned.
	 */
	if (!(variant_has_emmc() || boot_is_factory_unprovisioned()))
		cfg->emmc_config.timing = SD_EMMC_DISABLE;
}
