Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/nvidia/tegra124/tegra124_machdep.c
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
#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; | ||||
static platform_devmap_init_t tegra124_devmap_init; | static platform_devmap_init_t tegra124_devmap_init; | ||||
static platform_late_init_t tegra124_late_init; | |||||
static platform_cpu_reset_t tegra124_cpu_reset; | static platform_cpu_reset_t tegra124_cpu_reset; | ||||
static int | static int | ||||
tegra124_attach(platform_t plat) | tegra124_attach(platform_t plat) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
static void | |||||
tegra124_late_init(platform_t plat) | |||||
{ | |||||
} | |||||
/* | /* | ||||
* Set up static device mappings. | * Set up static device mappings. | ||||
* | * | ||||
*/ | */ | ||||
static int | static int | ||||
tegra124_devmap_init(platform_t plat) | tegra124_devmap_init(platform_t plat) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | tegra124_early_putc(int c) | ||||
*UART_TX_REG = c; | *UART_TX_REG = c; | ||||
} | } | ||||
early_putc_t *early_putc = tegra124_early_putc; | early_putc_t *early_putc = tegra124_early_putc; | ||||
#endif | #endif | ||||
static platform_method_t tegra124_methods[] = { | static platform_method_t tegra124_methods[] = { | ||||
PLATFORMMETHOD(platform_attach, tegra124_attach), | PLATFORMMETHOD(platform_attach, tegra124_attach), | ||||
PLATFORMMETHOD(platform_devmap_init, tegra124_devmap_init), | PLATFORMMETHOD(platform_devmap_init, tegra124_devmap_init), | ||||
PLATFORMMETHOD(platform_late_init, tegra124_late_init), | |||||
PLATFORMMETHOD(platform_cpu_reset, tegra124_cpu_reset), | PLATFORMMETHOD(platform_cpu_reset, tegra124_cpu_reset), | ||||
#ifdef SMP | #ifdef SMP | ||||
PLATFORMMETHOD(platform_mp_start_ap, tegra124_mp_start_ap), | PLATFORMMETHOD(platform_mp_start_ap, tegra124_mp_start_ap), | ||||
PLATFORMMETHOD(platform_mp_setmaxid, tegra124_mp_setmaxid), | PLATFORMMETHOD(platform_mp_setmaxid, tegra124_mp_setmaxid), | ||||
#endif | #endif | ||||
PLATFORMMETHOD_END, | PLATFORMMETHOD_END, | ||||
}; | }; | ||||
FDT_PLATFORM_DEF(tegra124, "Nvidia Jetson-TK1", 0, "nvidia,jetson-tk1", 120); | FDT_PLATFORM_DEF(tegra124, "Nvidia Jetson-TK1", 0, "nvidia,jetson-tk1", 120); |