Finish bootup_misc_mmio() - Cur build gets to end of pk2ldr.
This commit is contained in:
23
exosphere/src/actmon.h
Normal file
23
exosphere/src/actmon.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef EXOSPHERE_ACTIVITY_MONITOR_H
|
||||
#define EXOSPHERE_ACTIVITY_MONITOR_H
|
||||
|
||||
#include "sysreg.h"
|
||||
|
||||
/* Exosphere Driver for the Tegra X1 Activity Monitor. */
|
||||
|
||||
/* NOTE: ACTMON registers lie in the SYSREG region! */
|
||||
#define ACTMON_BASE (SYSREG_BASE + 0x800)
|
||||
|
||||
#define MAKE_ACTMON_REG(n) (*((volatile uint32_t *)(ACTMON_BASE + n)))
|
||||
|
||||
#define ACTMON_GLB_STATUS_0 MAKE_ACTMON_REG(0x000)
|
||||
#define ACTMON_COP_CTRL_0 MAKE_ACTMON_REG(0x0C0)
|
||||
#define ACTMON_COP_INTR_STATUS_0 MAKE_ACTMON_REG(0x0E4)
|
||||
|
||||
void actmon_interrupt_handler(void);
|
||||
|
||||
void actmon_on_bpmp_wakeup(void);
|
||||
|
||||
void actmon_set_callback(void (*callback)(void));
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user