18 #define AT91C_BASE_SYS (0xfffff000)
32 #define PIO_PPUER (25)
85 {
"rea_ecr",
PIOD,
P27,
PIOA,
NC,
PIOD,
P23,
PIOD,
P24,
PIOD,
P26,
PIOC,
P5 },
170 .
name =
"at91rm9200_device",
171 .handler = &at91rm9200_handle_device_command,
173 .help =
"Set at91rm9200 device [default \"rea_ecr\"]",
184 .
name =
"at91rm9200",
203 LOG_WARNING(
"No at91rm9200 device specified, using default 'rea_ecr'");
206 while (cur_device->
name) {
221 dev_mem_fd = open(
"/dev/mem", O_RDWR | O_SYNC);
const char *const jtag_only[]
static const struct command_registration at91rm9200_command_handlers[]
static int at91rm9200_quit(void)
static struct bitbang_interface at91rm9200_bitbang
static char * at91rm9200_device
COMMAND_HANDLER(at91rm9200_handle_device_command)
static uint32_t * pio_base
static int at91rm9200_init(void)
struct adapter_driver at91rm9200_adapter_driver
static const struct device_t devices[]
static int at91rm9200_reset(int trst, int srst)
static const struct device_t * device
static int at91rm9200_write(int tck, int tms, int tdi)
static struct jtag_interface at91rm9200_interface
static void * sys_controller
static bb_value_t at91rm9200_read(void)
int bitbang_execute_queue(void)
#define CMD_ARGV
Use this macro to access the arguments for the command being handled, rather than accessing the varia...
#define ERROR_COMMAND_SYNTAX_ERROR
#define CMD_ARGC
Use this macro to access the number of arguments for the command being handled, rather than accessing...
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
#define ERROR_JTAG_INIT_FAILED
#define LOG_WARNING(expr ...)
#define LOG_ERROR(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.
int(* execute_queue)(void)
Execute queued commands.