30 lines
937 B
Diff
30 lines
937 B
Diff
--- arch/arm/cpu/armv8/gxb/bl31_apis.c.orig 2018-11-17 11:41:31.601584797 +0100
|
|
+++ arch/arm/cpu/armv8/gxb/bl31_apis.c 2018-11-17 11:41:49.539917138 +0100
|
|
@@ -59,10 +59,11 @@ int32_t meson_trustzone_efuse(struct efu
|
|
offset = arg->offset;
|
|
size = arg->size;
|
|
|
|
- if (arg->cmd == EFUSE_HAL_API_WRITE)
|
|
+ if (arg->cmd == EFUSE_HAL_API_WRITE) {
|
|
memcpy((void *)sharemem_input_base,
|
|
(const void *)arg->buffer_phy, size);
|
|
asm __volatile__("" : : : "memory");
|
|
+ }
|
|
|
|
register uint64_t x0 asm("x0") = cmd;
|
|
register uint64_t x1 asm("x1") = offset;
|
|
--- drivers/mmc/aml_sd_emmc.c.orig 2018-11-17 11:47:36.303008208 +0100
|
|
+++ drivers/mmc/aml_sd_emmc.c 2018-11-17 11:47:45.301174914 +0100
|
|
@@ -239,8 +239,9 @@ static int sd_inand_staff_init(struct mm
|
|
while (get_timer(base)<200) ;
|
|
#endif
|
|
}
|
|
- if (!sdio->inited_flag)
|
|
+ if (!sdio->inited_flag) {
|
|
sdio->inited_flag = 1;
|
|
+ }
|
|
return SD_NO_ERROR;
|
|
}
|
|
|
|
|