113 void *syscon = mmap(
NULL, 4096, PROT_READ | PROT_WRITE,
115 if (syscon == MAP_FAILED) {
120 uint32_t devicecfg = *((
volatile uint32_t *)((uintptr_t)syscon + 0x80));
121 *((
volatile uint32_t *)((uintptr_t)syscon + 0xc0)) = 0xaa;
122 *((
volatile uint32_t *)((uintptr_t)syscon + 0x80)) = devicecfg | 0x08000000;
124 munmap(syscon, 4096);
138 dev_mem_fd = open(
"/dev/mem", O_RDWR | O_SYNC);
const char *const jtag_only[]
int bitbang_execute_queue(struct jtag_command *cmd_queue)
static uint8_t output_value
static struct timespec ep93xx_zzzz
struct adapter_driver ep93xx_adapter_driver
static int set_gonk_mode(void)
static uint8_t * gpio_controller
static bb_value_t ep93xx_read(void)
static struct bitbang_interface ep93xx_bitbang
static int ep93xx_quit(void)
static struct jtag_interface ep93xx_interface
static int ep93xx_reset(int trst, int srst)
static volatile uint8_t * gpio_data_register
static volatile uint8_t * gpio_data_direction_register
static int ep93xx_write(int tck, int tms, int tdi)
static int ep93xx_init(void)
#define DEBUG_CAP_TMS_SEQ
#define ERROR_JTAG_INIT_FAILED
#define LOG_ERROR(expr ...)
#define LOG_INFO(expr ...)
Represents a driver for a debugging interface.
const char *const name
The name of the interface driver.
Low level callbacks (for bitbang).
bb_value_t(* read)(void)
Sample TDO and return the value.
Represents a driver for a debugging interface.
unsigned int supported
Bit vector listing capabilities exposed by this driver.