Skip to content
Snippets Groups Projects
Commit 4cd3e813 authored by Oleksii Kutuzov's avatar Oleksii Kutuzov
Browse files

[MYON2][BOARD] Add custom overlays logic

Currently for audio codecs based on board revsion
parent e08a696c
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
#include <power/pmic.h>
#include <power/bd71837.h>
#include <usb.h>
#include <seco/seco_fdt_overlay.h>
#include "fuse_cfg.h"
......@@ -535,6 +536,12 @@ int board_late_init(void)
env_set("board_rev", "IMX8MM");
#endif
if (GET_MYON2_REV_FUSES <= REV_V1R4) {
seco_fdt_overlay_add_custom("seco-imx8mm-myon2-wm8983.dtbo");
} else if (GET_MYON2_REV_FUSES >= REV_V2R1) {
seco_fdt_overlay_add_custom("seco-imx8mm-myon2-wm8962.dtbo");
}
#ifdef CONFIG_ENV_IS_IN_MMC
board_late_mmc_env_init();
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment