quark: add Intel Quark mcu D2000 support

Add support for the Intel Quark mcu D2000 using the new quark_d2xx
target.

Changes to the lakemont part are needed for the D2000 core and
backwards compatible with the X1000 one.

Change-Id: I6e1ef5a5d116344942f08e413965abd3945235fa
Signed-off-by: Ivan De Cesaris <ivan.de.cesaris@intel.com>
Reviewed-on: http://openocd.zylin.com/3199
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Ivan De Cesaris
2016-01-12 16:30:18 +01:00
committed by Andreas Fritiofson
parent 3e07e1cdfa
commit a4ce9a2c71
9 changed files with 215 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright(c) 2013 Intel Corporation.
* Copyright(c) 2013-2016 Intel Corporation.
*
* Adrian Burns (adrian.burns@intel.com)
* Thomas Faust (thomas.faust@intel.com)
@@ -196,6 +196,11 @@ enum {
WBINVD,
};
enum x86_core_type {
LMT1,
LMT3_5
};
struct swbp_mem_patch {
uint8_t orig_byte;
uint32_t swbp_unique_id;
@@ -209,6 +214,7 @@ struct swbp_mem_patch {
struct x86_32_common {
uint32_t common_magic;
void *arch_info;
enum x86_core_type core_type;
struct reg_cache *cache;
struct jtag_tap *curr_tap;
uint32_t stored_pc;