Add some more MMIO, smcCpuOn

This commit is contained in:
Michael Scire
2018-02-17 18:50:39 -08:00
parent 5c24f58402
commit a800c3c2e7
10 changed files with 204 additions and 3 deletions

14
exosphere/pmc.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef EXOSPHERE_PMC_H
#define EXOSPHERE_PMC_H
#include <stdint.h>
/* Exosphere register definitions for the Tegra X1 PMC. */
void set_pmc_address(void *pmc_base);
void *get_pmc_address(void); /* This is inlined in pmc.c */
#define APBDEV_PMC_PWRGATE_TOGGLE_0 (*((volatile uint32_t *)(get_pmc_address() + 0x430)))
#define APBDEV_PMC_PWRGATE_STATUS_0 (*((volatile uint32_t *)(get_pmc_address() + 0x438)))
#endif