004-watchdog_low_init.patch 407 B

123456789101112
  1. --- a/arch/mips/alchemy/board-mtx1.c
  2. +++ b/arch/mips/alchemy/board-mtx1.c
  3. @@ -98,6 +98,9 @@ void __init board_setup(void)
  4. alchemy_gpio_direction_output(211, 1); /* green on */
  5. alchemy_gpio_direction_output(212, 0); /* red off */
  6. + /* Set watchdog pin low */
  7. + alchemy_gpio_direction_output(215, 0);
  8. +
  9. pm_power_off = mtx1_power_off;
  10. _machine_halt = mtx1_power_off;
  11. _machine_restart = mtx1_reset;