Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/nvidia/tegra124/tegra124_machdep.c
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
#include <arm/nvidia/tegra124/tegra124_mp.h> | #include <arm/nvidia/tegra124/tegra124_mp.h> | ||||
#include "platform_if.h" | #include "platform_if.h" | ||||
#define PMC_PHYSBASE 0x7000e400 | #define PMC_PHYSBASE 0x7000e400 | ||||
#define PMC_SIZE 0x400 | #define PMC_SIZE 0x400 | ||||
#define PMC_CONTROL_REG 0x0 | #define PMC_CONTROL_REG 0x0 | ||||
#define PMC_SCRATCH0 0x50 | #define PMC_SCRATCH0 0x50 | ||||
#define PMC_SCRATCH0_MODE_RECOVERY (1 << 31) | #define PMC_SCRATCH0_MODE_RECOVERY (1U << 31) | ||||
#define PMC_SCRATCH0_MODE_BOOTLOADER (1 << 30) | #define PMC_SCRATCH0_MODE_BOOTLOADER (1 << 30) | ||||
#define PMC_SCRATCH0_MODE_RCM (1 << 1) | #define PMC_SCRATCH0_MODE_RCM (1 << 1) | ||||
#define PMC_SCRATCH0_MODE_MASK (PMC_SCRATCH0_MODE_RECOVERY | \ | #define PMC_SCRATCH0_MODE_MASK (PMC_SCRATCH0_MODE_RECOVERY | \ | ||||
PMC_SCRATCH0_MODE_BOOTLOADER | \ | PMC_SCRATCH0_MODE_BOOTLOADER | \ | ||||
PMC_SCRATCH0_MODE_RCM) | PMC_SCRATCH0_MODE_RCM) | ||||
static platform_attach_t tegra124_attach; | static platform_attach_t tegra124_attach; | ||||
static platform_lastaddr_t tegra124_lastaddr; | static platform_lastaddr_t tegra124_lastaddr; | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |