Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/broadcom/bcm_machdep.c
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void | void | ||||
platform_reset(void) | platform_reset(void) | ||||
{ | { | ||||
printf("bcm::platform_reset()\n"); | printf("bcm::platform_reset()\n"); | ||||
intr_disable(); | intr_disable(); | ||||
#if defined(CFE) | |||||
cfe_exit(0, 0); | |||||
#else | |||||
/* PMU watchdog reset */ | /* PMU watchdog reset */ | ||||
BCM_WRITE_REG32(BCM_REG_CHIPC_PMUWD_OFFS, 2); /* PMU watchdog */ | BCM_WRITE_REG32(BCM_REG_CHIPC_PMUWD_OFFS, 2); /* PMU watchdog */ | ||||
#if defined(CFE) | |||||
cfe_exit(0, 0); | |||||
#endif | #endif | ||||
#if 0 | #if 0 | ||||
/* Non-PMU reset | /* Non-PMU reset | ||||
* XXX: Need chipc capability flags */ | * XXX: Need chipc capability flags */ | ||||
*((volatile uint8_t *)MIPS_PHYS_TO_KSEG1(SENTRY5_EXTIFADR)) = 0x80; | *((volatile uint8_t *)MIPS_PHYS_TO_KSEG1(SENTRY5_EXTIFADR)) = 0x80; | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |