mtk_wdt.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. /* Copyright Statement:
  2. *
  3. * This software/firmware and related documentation ("MediaTek Software") are
  4. * protected under relevant copyright laws. The information contained herein
  5. * is confidential and proprietary to MediaTek Inc. and/or its licensors.
  6. * Without the prior written permission of MediaTek inc. and/or its licensors,
  7. * any reproduction, modification, use or disclosure of MediaTek Software,
  8. * and information contained herein, in whole or in part, shall be strictly prohibited.
  9. */
  10. /* MediaTek Inc. (C) 2015. All rights reserved.
  11. *
  12. * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  13. * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  14. * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
  15. * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  16. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  17. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  18. * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  19. * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  20. * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
  21. * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
  22. * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
  23. * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
  24. * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
  25. * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
  26. * CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  27. * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  28. * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
  29. * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  30. */
  31. //#include <common.h>
  32. //#include <asm/io.h>
  33. #include <platform/mt_reg_base.h>
  34. #include <platform/mt_typedefs.h>
  35. #include <platform/mtk_wdt.h>
  36. #include <platform/boot_mode.h>
  37. #include <platform/mt_gpt.h>
  38. #include <platform/upmu_hw.h>
  39. #include <debug.h>
  40. #define WDTTAG "[WDT] "
  41. #define WDTLOG(fmt, arg...) dprintf(INFO,WDTTAG fmt, ##arg)
  42. #define WDTMSG(fmt, arg...) dprintf(INFO,fmt, ##arg)
  43. #define WDTERR(fmt, arg...) dprintf(INFO,WDTTAG "%5d: "fmt, __LINE__, ##arg)
  44. //CRITICAL
  45. #if ENABLE_WDT_MODULE
  46. static unsigned int timeout;
  47. static unsigned int is_rgu_trigger_rst = 0;
  48. void mtk_wdt_disable(void)
  49. {
  50. u32 tmp;
  51. tmp = DRV_Reg32(MTK_WDT_MODE);
  52. tmp &= ~MTK_WDT_MODE_ENABLE; /* disable watchdog */
  53. tmp |= (MTK_WDT_MODE_KEY); /* need key then write is allowed */
  54. DRV_WriteReg32(MTK_WDT_MODE,tmp);
  55. }
  56. #ifdef MTK_PMIC_FULL_RESET
  57. static void mtk_wdt_pmic_full_reset(void)
  58. {
  59. #if defined(PMIC_CHIP_MT6355)
  60. /* PMIC will do full reset mmediately. */
  61. pmic_set_register_value(PMIC_RG_CRST, 1);
  62. #else
  63. u32 result = 0;
  64. pmic_set_register_value(PMIC_RG_WDTRSTB_MODE, 1);
  65. pmic_set_register_value(PMIC_WDTRSTB_STATUS, 1);
  66. pmic_set_register_value(PMIC_RG_WDTRSTB_FB_EN, 1);
  67. pmic_read_interface(0x4000, &result, 0xffff, 0x0);
  68. result &= 0xF7;
  69. result |= 0x4300;
  70. pmic_config_interface(0x4000, result, 0xffff, 0x0); /* Clear AUTO */
  71. pmic_config_interface(0x4018, 0x5,0x7,0x6); /*Force enable SPAR */
  72. pmic_config_interface(0x403C, 0x1, 0x1, 0x0); /* RTC write trigger */
  73. pmic_set_register_value(PMIC_RG_RSV_SWREG, 1); /* Set PMIC shutdown reboot status */
  74. /* wait for writing done */
  75. do {
  76. pmic_read_interface(0x4000, &result, 0x1, 0x6);
  77. } while (result != 0);
  78. #endif
  79. }
  80. #endif
  81. static void mtk_wdt_reset(char mode)
  82. {
  83. /* Watchdog Rest */
  84. unsigned int wdt_mode_val;
  85. DRV_WriteReg32(MTK_WDT_RESTART, MTK_WDT_RESTART_KEY);
  86. /*set latch register to 0 before sw reset*/
  87. //DRV_WriteReg32(MTK_WDT_LATCH_CTL, (MTK_WDT_LENGTH_CTL_KEY | 0x0));
  88. wdt_mode_val = DRV_Reg32(MTK_WDT_MODE);
  89. /* clear autorestart bit: autoretart: 1, bypass power key, 0: not bypass power key */
  90. wdt_mode_val &=(~MTK_WDT_MODE_AUTO_RESTART);
  91. /* make sure WDT mode is hw reboot mode, can not config isr mode */
  92. wdt_mode_val &=(~(MTK_WDT_MODE_IRQ|MTK_WDT_MODE_ENABLE | MTK_WDT_MODE_DUAL_MODE));
  93. if (mode) { /* mode != 0 means by pass power key reboot, We using auto_restart bit as by pass power key flag */
  94. wdt_mode_val = wdt_mode_val | (MTK_WDT_MODE_KEY|MTK_WDT_MODE_EXTEN|MTK_WDT_MODE_AUTO_RESTART);
  95. DRV_WriteReg32(MTK_WDT_MODE, wdt_mode_val);
  96. } else {
  97. wdt_mode_val = wdt_mode_val | (MTK_WDT_MODE_KEY|MTK_WDT_MODE_EXTEN);
  98. DRV_WriteReg32(MTK_WDT_MODE,wdt_mode_val);
  99. }
  100. gpt_busy_wait_us(100);
  101. DRV_WriteReg32(MTK_WDT_SWRST, MTK_WDT_SWRST_KEY);
  102. }
  103. unsigned int mtk_wdt_check_status(void)
  104. {
  105. unsigned int status;
  106. status = DRV_Reg32(MTK_WDT_STATUS);
  107. return status;
  108. }
  109. static void mtk_wdt_mode_config( BOOL dual_mode_en,
  110. BOOL irq,
  111. BOOL ext_en,
  112. BOOL ext_pol,
  113. BOOL wdt_en )
  114. {
  115. unsigned int tmp;
  116. WDTLOG(" mtk_wdt_mode LK config mode value=%x\n",DRV_Reg32(MTK_WDT_MODE));
  117. tmp = DRV_Reg32(MTK_WDT_MODE);
  118. tmp |= MTK_WDT_MODE_KEY;
  119. // Bit 0 : Whether enable watchdog or not
  120. if (wdt_en == TRUE)
  121. tmp |= MTK_WDT_MODE_ENABLE;
  122. else
  123. tmp &= ~MTK_WDT_MODE_ENABLE;
  124. // Bit 1 : Configure extern reset signal polarity.
  125. if (ext_pol == TRUE)
  126. tmp |= MTK_WDT_MODE_EXT_POL;
  127. else
  128. tmp &= ~MTK_WDT_MODE_EXT_POL;
  129. // Bit 2 : Whether enable external reset signal
  130. if (ext_en == TRUE)
  131. tmp |= MTK_WDT_MODE_EXTEN;
  132. else
  133. tmp &= ~MTK_WDT_MODE_EXTEN;
  134. // Bit 3 : Whether generating interrupt instead of reset signal
  135. if (irq == TRUE)
  136. tmp |= MTK_WDT_MODE_IRQ;
  137. else
  138. tmp &= ~MTK_WDT_MODE_IRQ;
  139. // Bit 6 : Whether enable debug module reset
  140. if (dual_mode_en == TRUE)
  141. tmp |= MTK_WDT_MODE_DUAL_MODE;
  142. else
  143. tmp &= ~MTK_WDT_MODE_DUAL_MODE;
  144. // Bit 4: WDT_Auto_restart, this is a reserved bit, we use it as bypass powerkey flag.
  145. // Because HW reboot always need reboot to kernel, we set it always.
  146. tmp |= MTK_WDT_MODE_AUTO_RESTART;
  147. DRV_WriteReg32(MTK_WDT_MODE,tmp);
  148. //dual_mode(1); //always dual mode
  149. //mdelay(100);
  150. WDTLOG(" mtk_wdt_mode_config LK mode value=%x, tmp:%x\n",DRV_Reg32(MTK_WDT_MODE), tmp);
  151. }
  152. #if 0
  153. static void mtk_wdt_mode_config(BOOL debug_en,
  154. BOOL irq,
  155. BOOL ext_en,
  156. BOOL ext_pol,
  157. BOOL wdt_en )
  158. {
  159. unsigned short tmp;
  160. tmp = DRV_Reg32(MTK_WDT_MODE);
  161. tmp |= MTK_WDT_MODE_KEY;
  162. // Bit 0 : Whether enable watchdog or not
  163. if (wdt_en == TRUE)
  164. tmp |= MTK_WDT_MODE_ENABLE;
  165. else
  166. tmp &= ~MTK_WDT_MODE_ENABLE;
  167. // Bit 1 : Configure extern reset signal polarity.
  168. if (ext_pol == TRUE)
  169. tmp |= MTK_WDT_MODE_EXT_POL;
  170. else
  171. tmp &= ~MTK_WDT_MODE_EXT_POL;
  172. // Bit 2 : Whether enable external reset signal
  173. if (ext_en == TRUE)
  174. tmp |= MTK_WDT_MODE_EXTEN;
  175. else
  176. tmp &= ~MTK_WDT_MODE_EXTEN;
  177. // Bit 3 : Whether generating interrupt instead of reset signal
  178. if (irq == TRUE)
  179. tmp |= MTK_WDT_MODE_IRQ;
  180. else
  181. tmp &= ~MTK_WDT_MODE_IRQ;
  182. // Bit 6 : Whether enable debug module reset
  183. if (debug_en == TRUE)
  184. tmp |= MTK_WDT_MODE_DEBUG_EN;
  185. else
  186. tmp &= ~MTK_WDT_MODE_DEBUG_EN;
  187. DRV_WriteReg32(MTK_WDT_MODE,tmp);
  188. }
  189. #endif
  190. void mtk_wdt_set_time_out_value(UINT32 value)
  191. {
  192. /*
  193. * TimeOut = BitField 15:5
  194. * Key = BitField 4:0 = 0x08
  195. */
  196. // sec * 32768 / 512 = sec * 64 = sec * 1 << 6
  197. timeout = (unsigned int)(value * ( 1 << 6) );
  198. timeout = timeout << 5;
  199. DRV_WriteReg32(MTK_WDT_LENGTH, (timeout | MTK_WDT_LENGTH_KEY) );
  200. }
  201. void mtk_wdt_restart(void)
  202. {
  203. // Reset WatchDogTimer's counting value to time out value
  204. // ie., keepalive()
  205. DRV_WriteReg32(MTK_WDT_RESTART, MTK_WDT_RESTART_KEY);
  206. }
  207. static void mtk_wdt_sw_reset(void)
  208. {
  209. WDTLOG ("UB WDT SW RESET\n");
  210. //DRV_WriteReg32 (0x70025000, 0x2201);
  211. //DRV_WriteReg32 (0x70025008, 0x1971);
  212. //DRV_WriteReg32 (0x7002501C, 0x1209);
  213. mtk_wdt_reset(1);/* NOTE here, this reset will cause by pass power key */
  214. // system will reset
  215. while (1) {
  216. WDTLOG ("UB SW reset fail ... \n");
  217. };
  218. }
  219. static void mtk_wdt_hw_reset(void)
  220. {
  221. WDTLOG("UB WDT_HW_Reset\n");
  222. // 1. set WDT timeout 1 secs, 1*64*512/32768 = 1sec
  223. mtk_wdt_set_time_out_value(1);
  224. // 2. enable WDT debug reset enable, generating irq disable, ext reset disable
  225. // ext reset signal low, wdt enalbe
  226. mtk_wdt_mode_config(TRUE, FALSE, FALSE, FALSE, TRUE);
  227. // 3. reset the watch dog timer to the value set in WDT_LENGTH register
  228. mtk_wdt_restart();
  229. // 4. system will reset
  230. while (1);
  231. }
  232. /**
  233. * For Power off and power on reset, the INTERVAL default value is 0x7FF.
  234. * We set Interval[1:0] to different value to distinguish different stage.
  235. * Enter pre-loader, we will set it to 0x0
  236. * Enter u-boot, we will set it to 0x1
  237. * Enter kernel, we will set it to 0x2
  238. * And the default value is 0x3 which means reset from a power off and power on reset
  239. */
  240. #define POWER_OFF_ON_MAGIC (0x3)
  241. #define PRE_LOADER_MAGIC (0x0)
  242. #define U_BOOT_MAGIC (0x1)
  243. #define KERNEL_MAGIC (0x2)
  244. #define MAGIC_NUM_MASK (0x3)
  245. /**
  246. * If the reset is trigger by RGU(Time out or SW trigger), we hope the system can boot up directly;
  247. * we DO NOT hope we must press power key to reboot system after reset.
  248. * This message should tell pre-loader and u-boot, and we use Interval[2] to store this information.
  249. * And this information will be cleared when enter kernel.
  250. */
  251. #define IS_POWER_ON_RESET (0x1<<2)
  252. #define RGU_TRIGGER_RESET_MASK (0x1<<2)
  253. void mtk_wdt_init(void)
  254. {
  255. unsigned int tmp;
  256. unsigned int nonrst;
  257. unsigned int interval_val = DRV_Reg32(MTK_WDT_INTERVAL);
  258. mtk_wdt_mode_config(FALSE, FALSE, FALSE, FALSE, FALSE);
  259. WDTLOG("UB wdt init\n");
  260. /* Update interval register value and check reboot flag */
  261. if ( (interval_val & RGU_TRIGGER_RESET_MASK) == IS_POWER_ON_RESET )
  262. is_rgu_trigger_rst = 0; // Power off and power on reset
  263. else
  264. is_rgu_trigger_rst = 1; // RGU trigger reset
  265. interval_val &= ~(RGU_TRIGGER_RESET_MASK|MAGIC_NUM_MASK);
  266. interval_val |= (U_BOOT_MAGIC|IS_POWER_ON_RESET);
  267. /* Write back INTERVAL REG */
  268. DRV_WriteReg32(MTK_WDT_INTERVAL, interval_val);
  269. /* Setting timeout 10s */
  270. mtk_wdt_set_time_out_value(10);
  271. /*set SPM_SCPSYS_rst to be enable, thermal_ctl_rst to be disable*/
  272. tmp = DRV_Reg32(MTK_WDT_REQ_MODE);
  273. tmp |= MTK_WDT_REQ_MODE_KEY;
  274. tmp |= (MTK_WDT_REQ_MODE_SPM_SCPSYS | MTK_WDT_REQ_MODE_SPM_THERMAL);
  275. tmp &= (~MTK_WDT_REQ_MODE_THERMAL);
  276. DRV_WriteReg32(MTK_WDT_REQ_MODE, tmp);
  277. /*set thermal_ctl_rst & SPM_SCPSYS_rst to be reset mode*/
  278. tmp = DRV_Reg32(MTK_WDT_REQ_IRQ_EN);
  279. tmp |= MTK_WDT_REQ_IRQ_KEY;
  280. tmp &= ~(MTK_WDT_REQ_IRQ_THERMAL_EN | MTK_WDT_REQ_IRQ_SPM_SCPSYS_EN | MTK_WDT_REQ_IRQ_SPM_THERMAL_EN);
  281. DRV_WriteReg32(MTK_WDT_REQ_IRQ_EN, tmp);
  282. #if (!LK_WDT_DISABLE)
  283. mtk_wdt_mode_config(TRUE, TRUE, TRUE, FALSE, TRUE);
  284. mtk_wdt_restart();
  285. #endif
  286. #if 0
  287. int i=0;
  288. //lk wdt test
  289. while (1) {
  290. i++;
  291. mdelay(1000);
  292. WDTLOG("UB wdt test %d\n" ,i);
  293. /* Dump RGU regisers */
  294. WDTLOG("==== fwq Dump RGU Reg ========\n");
  295. WDTLOG("RGU MODE: %x\n", DRV_Reg32(MTK_WDT_MODE));
  296. WDTLOG("RGU LENGTH: %x\n", DRV_Reg32(MTK_WDT_LENGTH));
  297. WDTLOG("RGU STA: %x\n", DRV_Reg32(MTK_WDT_STATUS));
  298. WDTLOG("RGU INTERVAL: %x\n", DRV_Reg32(MTK_WDT_INTERVAL));
  299. WDTLOG("RGU SWSYSRST: %x\n", DRV_Reg32(MTK_WDT_SWSYSRST));
  300. WDTLOG("==== Dump RGU Reg End ====\n");
  301. if (i<60) {
  302. WDTLOG("kick lk ext\n" );
  303. mtk_wdt_restart();
  304. }
  305. }
  306. #endif
  307. }
  308. BOOL mtk_is_rgu_trigger_reset(void)
  309. {
  310. if (is_rgu_trigger_rst)
  311. return TRUE;
  312. return FALSE;
  313. }
  314. extern BOOT_ARGUMENT *g_boot_arg;
  315. int mtk_wdt_boot_check(void)
  316. {
  317. int boot_reason;
  318. if (g_boot_arg->maggic_number == BOOT_ARGUMENT_MAGIC) {
  319. boot_reason = g_boot_arg->boot_reason;
  320. WDTLOG("WDT get boot reason is %d from pre-loader\n", boot_reason);
  321. if (boot_reason == BR_WDT) {
  322. return WDT_NORMAL_REBOOT;
  323. } else if (boot_reason == BR_WDT_BY_PASS_PWK || BR_KERNEL_PANIC == boot_reason || BR_WDT_SW ==boot_reason || BR_WDT_HW ==boot_reason) {
  324. return WDT_BY_PASS_PWK_REBOOT;
  325. } else {
  326. return WDT_NOT_WDT_REBOOT;
  327. }
  328. }
  329. return WDT_NOT_WDT_REBOOT;
  330. }
  331. void mtk_arch_reset(char mode)
  332. {
  333. WDTLOG("UB mtk_arch_reset\n");
  334. mtk_wdt_reset(mode);
  335. while (1);
  336. }
  337. void mtk_arch_full_reset(void)
  338. {
  339. #ifdef MTK_PMIC_FULL_RESET
  340. WDTLOG("mtk_arch_full_reset\n");
  341. mtk_wdt_pmic_full_reset();
  342. #if !defined(PMIC_CHIP_MT6355)
  343. mtk_wdt_reset(1);
  344. #endif
  345. while (1);
  346. #else
  347. WDTLOG("mtk_arch_full_reset: PMIC full reset is not supported.\n");
  348. #endif
  349. }
  350. void rgu_swsys_reset(WD_SYS_RST_TYPE reset_type)
  351. {
  352. if (WD_MD_RST == reset_type) {
  353. unsigned int wdt_dbg_ctrl;
  354. wdt_dbg_ctrl = DRV_Reg32(MTK_WDT_SWSYSRST);
  355. wdt_dbg_ctrl |= MTK_WDT_SWSYS_RST_KEY;
  356. wdt_dbg_ctrl |= 0x80;// 1<<7
  357. DRV_WriteReg32(MTK_WDT_SWSYSRST,wdt_dbg_ctrl);
  358. udelay(1000);
  359. wdt_dbg_ctrl = DRV_Reg32(MTK_WDT_SWSYSRST);
  360. wdt_dbg_ctrl |= MTK_WDT_SWSYS_RST_KEY;
  361. wdt_dbg_ctrl &= (~0x80);// ~(1<<7)
  362. DRV_WriteReg32(MTK_WDT_SWSYSRST,wdt_dbg_ctrl);
  363. dprintf(CRITICAL, "fwq rgu lk md reset\n");
  364. }
  365. }
  366. void rgu_release_rg_mcu_pwr_on(void)
  367. {
  368. unsigned int wdt_dbg_ctrl;
  369. wdt_dbg_ctrl = DRV_Reg32(MTK_WDT_DEBUG_CTL);
  370. wdt_dbg_ctrl &= (~MTK_RG_MCU_PWR_ON);
  371. wdt_dbg_ctrl |= MTK_DEBUG_CTL_KEY;
  372. DRV_WriteReg32(MTK_WDT_DEBUG_CTL, wdt_dbg_ctrl);
  373. WDTLOG("RGU %s:MTK_WDT_DEBUG_CTL(%x)\n", __func__,wdt_dbg_ctrl);
  374. }
  375. void rgu_release_rg_mcu_pwr_iso_dis(void)
  376. {
  377. unsigned int wdt_dbg_ctrl;
  378. wdt_dbg_ctrl = DRV_Reg32(MTK_WDT_DEBUG_CTL);
  379. wdt_dbg_ctrl &= (~MTK_RG_MCU_PWR_ISO_DIS);
  380. wdt_dbg_ctrl |= MTK_DEBUG_CTL_KEY;
  381. DRV_WriteReg32(MTK_WDT_DEBUG_CTL, wdt_dbg_ctrl);
  382. WDTLOG("RGU %s:MTK_WDT_DEBUG_CTL(%x)\n", __func__,wdt_dbg_ctrl);
  383. }
  384. #else
  385. void mtk_wdt_init(void)
  386. {
  387. WDTLOG("UB WDT Dummy init called\n");
  388. }
  389. BOOL mtk_is_rgu_trigger_reset()
  390. {
  391. WDTLOG("UB Dummy mtk_is_rgu_trigger_reset called\n");
  392. return FALSE;
  393. }
  394. void mtk_arch_reset(char mode)
  395. {
  396. WDTLOG("UB WDT Dummy arch reset called\n");
  397. }
  398. void mtk_arch_full_reset(void)
  399. {
  400. WDTLOG("WDT Dummy arch full reset called\n");
  401. }
  402. int mtk_wdt_boot_check(void)
  403. {
  404. WDTLOG("UB WDT Dummy mtk_wdt_boot_check called\n");
  405. return WDT_NOT_WDT_REBOOT;
  406. }
  407. void mtk_wdt_disable(void)
  408. {
  409. WDTLOG("UB WDT Dummy mtk_wdt_disable called\n");
  410. }
  411. void mtk_wdt_restart(void)
  412. {
  413. WDTLOG("UB WDT Dummy mtk_wdt_restart called\n");
  414. }
  415. static void mtk_wdt_sw_reset(void)
  416. {
  417. WDTLOG("UB WDT Dummy mtk_wdt_sw_reset called\n");
  418. }
  419. static void mtk_wdt_hw_reset(void)
  420. {
  421. WDTLOG("UB WDT Dummy mtk_wdt_hw_reset called\n");
  422. }
  423. void rgu_swsys_reset(WD_SYS_RST_TYPE reset_type)
  424. {
  425. WDTLOG("UB WDT Dummy rgu_swsys_reset called\n");
  426. }
  427. #endif