mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-23 04:41:12 +00:00
Fix tsec.c (thanks @rajkosto @tslater2006), fixes #106
This commit is contained in:
parent
9a86ffec68
commit
6c50723209
2 changed files with 0 additions and 10 deletions
|
@ -3,10 +3,6 @@
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
#include "t210.h"
|
#include "t210.h"
|
||||||
|
|
||||||
static const u8 _tsec_fw[3840] __attribute__((aligned(0x100))) = {
|
|
||||||
/* ... */
|
|
||||||
};
|
|
||||||
|
|
||||||
static int _tsec_dma_wait_idle()
|
static int _tsec_dma_wait_idle()
|
||||||
{
|
{
|
||||||
u32 timeout = TMR(0x10) + 10000000;
|
u32 timeout = TMR(0x10) + 10000000;
|
||||||
|
@ -58,7 +54,6 @@ int tsec_query(u32 carveout, u8 *dst, u32 rev)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Load firmware.
|
//Load firmware.
|
||||||
memcpy((void *)carveout, _tsec_fw, 0xF00);
|
|
||||||
TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r
|
TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r
|
||||||
for (u32 addr = 0; addr < 0xF00; addr += 0x100)
|
for (u32 addr = 0; addr < 0xF00; addr += 0x100)
|
||||||
if (!_tsec_dma_pa_to_internal_100(0, addr, addr))
|
if (!_tsec_dma_pa_to_internal_100(0, addr, addr))
|
||||||
|
|
|
@ -3,10 +3,6 @@
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
#include "t210.h"
|
#include "t210.h"
|
||||||
|
|
||||||
static const u8 _tsec_fw[3840] __attribute__((aligned(0x100))) = {
|
|
||||||
/* ... */
|
|
||||||
};
|
|
||||||
|
|
||||||
static int _tsec_dma_wait_idle()
|
static int _tsec_dma_wait_idle()
|
||||||
{
|
{
|
||||||
u32 timeout = TMR(0x10) + 10000000;
|
u32 timeout = TMR(0x10) + 10000000;
|
||||||
|
@ -58,7 +54,6 @@ int tsec_query(u32 carveout, u8 *dst, u32 rev)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Load firmware.
|
//Load firmware.
|
||||||
memcpy((void *)carveout, _tsec_fw, 0xF00);
|
|
||||||
TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r
|
TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r
|
||||||
for (u32 addr = 0; addr < 0xF00; addr += 0x100)
|
for (u32 addr = 0; addr < 0xF00; addr += 0x100)
|
||||||
if (!_tsec_dma_pa_to_internal_100(0, addr, addr))
|
if (!_tsec_dma_pa_to_internal_100(0, addr, addr))
|
||||||
|
|
Loading…
Reference in a new issue