|
@@ -52,8 +52,9 @@ static void watchdog_magic_write(uint value)
|
|
|
|
|
|
int sysmon1_post_test(int flags)
|
|
int sysmon1_post_test(int flags)
|
|
{
|
|
{
|
|
- if (gpio_read_in_bit(CFG_GPIO_SYSMON_STATUS)) {
|
|
|
|
- /* 3.1. GPIO62 is low
|
|
|
|
|
|
+ if (gpio_read_in_bit(CFG_GPIO_SYSMON_STATUS) == 0) {
|
|
|
|
+ /*
|
|
|
|
+ * 3.1. GPIO62 is low
|
|
* Assuming system voltage failure.
|
|
* Assuming system voltage failure.
|
|
*/
|
|
*/
|
|
post_log("Abnormal voltage detected (GPIO62)\n");
|
|
post_log("Abnormal voltage detected (GPIO62)\n");
|