| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <baseboard/variants.h> |
| 4 | #include <device/device.h> |
| 5 | #include <soc/pci_devs.h> |
| 6 | #include <ec/google/chromeec/ec.h> |
| 7 | #include <static.h> |
| 8 | |
| 9 | void variant_devtree_update(void) |
| 10 | { |
| 11 | /* |
| 12 | * Enable eMMC if eMMC bit is set in FW_CONFIG or device is unprovisioned. |
| 13 | */ |
| 14 | if (!(variant_has_emmc() || boot_is_factory_unprovisioned())) |
| 15 | DEV_PTR(emmc)->enabled = 0; |
| 16 | } |