예제 #1
0
static int armada_37xx_wdt_stop(struct watchdog_device *wdt)
{
	struct armada_37xx_watchdog *dev = watchdog_get_drvdata(wdt);

	counter_disable(dev, CNTR_ID_WDOG);
	counter_disable(dev, CNTR_ID_RETRIGGER);
	regmap_write(dev->cpu_misc, WDT_TIMER_SELECT, 0);

	return 0;
}
예제 #2
0
static int armada_37xx_wdt_ping(struct watchdog_device *wdt)
{
	struct armada_37xx_watchdog *dev = watchdog_get_drvdata(wdt);

	/* counter 1 is retriggered by forcing end count on counter 0 */
	counter_disable(dev, CNTR_ID_RETRIGGER);
	counter_enable(dev, CNTR_ID_RETRIGGER);

	return 0;
}
예제 #3
0
/**
 * @brief disable all subsystem functions.  Will turn off
 *  the DAC, ADC, PWM, and counter mode subsystem modes if
 *  any of them are active. 
 * 
 */
void disable_all(void)
{
	// disable TLV563x SPI DAC
	tlv563x_disable();
	
	// disable PWM
	pwm_disable();
	
	// disable ADC
	adc_disable();
	
	// disable counter
	counter_disable();
}
예제 #4
0
static void
disable_counters (Collector *collector)
{
    GList *list;

    d_print ("disable\n");
    
    for (list = collector->counters; list != NULL; list = list->next)
    {
	counter_t *counter = list->data;
	
	counter_disable (counter);
    }
}