Fix tsec.c (thanks @rajkosto @tslater2006), fixes #106

This commit is contained in:
TuxSH 2018-05-15 23:59:20 +02:00
parent 9a86ffec68
commit 6c50723209
2 changed files with 0 additions and 10 deletions

View file

@ -3,10 +3,6 @@
#include "clock.h"
#include "t210.h"
static const u8 _tsec_fw[3840] __attribute__((aligned(0x100))) = {
/* ... */
};
static int _tsec_dma_wait_idle()
{
u32 timeout = TMR(0x10) + 10000000;
@ -58,7 +54,6 @@ int tsec_query(u32 carveout, u8 *dst, u32 rev)
}
//Load firmware.
memcpy((void *)carveout, _tsec_fw, 0xF00);
TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r
for (u32 addr = 0; addr < 0xF00; addr += 0x100)
if (!_tsec_dma_pa_to_internal_100(0, addr, addr))

View file

@ -3,10 +3,6 @@
#include "clock.h"
#include "t210.h"
static const u8 _tsec_fw[3840] __attribute__((aligned(0x100))) = {
/* ... */
};
static int _tsec_dma_wait_idle()
{
u32 timeout = TMR(0x10) + 10000000;
@ -58,7 +54,6 @@ int tsec_query(u32 carveout, u8 *dst, u32 rev)
}
//Load firmware.
memcpy((void *)carveout, _tsec_fw, 0xF00);
TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r
for (u32 addr = 0; addr < 0xF00; addr += 0x100)
if (!_tsec_dma_pa_to_internal_100(0, addr, addr))