quark_x10xx: cleanup of LOG format specifiers
[openocd.git] / src / target / lakemont.h
1 /*
2 * Copyright(c) 2013 Intel Corporation.
3 *
4 * Adrian Burns (adrian.burns@intel.com)
5 * Thomas Faust (thomas.faust@intel.com)
6 * Ivan De Cesaris (ivan.de.cesaris@intel.com)
7 * Julien Carreno (julien.carreno@intel.com)
8 * Jeffrey Maxwell (jeffrey.r.maxwell@intel.com)
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of version 2 of the GNU General Public License as
12 * published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
22 *
23 * Contact Information:
24 * Intel Corporation
25 */
26
27 /*
28 * @file
29 * This is the interface to the probemode operations for Lakemont 1 (LMT1).
30 */
31
32 #ifndef LAKEMONT_H
33 #define LAKEMONT_H
34 #include <jtag/jtag.h>
35 #include <helper/types.h>
36
37 /* The Intel Quark SoC X1000 Core is codenamed lakemont */
38
39 #define LMT_IRLEN 8
40
41 /* lakemont tap instruction opcodes */
42 #define IDCODE 2
43 #define SUBMITPIR 3
44 #define PROBEMODE 4
45 #define WRPIR 6
46 #define RDWRPDR 8
47 #define TAPSTATUS 11
48 #define BYPASS 255
49 #define NOT_NULL 2
50
51 /* DR sizes */
52 #define ID_SIZE 32
53 #define PM_SIZE 1
54 #define PIR_SIZE 64
55 #define PDR_SIZE 32
56 #define TS_SIZE 32
57 #define BP_SIZE 1
58 #define MAX_SCAN_SIZE PIR_SIZE
59
60 /* needed during lakemont probemode */
61 #define NOT_PMREG 0xfe
62 #define NOT_AVAIL_REG 0xff
63 #define PM_DSB ((uint32_t)0x00000000)
64 #define PM_DSL ((uint32_t)0xFFFFFFFF)
65 #define PM_DSAR ((uint32_t)0x004F9300)
66 #define PM_DR7 ((uint32_t)0x00000400)
67 #define DELAY_SUBMITPIR 0 /* for now 0 is working */
68
69 /* lakemont tapstatus bits */
70 #define TS_PRDY_BIT ((uint32_t)0x00000001)
71 #define TS_EN_PM_BIT ((uint32_t)0x00000002)
72 #define TS_PM_BIT ((uint32_t)0x00000004)
73 #define TS_PMCR_BIT ((uint32_t)0x00000008)
74 #define TS_SBP_BIT ((uint32_t)0x00000010)
75
76 struct lakemont_core_reg {
77 uint32_t num;
78 struct target *target;
79 struct x86_32_common *x86_32_common;
80 uint64_t op;
81 uint8_t pm_idx;
82 };
83
84 struct scan_blk {
85 uint8_t out[MAX_SCAN_SIZE]; /* scanned out to the tap */
86 uint8_t in[MAX_SCAN_SIZE]; /* in to our capture buf */
87 struct scan_field field;
88 };
89
90 #define I(name) (((struct lakemont_core_reg *)x86_32->cache->reg_list[name].arch_info)->pm_idx)
91
92 int lakemont_init_target(struct command_context *cmd_ctx, struct target *t);
93 int lakemont_init_arch_info(struct target *t, struct x86_32_common *x86_32);
94 int lakemont_poll(struct target *t);
95 int lakemont_arch_state(struct target *t);
96 int lakemont_halt(struct target *t);
97 int lakemont_resume(struct target *t, int current, uint32_t address,
98 int handle_breakpoints, int debug_execution);
99 int lakemont_step(struct target *t, int current,
100 uint32_t address, int handle_breakpoints);
101 int lakemont_reset_assert(struct target *t);
102 int lakemont_reset_deassert(struct target *t);
103
104 #endif /* LAKEMONT_H */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)