ite/it8xxx2: Fix JTAG support when using a flash offset
If a board defined CONFIG_FLASH_LOAD_OFFSET to a non-zero value, enabling CONFIG_SOC_IT8XXX2_JTAG_DEBUG_INTERFACE generated a linker error because when trying to move the location counter backwards. Fixed by allocating the JTAG section within the deined ROM region. Signed-off-by: Keith Short <keithshort@google.com>
This commit is contained in:
parent
74b93ba47b
commit
6b61973e39
1 changed files with 3 additions and 3 deletions
|
@ -131,9 +131,9 @@ SECTIONS
|
|||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
#ifdef CONFIG_SOC_IT8XXX2_JTAG_DEBUG_INTERFACE
|
||||
#define JTAG_DEBUG_RESERVED_ADDR_START 0x80000800
|
||||
#define JTAG_DEBUG_RESERVED_ADDR_END 0x800008FF
|
||||
/* The CPU address from 0x80000800 to 0x800008FF is reserved for JTAG
|
||||
#define JTAG_DEBUG_RESERVED_ADDR_START (ROM_BASE + 0x800)
|
||||
#define JTAG_DEBUG_RESERVED_ADDR_END (ROM_BASE + 0x8FF)
|
||||
/* The flash range at offset 0x800 to 0x8FF is reserved for JTAG
|
||||
* debug usage. */
|
||||
SECTION_PROLOGUE(jtag_dbg,,)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue