X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fst%2Fstm32mp1%2Fstm32mp1.c;h=1b8ad1ef5315ef655fad9ba67e246612460934be;hb=e968c393dab0db1029802a857d2af6f9f5aaa285;hp=4ed2d8884964bfe00ebc75232848ffb6d0f15da2;hpb=dd38416d6b354acb5d12e2bd1fd45e7e63b8a605;p=oweals%2Fu-boot.git diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 4ed2d88849..1b8ad1ef53 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -7,13 +7,17 @@ #include #include #include +#include #include #include #include #include #include +#include #include +#include #include +#include #include #include #include @@ -30,6 +34,7 @@ #include #include #include +#include #include #include @@ -606,7 +611,7 @@ error: static bool board_is_dk2(void) { - if (CONFIG_IS_ENABLED(TARGET_STM32MP157C_DK2) && + if (CONFIG_IS_ENABLED(TARGET_ST_STM32MP15x) && of_machine_is_compatible("st,stm32mp157c-dk2")) return true; @@ -1095,10 +1100,8 @@ static void board_copro_image_process(ulong fw_image, size_t fw_size) printf("Load Remote Processor %d with data@addr=0x%08lx %u bytes:%s\n", id, fw_image, fw_size, ret ? " Failed!" : " Success!"); - if (!ret) { + if (!ret) rproc_start(id); - env_set("copro_state", "booted"); - } } U_BOOT_FIT_LOADABLE_HANDLER(IH_TYPE_COPRO, board_copro_image_process);