diff --git a/board/qca/arm/common/fdt_fixup.c b/board/qca/arm/common/fdt_fixup.c index 1aac99cd9d..445572483b 100644 --- a/board/qca/arm/common/fdt_fixup.c +++ b/board/qca/arm/common/fdt_fixup.c @@ -771,6 +771,11 @@ __weak void fdt_fixup_wcss_rproc_for_atf(void *blob) return; } +__weak void fdt_fixup_art_format(void *blob) +{ + return; +} + __weak void fdt_fixup_bt_debug(void *blob) { return; @@ -921,6 +926,11 @@ int ft_board_setup(void *blob, bd_t *bd) if (s) { fdt_fixup_bt_debug(blob); } + /* + || This features fixup compressed_art in + || dts if its 16M profile build. + */ + fdt_fixup_art_format(blob); #ifdef CONFIG_QCA_MMC board_mmc_deinit(); diff --git a/board/qca/arm/ipq5018/ipq5018.c b/board/qca/arm/ipq5018/ipq5018.c index 0c49bfa6fe..e727bb4557 100644 --- a/board/qca/arm/ipq5018/ipq5018.c +++ b/board/qca/arm/ipq5018/ipq5018.c @@ -1704,6 +1704,16 @@ void fdt_fixup_bt_debug(void *blob) } +#ifdef CONFIG_IPQ_TINY +void fdt_fixup_art_format(void *blob) +{ + int nodeoffset; + nodeoffset = fdt_path_offset(blob, "/"); + fdt_add_subnode(blob, nodeoffset, "compressed_art"); + +} +#endif + void run_tzt(void *address) { execute_tzt(address);