]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp1: remove copro_state environment variable
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 30 Oct 2019 13:38:32 +0000 (14:38 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 7 Jan 2020 16:13:25 +0000 (11:13 -0500)
Since the coprocessor state is tracked in a backup register, there is
no more need for tracking it in an environment variable : remove it.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Patrick Delaunay <patrick.delaunay@st.com>
board/st/stm32mp1/stm32mp1.c

index cee3500737abaf6a9943ca3ba0ec323c2367f490..1d4a54c9026db6e616d7ca11411cf0250003951e 100644 (file)
@@ -1096,10 +1096,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);