summaryrefslogtreecommitdiff
path: root/include/jtag.h
blob: cf927c2e2de9f4308f1703e5c501d5868d06a227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* JTAG interface for Chrome EC */

#ifndef __CROS_EC_JTAG_H
#define __CROS_EC_JTAG_H

#include "common.h"
#include "gpio.h"

/**
 * Pre-initialize the JTAG module.
 */
void jtag_pre_init(void);

#ifdef CONFIG_LOW_POWER_IDLE
/**
 * Interrupt handler for JTAG clock.
 *
 * @param signal	Signal which triggered the interrupt.
 */
void jtag_interrupt(enum gpio_signal signal);
#else
static inline void jtag_interrupt(enum gpio_signal signal) { }
#endif /* !CONFIG_LOW_POWER_IDLE */

#endif  /* __CROS_EC_JTAG_H */