fusee: Implement DRAM training:

- Based on reverse engineered code and Peter De Schrijver's patches;
- Complemented with CTCaer's minerva_tc project.
This commit is contained in:
hexkyz
2018-11-12 01:55:16 +00:00
parent a520481168
commit b19e50e720
6 changed files with 12880 additions and 671 deletions

View File

@@ -26,6 +26,7 @@
#include "loader.h"
#include "chainloader.h"
#include "stage2.h"
#include "mtc.h"
#include "nxboot.h"
#include "console.h"
#include "fs_utils.h"
@@ -52,6 +53,9 @@ static void setup_env(void) {
if (nxfs_mount_all() < 0) {
fatal_error("Failed to mount at least one parition: %s\n", strerror(errno));
}
/* Train DRAM. */
train_dram();
}
static void cleanup_env(void) {