So we some how managed to make our device behave in such a way that the code in "platform\common\src\soc\OMAP_L3X_TI_V1\IOCTL\reboot.c" to shut down the device. Are there alternatives I can look into? Right now our device has a 100% chance to shutdown instead of rebooting when this code is run.
// Let do reset
OALMSGS(TRUE, (L"*** RESET ***\r\n"));
// Use WD to perform reboot
EnableWatchDog();
ReloadWatchDog();
// Write invalid key to WD to reboot immediately
pWDRegs = (PTIMERREGS)OALPAtoUA(OMAPL13X_TIMER1_REGS_PA);
OUTREG32(&pWDRegs->WDTCR, (1 << WDTCR_WDEN_SHIFT) | (0xFFFF << WDTCR_WDKEY_SHIFT));
// Should never get to this point...
OALMSG(OAL_IOCTL&&OAL_FUNC, (L"-OALIoCtlHalReboot\r\n"));